You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`triangles(key, tris, color, alpha)` — a filled triangle list (soup); `tris` is an array of triangles, each `[a, b, c]` of positions. Non-indexed geometry, DoubleSide; `color` is a `ColorArg` (static or per-frame `(f) => Color`), `alpha` per-frame; sig-rebuilds when any vertex moves. Use instead of `draw` + a hand-built tri mesh.
104
105
-`label(key, pos, text, opts?)` — a 3D-anchored, screen-fixed text label with a rounded-rect backdrop pill. Sits on a 3D point (`pos`, resolved each frame so it follows the anchor) and stays a CONSTANT on-screen size by compensating the Sprite scale for the OrbitCam dolly (`baseSize / camera.zoom`). `opts`: `{ color?, backdrop?=true, backdropColor?, size?=0.14, alpha? }`.
105
106
-`draw(key, object: THREE.Object3D, alpha)` — **custom primitive**: you supply any
106
107
THREE object (Group/Mesh/LineSegments you built); the library retains it by key
0 commit comments