auto-git:

[change] src/app/App.tsx
This commit is contained in:
2026-04-22 12:31:01 +02:00
parent 6fbdd8b071
commit 19b60cd5a7

View File

@@ -2719,6 +2719,17 @@ export function App({ store, initialStatusMessage }: AppProps) {
] = useState(
String(editorState.document.world.timeOfDay.dawn.lightIntensityFactor)
);
const [
worldDawnBackgroundEnvironmentIntensityDraft,
setWorldDawnBackgroundEnvironmentIntensityDraft
] = useState(
editorState.document.world.timeOfDay.dawn.background.mode === "image"
? String(
editorState.document.world.timeOfDay.dawn.background
.environmentIntensity
)
: String(DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY)
);
const [
worldDuskAmbientIntensityFactorDraft,
setWorldDuskAmbientIntensityFactorDraft
@@ -2731,6 +2742,17 @@ export function App({ store, initialStatusMessage }: AppProps) {
] = useState(
String(editorState.document.world.timeOfDay.dusk.lightIntensityFactor)
);
const [
worldDuskBackgroundEnvironmentIntensityDraft,
setWorldDuskBackgroundEnvironmentIntensityDraft
] = useState(
editorState.document.world.timeOfDay.dusk.background.mode === "image"
? String(
editorState.document.world.timeOfDay.dusk.background
.environmentIntensity
)
: String(DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY)
);
const [
worldNightAmbientIntensityFactorDraft,
setWorldNightAmbientIntensityFactorDraft
@@ -2752,7 +2774,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
editorState.document.world.timeOfDay.night.background
.environmentIntensity
)
: "0.5"
: String(DEFAULT_NIGHT_IMAGE_ENVIRONMENT_INTENSITY)
);
const [
backgroundEnvironmentIntensityDraft,