소스 검색

MeshBatch : Fixed distance clipping removing frustum culling

TothBenoit 1 년 전
부모
커밋
d49dedd248
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 ) {