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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user