Browse Source

MeshBatch : Fixed distance clipping removing frustum culling

TothBenoit 1 year ago
parent
commit
d49dedd248
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/scene/MeshBatch.hx

+ 1 - 1
h3d/scene/MeshBatch.hx

@@ -96,7 +96,7 @@ class ComputeIndirect extends hxsl.Shader {
 			}
 
 			if ( ENABLE_DISTANCE_CLIPPING ) {
-				culled = distToCam > maxDistance;
+				culled = culled || distToCam > maxDistance;
 			}
 
 			if ( ENABLE_LOD ) {