fix(scene): keep the lens fixed through exit cuts so signs hold their placement
This commit is contained in:
@@ -559,7 +559,7 @@ export async function createProceduralSceneGeneration(
|
|||||||
);
|
);
|
||||||
camera.rotation.z += cameraState.roll * crane;
|
camera.rotation.z += cameraState.roll * crane;
|
||||||
const lensFov =
|
const lensFov =
|
||||||
THREE.MathUtils.lerp(30, cameraState.fov, crane) + cut * 6;
|
THREE.MathUtils.lerp(30, cameraState.fov, crane);
|
||||||
if (Math.abs(camera.fov - lensFov) > 0.001) {
|
if (Math.abs(camera.fov - lensFov) > 0.001) {
|
||||||
camera.fov = lensFov;
|
camera.fov = lensFov;
|
||||||
camera.updateProjectionMatrix();
|
camera.updateProjectionMatrix();
|
||||||
|
|||||||
Reference in New Issue
Block a user