ncannasse 6 years ago
parent
commit
00889a4218
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/scene/World.hx

+ 1 - 1
h3d/scene/World.hx

@@ -562,7 +562,7 @@ class World extends Object {
 		super.syncRec(ctx);
 		super.syncRec(ctx);
 		// don't do in sync() since animations in our world might affect our chunks
 		// don't do in sync() since animations in our world might affect our chunks
 		for( c in allChunks ) {
 		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 ) {
 			if( c.root.visible ) {
 				c.lastFrame = ctx.frame;
 				c.lastFrame = ctx.frame;
 				initChunk(c);
 				initChunk(c);