From 8d83fa8da750c15ed135171d5b4b84c19326bc8c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 28 Apr 2026 14:17:53 +0200 Subject: [PATCH] Update god rays source selection test to use visible celestial bodies --- tests/domain/advanced-rendering.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/domain/advanced-rendering.test.ts b/tests/domain/advanced-rendering.test.ts index 88031f36..bef35f35 100644 --- a/tests/domain/advanced-rendering.test.ts +++ b/tests/domain/advanced-rendering.test.ts @@ -410,7 +410,7 @@ describe("god rays parameters", () => { }); }); - it("uses only rendered celestial bodies as god rays sources", () => { + it("chooses the dominant visible celestial body as the god rays source", () => { const visibleSun = { colorHex: "#ffd8aa", intensity: 1.1, @@ -420,7 +420,7 @@ describe("god rays parameters", () => { z: -0.98 } }; - const hiddenMoon = { + const visibleMoon = { colorHex: "#ccd8ff", intensity: 2.4, direction: { @@ -434,8 +434,8 @@ describe("god rays parameters", () => { resolveDominantScreenSpaceGodRaysLightInput(visibleSun, null) ).toBe(visibleSun); expect( - resolveDominantScreenSpaceGodRaysLightInput(visibleSun, hiddenMoon) - ).toBe(hiddenMoon); + resolveDominantScreenSpaceGodRaysLightInput(visibleSun, visibleMoon) + ).toBe(visibleMoon); expect(resolveDominantScreenSpaceGodRaysLightInput(null, null)).toBeNull(); });