Jelajahi Sumber

call update after camera sync (fix issue with shadows)

Nicolas Cannasse 4 tahun lalu
induk
melakukan
af1b2a31f5
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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.zFar = distance * 100;
 		}
 		}
 		cam.fovY = curOffset.w;
 		cam.fovY = curOffset.w;
+		cam.update();
 	}
 	}
 
 
 	override function sync(ctx:RenderContext) {
 	override function sync(ctx:RenderContext) {