Log inGet started
Package

sdf_shapes.computeShader

Newest version

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.

SlotAccessContents
recordsread_writeThe shared sdfSplats pool (6 u32 per splat).
scenereadShapeScene: time, shape count, splat count, stroke size, SplatLight.
shapesreadShape per shape, eight vec4s each.
params.firstuniformWhere this source starts in the pool.