mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +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
@@ -466,6 +466,8 @@ export function createRendering({
|
||||
if (!layerState._viewer || layerState._icons) return;
|
||||
const set = drawOf(layerState._viewer).icons({
|
||||
id: `firms:${++iconSets}:icons`,
|
||||
// Blended in one pass, in order, as the detections overlap.
|
||||
blend: 'translucent',
|
||||
horizonCull: true,
|
||||
show: layerState._enabled && !(layerState._handoffHeat >= 1),
|
||||
drawOrder: spriteDrawOrder?.('firms') ?? 0,
|
||||
|
||||
Reference in new issue
Block a user