mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Display panel: a Sky group for the atmosphere, day and night, sun, moon, stars and Milky Way
createViewSky sets globe.sky from the panel's switches and Milky Way slider and keeps the choice for the next visit; what the user has not set stays as the renderer draws it. Distance fog stays with the styles that switch it.
This commit is contained in:
1 parent
5cd28731fa
commit
af3383a5a9
19 files changed
+331
-14
No files matched your search
@@ -39,6 +39,17 @@ export const useDisplayStore = defineStore('gev-display', () => {
|
||||
weather.value = next && markRaw(next);
|
||||
}
|
||||
|
||||
/**
|
||||
* The Sky group, `{switches, milkyWay}` (switches by name, the Milky Way
|
||||
* in percent); null where the renderer has no sky to set.
|
||||
*/
|
||||
const sky = shallowRef(null);
|
||||
|
||||
/** @param {?object} next A fresh presentation of the Sky group. */
|
||||
function publishSky(next) {
|
||||
sky.value = next && markRaw(next);
|
||||
}
|
||||
|
||||
/** The Draw controls; null until the draw tool first renders. */
|
||||
const draw = shallowRef(null);
|
||||
|
||||
@@ -121,6 +132,8 @@ export const useDisplayStore = defineStore('gev-display', () => {
|
||||
publishModels3d,
|
||||
weather,
|
||||
publishWeather,
|
||||
sky,
|
||||
publishSky,
|
||||
draw,
|
||||
publishDraw,
|
||||
geoImport,
|
||||
|
||||
Reference in new issue
Block a user