auto-git:

[change] src/rendering/world-background-renderer.ts
 [change] src/runtime-three/runtime-host.ts
 [change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-04-22 13:15:06 +02:00
parent 3172cac299
commit 899ca9170b
3 changed files with 2 additions and 85 deletions

View File

@@ -59,23 +59,6 @@ export interface WorldEnvironmentState {
intensity: number;
}
export function shouldUseDynamicWorldEnvironment(
background: WorldBackgroundSettings,
backgroundTexture: Texture | null,
overlay: WorldBackgroundOverlayState | null
): boolean {
const overlayTexture = overlay?.texture ?? null;
const overlayOpacity = clamp(overlay?.opacity ?? 0, 0, 1);
return (
background.mode === "image" &&
backgroundTexture !== null &&
overlayTexture !== null &&
overlayOpacity > NIGHT_BACKGROUND_EPSILON &&
overlayOpacity < 1 - NIGHT_BACKGROUND_EPSILON
);
}
export function resolveWorldEnvironmentState(
background: WorldBackgroundSettings,
backgroundTexture: Texture | null,
@@ -260,10 +243,6 @@ export class WorldBackgroundRenderer {
this.anchor.position.copy(camera.position);
}
syncToOrigin() {
this.anchor.position.set(0, 0, 0);
}
dispose() {
this.geometry.dispose();
this.gradientMaterial.dispose();