auto-git:

[change] tests/domain/scene-document-validation.test.ts
 [change] tests/domain/world-settings.test.ts
 [change] tests/serialization/project-document-json.test.ts
 [change] tests/unit/world-shader-sky.test.ts
This commit is contained in:
2026-04-22 16:00:18 +02:00
parent 31496613f7
commit c6c765ec69
4 changed files with 17 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ describe("resolveWorldShaderSkyRenderState", () => {
world.showCelestialBodies = true;
world.shaderSky.dayTopColorHex = "#88ccff";
world.shaderSky.dayBottomColorHex = "#dff3ff";
world.shaderSky.horizonHeight = -0.08;
world.timeOfDay.dawn.background = {
mode: "verticalGradient",
topColorHex: "#ff8855",
@@ -106,6 +107,7 @@ describe("resolveWorldShaderSkyRenderState", () => {
expect(dawnSky).not.toBeNull();
expect(noonSky?.sky.topColorHex).toBe("#88ccff");
expect(noonSky?.sky.bottomColorHex).toBe("#dff3ff");
expect(noonSky?.sky.horizonHeight).toBe(-0.08);
expect(dawnSky?.sky.topColorHex).not.toBe(noonSky?.sky.topColorHex);
expect(dawnSky?.sky.topColorHex).not.toBe(midnightSky?.sky.topColorHex);
expect(midnightSky?.stars.visibility ?? 0).toBeGreaterThan(