소스 검색

added debugCulling

Nicolas Cannasse 3 년 전
부모
커밋
19b7dc5355
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      h3d/impl/Benchmark.hx
  2. 1 0
      h3d/scene/RenderContext.hx

+ 1 - 0
h3d/impl/Benchmark.hx

@@ -406,6 +406,7 @@ class Benchmark extends h2d.Graphics {
 				getRec(o);
 		}
 		getRec(s3d);
+		s3d.ctx.debugCulling = true;
 		camCtrl.loadFromCamera();
 		if( app.s2d != null ) app.s2d.setElapsedTime(0);
 		if( app.s3d != null ) app.s3d.setElapsedTime(0);

+ 1 - 0
h3d/scene/RenderContext.hx

@@ -23,6 +23,7 @@ class RenderContext extends h3d.impl.RenderContext {
 	public var visibleFlag : Bool;
 	public var shaderBuffers : h3d.shader.Buffers;
 	public var cullingCollider : h3d.col.Collider;
+	public var debugCulling : Bool;
 
 	var allocPool : h3d.pass.PassObject;
 	var allocFirst : h3d.pass.PassObject;