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