mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 18:52:18 +00:00
A line can show only the part of it within a time span of the scene clock (#1894)
* A line can show only the part of it within a time span of the scene clock LineAgeFade.showMs (capability lineTimeWindow) draws only the part of an aged line whose time, interpolated along it, lies between showMs before the scene clock and the clock itself, cut as the clock moves without the line being sent again. A moving trail can then be sent once as its whole track. The Cesium port discards by time in its aged line material, draped or not, and the conformance check draw.lines.timeWindow pins it. Without showMs the fade is unchanged. * Changelog for line time window (#1894)
This commit is contained in:
1 parent
561f5885c2
commit
e4caf5d3af
11 files changed
+221
-8
No files matched your search
@@ -139,6 +139,16 @@ optional:
|
||||
along their length, others per vertex), and an undraped one moves and
|
||||
recolours in place in its polyline collection. The check
|
||||
`draw.lines.ageFade` covers it, draped and not, narrowed too.
|
||||
- `LineAgeFade.showMs` (capability `lineTimeWindow`) draws only the part of
|
||||
an aged line within `showMs` of the scene clock: where its time, running
|
||||
evenly between positions as the fade's does, is after now or before
|
||||
`now - showMs`, it is not drawn (nor picked), cut there along the line,
|
||||
not at a position. The cut follows `frame.setTime` as the fade does, so a
|
||||
moving object's trail can be its whole track, sent once and drawn from
|
||||
`showMs` ago up to where the object is now; `Infinity` cuts at now alone.
|
||||
A renderer without the capability draws the whole line. The Cesium port
|
||||
lists it with `lineAgeFade` and discards by time in the same material;
|
||||
the check `draw.lines.timeWindow` covers it, draped and not.
|
||||
- A solid line's `outline.widthPx` is the outline's whole width, half on
|
||||
each side, inside the line's own width: an 8 px line with a 4 px outline
|
||||
is 2 px of outline, 4 px of colour and 2 px of outline, as Cesium draws
|
||||
|
||||
Reference in new issue
Block a user