mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Each frame drawn, a set's host turns the draw commands it gave to the set's blend before the scene sorts them: opaque draws every command in the opaque pass unblended with depth writes; translucent alpha-blends every command without depth writes; additive adds colour times alpha without depth writes, still depth-tested, after the opaque commands and before the order-independent translucent pass. Ground commands only blend differently. Lines, shapes, models, quads, meshes and GPU icons take every blend, live through setOptions (models do not load again); GPU icons no longer refuse opaque or additive. The contract documents the semantics and the checks draw.sets.blend and draw.models.blend read the pixels. The package boundaries own setBlend.js and screenCluster.js.