Function createShaderMaterial
-
Parameters
- options: ShaderMaterialOptions
Sources, attributes, uniforms, resource declarations, defines, and render state.
Returns ShaderMaterial
The constructed
ShaderMaterial. - options: ShaderMaterialOptions
Sources, attributes, uniforms, resource declarations, defines, and render state.
The constructed ShaderMaterial.
Create a ShaderMaterial from WGSL sources and declarations, validating attributes, uniforms, samplers, and defines. Uniform declarations are copied so caller mutation cannot change the compiled layout or its dependencies. External texture declarations are snapshotted here and validated by their optional binding API.