auto-git:
[change] src/app/App.tsx [change] src/assets/starter-environment-assets.ts [change] src/document/migrate-scene-document.ts [change] src/document/scene-document-validation.ts [change] src/document/scene-document.ts [change] src/document/world-settings.ts [change] src/rendering/world-background-renderer.ts [change] src/rendering/world-shader-sky.ts [change] src/runtime-three/runtime-host.ts [change] src/runtime-three/runtime-project-time.ts [change] src/shared-ui/world-background-style.ts [change] src/viewport-three/ViewportCanvas.tsx [change] src/viewport-three/viewport-host.ts [change] tests/domain/runtime-project-time.test.ts [change] tests/domain/scene-document-validation.test.ts [change] tests/domain/world-settings.test.ts [change] tests/serialization/project-document-json.test.ts [change] tests/serialization/scene-document-json.test.ts [change] tests/unit/world-shader-sky.test.ts
This commit is contained in:
@@ -5,12 +5,10 @@ import type { WorldBackgroundSettings } from "../document/world-settings";
|
||||
export function createWorldBackgroundStyle(
|
||||
background: WorldBackgroundSettings,
|
||||
imageUrl: string | null = null,
|
||||
shaderPreview:
|
||||
| {
|
||||
topColorHex: string;
|
||||
bottomColorHex: string;
|
||||
}
|
||||
| null = null
|
||||
shaderPreview: {
|
||||
topColorHex: string;
|
||||
bottomColorHex: string;
|
||||
} | null = null
|
||||
): CSSProperties {
|
||||
if (background.mode === "solid") {
|
||||
return {
|
||||
@@ -24,9 +22,7 @@ export function createWorldBackgroundStyle(
|
||||
backgroundColor: shaderPreview?.bottomColorHex ?? "#8cbef6",
|
||||
backgroundImage: `linear-gradient(180deg, ${
|
||||
shaderPreview?.topColorHex ?? "#5f8fd3"
|
||||
} 0%, ${
|
||||
shaderPreview?.bottomColorHex ?? "#d8eeff"
|
||||
} 100%)`
|
||||
} 0%, ${shaderPreview?.bottomColorHex ?? "#d8eeff"} 100%)`
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user