auto-git:

[change] tests/unit/precomputed-shader-sky-environment-cache.test.ts
This commit is contained in:
2026-04-22 18:00:02 +02:00
parent 15be2a8d99
commit ba3db722f3

View File

@@ -6,7 +6,8 @@ import { createDefaultWorldSettings } from "../../src/document/world-settings";
import { PrecomputedShaderSkyEnvironmentCache } from "../../src/rendering/precomputed-shader-sky-environment-cache";
import {
resolveWorldShaderSkyEnvironmentPhaseStates,
resolveWorldShaderSkyRenderState
resolveWorldShaderSkyRenderState,
type WorldShaderSkyRenderState
} from "../../src/rendering/world-shader-sky";
import {
resolveRuntimeDayNightWorldState,
@@ -54,7 +55,7 @@ describe("PrecomputedShaderSkyEnvironmentCache", () => {
mode: "shader"
};
const cache = new PrecomputedShaderSkyEnvironmentCache({
buildEnvironmentTexture: vi.fn((state) => {
buildEnvironmentTexture: vi.fn((state: WorldShaderSkyRenderState) => {
buildOrder.push(state.time.dayPhase);
return {
texture: phaseTextures[state.time.dayPhase],