mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
GPU icons draw offsets, anchors, rotations, fades, display ranges and clamped heights
Each row reads its extras from a float texture by instance (texelFetch on gl_InstanceID), so the 16 vertex attributes hold: pixel offset, vertical anchor, screen rotation and aligned axis (turned as billboards turn), fadeByDistance, displayRange, and a ground mode with the heights under its segment's two ends. Clamped rows are sampled after a frame draws, budgeted across the port's sets (terrain first, then the drawn surface), and again when the globe's tiles finish loading. WebGL 1 still refuses these; GPU sets still refuse clustering. The stub picks icons offset, anchored, turned and clamped to its ellipsoid, and draw.motion.look checks each on a moving icon.
This commit is contained in:
1 parent
759308404e
commit
933969b7da
9 files changed
+892
-29
No files matched your search
@@ -5159,6 +5159,12 @@ export function createCesiumDraw({
|
||||
afterRender() {
|
||||
watchClamp();
|
||||
swapReady();
|
||||
// Clamped GPU icons take the ground under their segments.
|
||||
const budget = gpu.groundBudget();
|
||||
let grounded = false;
|
||||
for (const record of sets.values())
|
||||
if (record.gpu?.ground(budget)) grounded = true;
|
||||
if (grounded) requestRender();
|
||||
for (const record of sets.values())
|
||||
if (record.kind === 'lines')
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user