puchik / godot-extras

LOD and optimization C++ addons and shaders for Godot 4 and Godot 3
139 stars 14 forks source link

Frustum culling for terrain shader? #7

Closed petterthowsen closed 2 years ago

petterthowsen commented 2 years ago

Hi. I'm using your terrain shader (thanks!) and I seem to have an issue with incorrect frustum culling?

Apologize if this does not pertain to your shader, but I'm really stuck here, hehe :D

I tried using mesh.custom_aabb = AABB() and put some really large values in there but it doesn't seem to affect it :\

petterthowsen commented 2 years ago

Apparently (and I'm not sure why) I was using CSGMesh. Switching to MeshInstance made the custom_aabb work fine.