shader(id: string, uniform?: Uniform | ()=>Uniform): ShaderComp
Custom shader.
param
id- The shader id.
param
uniform- The uniform to pass to the shader.
returns
The shader comp.
since
v2000.0
Custom shader.
param
id- The shader id.
param
uniform- The uniform to pass to the shader.
returns
The shader comp.
since
v2000.0