Browse Source

call update after camera sync (fix issue with shadows)

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
af1b2a31f5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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) {