auto-git:

[change] src/app/App.tsx
 [change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-04-22 14:01:35 +02:00
parent 759b58e696
commit a311b33c58
2 changed files with 39 additions and 0 deletions

View File

@@ -10342,6 +10342,19 @@ export function App({ store, initialStatusMessage }: AppProps) {
);
};
const applySceneShowCelestialBodies = (enabled: boolean) => {
applyWorldSettings(
{
...editorState.document.world,
showCelestialBodies: enabled
},
enabled ? "Enable celestial body overlay" : "Disable celestial body overlay",
enabled
? "Sun and moon overlays now render in the sky."
: "Sun and moon overlays are now hidden."
);
};
const applyAdvancedRenderingSettings = (
label: string,
successMessage: string,
@@ -13900,6 +13913,27 @@ export function App({ store, initialStatusMessage }: AppProps) {
</div>
</div>
<div className="form-section">
<label className="form-field form-field--toggle">
<span className="label">Show Sun &amp; Moon</span>
<input
data-testid="world-show-celestial-bodies"
type="checkbox"
checked={editorState.document.world.showCelestialBodies}
onChange={(event) =>
applySceneShowCelestialBodies(
event.currentTarget.checked
)
}
/>
</label>
<div className="material-summary">
Draws shader-based sun and moon overlays at the current
resolved light directions in both the editor viewport and
the runner.
</div>
</div>
<Panel title="Day Environment">
<div className="stat-card">
<div

View File

@@ -298,6 +298,11 @@ interface TerrainBrushHit {
point: Vec3;
}
interface LightVolumeRenderObjects {
group: Group;
lights: PointLight[];
}
interface ActiveTerrainBrushStroke {
pointerId: number;
previewTerrain: Terrain;