Explorar o código

MeshBatch : Fixed distance clipping removing frustum culling

TothBenoit hai 1 ano
pai
achega
d49dedd248
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {