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. External texture declarations are snapshotted here and validated by their optional binding API.