summaryrefslogtreecommitdiffstats
path: root/world/chunk/Chunk.gd
blob: 7c5c1c3266b9ae0fd4fdcc6f5b35df67c423aef9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()