auto-git:

[change] src/rendering/precomputed-shader-sky-environment-cache.ts
 [change] src/rendering/quantized-environment-blend-cache.ts
 [change] src/rendering/world-background-renderer.ts
 [change] src/rendering/world-shader-sky.ts
 [change] src/runtime-three/runtime-host.ts
This commit is contained in:
2026-04-22 17:57:03 +02:00
parent 7c73d9bc86
commit 23d0be0d2c
7 changed files with 69 additions and 63 deletions

View File

@@ -36,16 +36,24 @@ describe("resolveWorldEnvironmentState", () => {
environmentIntensity: 0.4
};
const earlyTwilight = resolveWorldEnvironmentState(world.background, dayTexture, {
texture: nightTexture,
opacity: 0.25,
environmentIntensity: 0.8
});
const lateTwilight = resolveWorldEnvironmentState(world.background, dayTexture, {
texture: nightTexture,
opacity: 0.75,
environmentIntensity: 0.8
});
const earlyTwilight = resolveWorldEnvironmentState(
world.background,
dayTexture,
{
texture: nightTexture,
opacity: 0.25,
environmentIntensity: 0.8
}
);
const lateTwilight = resolveWorldEnvironmentState(
world.background,
dayTexture,
{
texture: nightTexture,
opacity: 0.75,
environmentIntensity: 0.8
}
);
expect(earlyTwilight.texture).toBe(dayTexture);
expect(earlyTwilight.intensity).toBeCloseTo(0.5);