Primitives

Primitives are a way of authoring shader components using building blocks instead of hand-rolling WGSL code. Each one is a plain TypeScript function you compose inside defineShader, and the engine turns the result into WebGPU at runtime.

New here? Read Custom Components first, then start with defineShader & wgsl.

Defining a shader

Painting

Noise, light & materials

Shapes, frames & warps

Filters & effects

Simulation

For agents and tools: the whole vocabulary as llms.txt or as docs-manifest.json, generated from engine 4.0.5.