auto-git:
[change] src/document/world-settings.ts
This commit is contained in:
@@ -527,7 +527,8 @@ export function areAdvancedRenderingSettingsEqual(left: AdvancedRenderingSetting
|
|||||||
export function changeWorldBackgroundMode(
|
export function changeWorldBackgroundMode(
|
||||||
background: WorldBackgroundSettings,
|
background: WorldBackgroundSettings,
|
||||||
mode: WorldBackgroundMode,
|
mode: WorldBackgroundMode,
|
||||||
imageAssetId?: string
|
imageAssetId?: string,
|
||||||
|
imageEnvironmentIntensity = DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY
|
||||||
): WorldBackgroundSettings {
|
): WorldBackgroundSettings {
|
||||||
if (mode === "image") {
|
if (mode === "image") {
|
||||||
if (imageAssetId === undefined || imageAssetId.trim().length === 0) {
|
if (imageAssetId === undefined || imageAssetId.trim().length === 0) {
|
||||||
@@ -544,7 +545,7 @@ export function changeWorldBackgroundMode(
|
|||||||
environmentIntensity:
|
environmentIntensity:
|
||||||
background.mode === "image"
|
background.mode === "image"
|
||||||
? background.environmentIntensity
|
? background.environmentIntensity
|
||||||
: DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY
|
: imageEnvironmentIntensity
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user