sdfSplats.package
- ..
- .metadata240 B
- README.md911 B
- bindings.yaml747 B
- shader.wgsl6.5 KB
README.md
sdf_shapes
The painter behind SdfSplatShape: paints every shape — sphere, rounded box,
torus, capsule, rounded cylinder, cone, octahedron or lumpy blob, each
optionally morphing into a second primitive and wobbling with animated noise —
with brush-stroke Gaussian splats every frame. Each splat is seeded on an even
Fibonacci sphere around its shape, projected onto the current surface,
oriented as a stroke, coloured with a base-to-tip gradient and shaded as paint
with self shadow and AO (sdf_surface). Dispatched by shapes.module as one
sdfSplats source.
| Slot | Access | Contents |
|---|---|---|
records | read_write | The shared sdfSplats pool (6 u32 per splat). |
scene | read | ShapeScene: time, shape count, splat count, stroke size, SplatLight. |
shapes | read | Shape per shape, eight vec4s each. |
params.first | uniform | Where this source starts in the pool. |