Make SetSpec.drawOrder exact and draw it in Cesium and the stub

Among sets that skip the depth test, a higher drawOrder draws over a lower
one whatever order they were made in, and picks name them topmost first.

Cesium draws the earlier of two opaque near-plane icons on top and picks
it, so the draw port stacks the sets' hosts with a higher order earlier,
ties in the order the sets were made. Hosts trade places only among the
slots draw-set hosts already hold, so no other primitive moves; nothing
moves while every set is at 0. Translucent items blend
order-independently in Cesium and are not ordered by it.

The stub sorts its hits the same way. A conformance check draws two icon
sets at one spot and swaps their orders.
This commit is contained in:
Sameh Khamis committed 2026-11-08 13:01:36 -08:00
1 parent 45302e9fbf
commit 8fe8b8e14d
6 files changed
+219 -3

No files matched your search

+6 -1
View File
@@ -51,7 +51,12 @@ export interface SetSpec {
/** `cluster`: screen-space clustering (icons only). */
cluster?: ClusterSpec | null;
blend?: 'opaque' | 'translucent' | 'additive';
/** Draw order between sets that do not depth-test against each other. */
/**
* Among sets that do not depth-test against each other (items drawn with
* `disableDepthTest`), a higher one draws over a lower one whatever order
* they were made in; equal ones keep that order. `pick` and `drillPick`
* name them topmost first. Default 0.
*/
drawOrder?: number;
/** `false`: the set never takes part in picks. */
pickable?: boolean;