summaryrefslogtreecommitdiffstats
path: root/world/chunk/Chunk.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-18 19:38:35 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-18 19:42:01 -0400
commit32bf9d2024362d45dc351c8f1d0b3b301caf1131 (patch)
treefb6540bce94cb55c6123ecfe1327abeabea2925f /world/chunk/Chunk.gd
parentffc92ed12c6e680776d355ff9fcef70e5e28d7c8 (diff)
downloadgodot_wildjam_49-32bf9d2024362d45dc351c8f1d0b3b301caf1131.tar.gz
godot_wildjam_49-32bf9d2024362d45dc351c8f1d0b3b301caf1131.zip
Organize World Gen Stuff
Diffstat (limited to 'world/chunk/Chunk.gd')
-rw-r--r--world/chunk/Chunk.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/world/chunk/Chunk.gd b/world/chunk/Chunk.gd
new file mode 100644
index 0000000..7c5c1c3
--- /dev/null
+++ b/world/chunk/Chunk.gd
@@ -0,0 +1,16 @@
+extends Area
+
+enum LOD {DISTANCE,MID,CLOSE}
+var lod = -1
+
+func lod_update():
+ for obj in $"gen_tree".get_children():
+ match lod:
+ LOD.CLOSE:
+ obj.lod_close()
+ LOD.MID:
+ obj.lod_mid()
+ LOD.DISTANCE:
+ obj.lod_distance()
+ _:
+ obj.lod_distance()