ncannasse 6 年之前
父节点
当前提交
00889a4218
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/scene/World.hx

+ 1 - 1
h3d/scene/World.hx

@@ -562,7 +562,7 @@ class World extends Object {
 		super.syncRec(ctx);
 		// don't do in sync() since animations in our world might affect our chunks
 		for( c in allChunks ) {
-			c.root.visible = c.bounds.inFrustum(ctx.camera.m);
+			c.root.visible = c.bounds.inFrustum(ctx.camera.frustum);
 			if( c.root.visible ) {
 				c.lastFrame = ctx.frame;
 				initChunk(c);