mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
render: wind relief is the globe port's hillshade; the wind layer no longer reaches Cesium
The wind relief now asks the globe port for hillshade surface shading at 0.28 instead of building a globe material itself; the Cesium globe port draws the same view-directed shading, over terrain normals or the globe's curvature, and the unbound provider now lists surfaceShading. The wind layer's canvas flow, bounds, imagery fade and render requests go through the camera, frame and query ports, so src/layers/wind/rendering.js and relief.js leave the Cesium allow list. A refused shading request is taken back so it never shows after Wind is off, and a camera height that is not a number falls back as before. The application layers and standalone catalog entries no longer load the unbound factories themselves: a viewer with no renderer bound needs render/cesium/unbound loaded first. The contract and current-state docs say what the Cesium adapter's fields and surface shading do now.
This commit is contained in:
1 parent
fcd1c09565
commit
2a26d13fff
10 files changed
+294
-324
No files matched your search
@@ -363,9 +363,10 @@ resources and subscriptions. The globe relief helper is enabled with Wind and
|
||||
released when Wind is disabled. It uses terrain vertex normals
|
||||
for view-directed shading, falling back to global globe-curvature shading when
|
||||
normals are unavailable; the fallback does not show local hillshade. Neither mode
|
||||
adds elevation data or represents sunlight. Relief declines to replace an
|
||||
existing globe material, restores the prior empty material only while still
|
||||
owning it, and leaves later owners intact.
|
||||
adds elevation data or represents sunlight. Relief is the globe port's
|
||||
`hillshade` surface shading: the renderer never replaces a globe material
|
||||
someone else holds (it waits until that one is gone), gives the globe back
|
||||
when Wind is disabled, and leaves later owners intact.
|
||||
Source acquisition retains deadlines, body budgets, disconnect cancellation,
|
||||
per-model/field singleflight caching and one-minute failure backoff. Application
|
||||
catalog construction owns each instance.
|
||||
|
||||
@@ -65,8 +65,12 @@ optional, so a renderer written before it still conforms:
|
||||
one, and says how shells stack, blend and update. `FieldHandle.on('drawn')`
|
||||
says once per spec or `update` that it is drawn, never while hidden. These
|
||||
change `fields` itself rather than add to it, so the renderer follows
|
||||
`fields` before must follow them; only the stub lists it, and the Cesium
|
||||
adapter has no `fields` yet.
|
||||
`fields` before must follow them. The Cesium adapter lists `fields` and
|
||||
draws `rasterShell` and `windStreamlines`; it refuses `scalarRaster`. It
|
||||
draws streamlines only over the whole globe: it reads the grid's samples
|
||||
as points, the first column at `rectangle.west` and the first row at
|
||||
`rectangle.north`, rows running south, and traces paths that wrap east
|
||||
and west, so it refuses a grid short of 360° of longitude.
|
||||
- `ModulationSector` gains `radius` and `floor` and says what it modulates:
|
||||
icons, points and models dimmed toward `floor` outside the band, the map,
|
||||
lines and shapes as they are, picks unchanged. Its pass is named
|
||||
|
||||
Reference in new issue
Block a user