浏览代码

call update after camera sync (fix issue with shadows)

Nicolas Cannasse 4 年之前
父节点
当前提交
af1b2a31f5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/scene/CameraController.hx

+ 1 - 0
h3d/scene/CameraController.hx

@@ -225,6 +225,7 @@ class CameraController extends h3d.scene.Object {
 			cam.zFar = distance * 100;
 		}
 		cam.fovY = curOffset.w;
+		cam.update();
 	}
 
 	override function sync(ctx:RenderContext) {