Set default environmentIntensity when changing background mode to image

This commit is contained in:
2026-03-31 23:13:27 +02:00
parent 9ba44307e7
commit 9a93e8dbcb

View File

@@ -156,7 +156,8 @@ export function changeWorldBackgroundMode(
return {
mode: "image",
assetId: imageAssetId
assetId: imageAssetId,
environmentIntensity: background.mode === "image" ? background.environmentIntensity : 0.5
};
}