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:
Sameh Khamis committed 2026-11-12 12:10:27 -08:00
1 parent aa58886e40
commit 06516819da
6 files changed
+60 -7

No files matched your search

+2
View File
@@ -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,
+3
View File
@@ -380,6 +380,9 @@ export function createShipwrecksLayer({
// sprite layers (`SPRITE_LAYER_ORDER`).
_markers = drawOf(viewer).icons({
id: 'shipwrecks:markers',
// Blended in one pass, in order: the wrecks added last (the
// largest) on top.
blend: 'translucent',
drawOrder: spriteDrawOrder(SHIPWRECKS_LAYER_ID),
show: false,
});
+3
View File
@@ -145,6 +145,9 @@ export function createRendering({
if (!viewer || state.icons) return;
const set = drawOf(viewer).icons({
id: `ais-vessels:${++instances}`,
// Blended in one pass, in order, each chevron keeping its outline
// over the ones under it.
blend: 'translucent',
horizonCull: true,
drawOrder: spriteDrawOrder?.('ais') ?? 0,
});