auto-git:
[change] tests/unit/precomputed-shader-sky-environment-cache.test.ts
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user