Skip to content

@modoki/engine / index / ShaderParamType

Type Alias: ShaderParamType

ShaderParamType = "float" | "color" | "bool" | "vec2" | "vec3" | "vec4" | "texture"

Shader parameter schema — the PURE half of loaders/shaderSchema.ts (P7 C10). Declares which params a shader exposes and how the editor should render them; the chosen param VALUES live in the material's params object. Moved to core/ since rendering/ pixiShaderBuilder.ts needs these with no network dependency — loaders/shaderSchema.ts keeps only fetchShaderManifest (the actual network fetch) and re-exports everything here.

Built with Modoki.