BuiltinShaderTemplate
此内容尚不支持你的语言。
Defined in: builtinShaders.ts:14
builtinShaders.ts
Built-in .esshader templates — the engine’s stock material starting points.
Details
Section titled “Details”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.
Properties
Section titled “Properties”defaults
Section titled “defaults”defaults:
Record<string,unknown>
Defined in: builtinShaders.ts:21
Initial .esmaterial properties for a material born from this template.
description
Section titled “description”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
Section titled “source”source:
string
Defined in: builtinShaders.ts:19