Pārlūkot izejas kodu

MeshBatch : Fixed distance clipping removing frustum culling

TothBenoit 1 gadu atpakaļ
vecāks
revīzija
d49dedd248
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 ) {