Apply advanced rendering camera far distance in RuntimeHost
This commit is contained in:
@@ -2821,6 +2821,7 @@ export class RuntimeHost {
|
|||||||
this.scene.environmentIntensity = 1;
|
this.scene.environmentIntensity = 1;
|
||||||
|
|
||||||
this.applyDayNightLighting();
|
this.applyDayNightLighting();
|
||||||
|
this.applyAdvancedRenderingCameraFar(world.advancedRendering);
|
||||||
|
|
||||||
if (this.renderer !== null) {
|
if (this.renderer !== null) {
|
||||||
configureAdvancedRenderingRenderer(
|
configureAdvancedRenderingRenderer(
|
||||||
@@ -2970,6 +2971,14 @@ export class RuntimeHost {
|
|||||||
return nextCollisionWorld;
|
return nextCollisionWorld;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private applyAdvancedRenderingCameraFar(settings: AdvancedRenderingSettings) {
|
||||||
|
applyAdvancedRenderingPerspectiveCameraFar(
|
||||||
|
this.camera,
|
||||||
|
settings,
|
||||||
|
RUNTIME_PERSPECTIVE_CAMERA_FAR
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
private clearCollisionWorld() {
|
private clearCollisionWorld() {
|
||||||
this.collisionWorld?.dispose();
|
this.collisionWorld?.dispose();
|
||||||
this.collisionWorld = null;
|
this.collisionWorld = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user