From 16c70f06ab79dce4ec6fc5422ec9cf8de962c10c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 28 Apr 2026 04:07:46 +0200 Subject: [PATCH] Apply advanced rendering camera far distance in RuntimeHost --- src/runtime-three/runtime-host.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 08c577b9..e2db27a2 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -2821,6 +2821,7 @@ export class RuntimeHost { this.scene.environmentIntensity = 1; this.applyDayNightLighting(); + this.applyAdvancedRenderingCameraFar(world.advancedRendering); if (this.renderer !== null) { configureAdvancedRenderingRenderer( @@ -2970,6 +2971,14 @@ export class RuntimeHost { return nextCollisionWorld; } + private applyAdvancedRenderingCameraFar(settings: AdvancedRenderingSettings) { + applyAdvancedRenderingPerspectiveCameraFar( + this.camera, + settings, + RUNTIME_PERSPECTIVE_CAMERA_FAR + ); + } + private clearCollisionWorld() { this.collisionWorld?.dispose(); this.collisionWorld = null;