splatPool.renderFeature
The render feature that draws the sdfSplats pool. Each frame it lays out every registered source in one shared buffer of packed splat records, runs each source's generator once, then per render target (viewport, every offscreen capture, every render-to-texture camera) rebuilds th…
splatPool
The render feature that draws the sdfSplats pool. Each frame it lays out every registered source in
one shared buffer of packed splat records, runs each source's generator once,
then per render target (viewport, every offscreen capture, every
render-to-texture camera) rebuilds the cull uniforms from that target's
camera (splat_view_prep) and runs the builtin splat_cull, the shared
gpuSort radix passes and a channel = "gaussian" splat draw composited over
the lit scene. It compiles its per-view programs up front and draws only once
they are ready. Started and stopped by sdfSplats.module as sources come and
go; you do not create it yourself.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2splatPool render feature (sdfSplats package) — draws every procedural splat source registered in `sdfSplats` (the module beside this feature) as Gaussian splats. All sources share ONE pool of packed 24-byte splat records, each owning a contiguous range of it, so the whole pool is culled and sorted together and splats from different sources composite in the right order where they overlap. Each frame: generate every source's `generate(frame)` runs once, writing its range of the pool (a compute painter such as `sdf_shapes`, or Splatgrove's garden painter) then, PER RENDER TARGET (`render` runs once a frame, but the passes it enqueues run once for every view the frame draws — the viewport, each offscreen capture, each render-to-texture camera): splat_view_prep rebuilds the cull's uniforms from `@frame.camera`, the camera THAT target is drawn from splat_cull (builtin) files every splat into a log-spaced depth bucket against it gpuSort radix (builtin) orders the pool far to near splat draw `channel = "gaussian"`, then the builtin splat composite lays the strokes over the lit scene The cull and sort sit at `afterOpaque` because a phase drains its splat draws ahead of its compute passes; the draw and composite are at `afterLighting`. Enqueued compute passes run a program that is already compiled; enqueuing does not compile it. So the five per-view programs are compiled when the pool is built and nothing is drawn until all five report "ready" — without that, a freshly started engine would enqueue passes that never run and draw nothing.
keyBits(maxKey: number) → number
| arg | type | description |
|---|---|---|
| maxKey | number |
freePool( ) → void
buildPool(count: number, version: number) → Pool
| arg | type | description |
|---|---|---|
| count | number | |
| version | number |
viewProgramsReady( ) → boolean
The per-view passes only run on compiled programs: ask for each once, then report ready when all five are.
ensureComposite( ) → void
render(ctx: ?) → void
| arg | type | description |
|---|---|---|
| ctx | ? |
teardown(ctx: ?) → void
| arg | type | description |
|---|---|---|
| ctx | ? |
Render feature drawing every procedural splat source in one pool: per-view cull, radix depth sort and gaussian splat draw.Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.