瀏覽代碼

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 ) {