feat(render): a renderer can draw weather: the weather capability adds globe.weather (clouds, fog, haze, rain and snow, 0 to 1, and the wind they drift on); the view shows the conditions observed under the camera, and the Display panel's Weather group sets them by hand

This commit is contained in:
Sameh Khamis committed 2026-11-13 11:02:56 -08:00
1 parent 639e92b4f7
commit 0b1dc325bc
29 files changed
+869 -27

No files matched your search

+13
View File
@@ -28,6 +28,17 @@ export const useDisplayStore = defineStore('gev-display', () => {
models3d.value = markRaw(next);
}
/**
* The Weather group, `{live, status, values}` (values in percent by
* condition); null where the renderer draws no weather.
*/
const weather = shallowRef(null);
/** @param {?object} next A fresh presentation of the Weather group. */
function publishWeather(next) {
weather.value = next && markRaw(next);
}
/** The Draw controls; null until the draw tool first renders. */
const draw = shallowRef(null);
@@ -108,6 +119,8 @@ export const useDisplayStore = defineStore('gev-display', () => {
publish,
models3d,
publishModels3d,
weather,
publishWeather,
draw,
publishDraw,
geoImport,