docs(render): translucent icon sets blend as Cesium's translucent billboards, order-independently where the scene is; a test for a host that draws its blend itself

This commit is contained in:
Sameh Khamis committed 2026-11-12 12:14:47 -08:00
1 parent 06516819da
commit 01788c1b10
5 files changed
+38 -11

No files matched your search

+1 -1
View File
@@ -466,7 +466,7 @@ 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.
// Blended as one translucent pass, as its billboards were.
blend: 'translucent',
horizonCull: true,
show: layerState._enabled && !(layerState._handoffHeat >= 1),
+1 -2
View File
@@ -380,8 +380,7 @@ 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.
// Translucent, as its billboards were.
blend: 'translucent',
drawOrder: spriteDrawOrder(SHIPWRECKS_LAYER_ID),
show: false,
+2 -2
View File
@@ -145,8 +145,8 @@ 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.
// Translucent, as its billboards were: overlapping chevrons keep
// their outlines rather than the first one's fill.
blend: 'translucent',
horizonCull: true,
drawOrder: spriteDrawOrder?.('ais') ?? 0,