mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 03:32:19 +00:00
fix(render): translucent icon sets on the GPU blend as Cesium's translucent billboards
A GPU icon set whose blend is translucent draws every row in one alpha-blended pass in row order (LEQUAL, depth written), as BlendOption.TRANSLUCENT billboards do, in place of the opaque and translucent passes the set's blend only re-blended: overlapping icons kept the first row's fill and lost the outlines of those over it. The vessels, shipwrecks and FIRMS sets ask for that blend again, as their billboard collections did.
This commit is contained in:
1 parent
aa58886e40
commit
06516819da
6 files changed
+60
-7
No files matched your search
@@ -307,6 +307,7 @@ export function createGpuIcons({
|
||||
clockTime(frameState, new Cesium.JulianDate()),
|
||||
requestRender: () => requestRender(`icons:${spec.id}`),
|
||||
cull: () => spec.horizonCull === true,
|
||||
translucent: () => spec.blend === 'translucent',
|
||||
// Picked as the draw port's other items are: `{set, id, meta}` as
|
||||
// the item now is, hidden row by row for drill picks.
|
||||
pickObject: (id, _set, primitive) => ({
|
||||
|
||||
Reference in new issue
Block a user