Browse Source

MeshBatch : Fixed distance clipping removing frustum culling

TothBenoit 1 năm trước cách đây
mục cha
commit
d49dedd248
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ) {