Make occlusion culling more precise

This commit is contained in:
Jarrod Doyle 2024-07-22 20:17:12 +01:00
parent 6dc6297b7b
commit 0ce662733b
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ public partial class Mission : Node3D
var occluder = new ArrayOccluder3D(); var occluder = new ArrayOccluder3D();
occluder.SetArrays(vertices.ToArray(), indices.ToArray()); occluder.SetArrays(vertices.ToArray(), indices.ToArray());
occluderInstance.Occluder = occluder; occluderInstance.Occluder = occluder;
occluderInstance.BakeSimplificationDistance = 0.0f;
cellNode.AddChild(occluderInstance); cellNode.AddChild(occluderInstance);