Skip to content

BuiltinShaderTemplate

Defined in: builtinShaders.ts:14

builtinShaders.ts

Built-in .esshader templates — the engine’s stock material starting points.

Each template carries a #pragma fragment wgsl twin so it compiles on the WebGPU backend. Twins run under the canonical fragment-only contract: fs_main(v : VSOut) with v.v_color / v.v_texCoord (+ v.v_worldPos on Lit2D), the batch textures as t0..t7 / s0..s7, params as mc., texture params as + _s, and the frame clock as tc.u_time / tc.u_viewport.

defaults: Record<string, unknown>

Defined in: builtinShaders.ts:21

Initial .esmaterial properties for a material born from this template.


description: string

Defined in: builtinShaders.ts:18


id: string

Defined in: builtinShaders.ts:15


label: string

Defined in: builtinShaders.ts:17

Menu / picker label, e.g. “Lit”.


source: string

Defined in: builtinShaders.ts:19