Function defineShaderMaterial
- defineShaderMaterial(uniforms, vertexShader, fragmentShader, onInit?): typeof ShaderMaterial & { 
 key: string;
 }
- Parameters- uniforms: { 
 [name: string]:
 | CubeTexture
 | Texture
 | Int32Array
 | Float32Array
 | Matrix4
 | Matrix3
 | Quaternion
 | Vector4
 | Vector3
 | Vector2
 | Color
 | number
 | boolean
 | any[]
 | null;
 }- [name: string]: 
 | CubeTexture
 | Texture
 | Int32Array
 | Float32Array
 | Matrix4
 | Matrix3
 | Quaternion
 | Vector4
 | Vector3
 | Vector2
 | Color
 | number
 | boolean
 | any[]
 | null
 
- vertexShader: string
- fragmentShader: string
- OptionalonInit: ((material?: ShaderMaterial) => void)- (material?): void
- Parameters- Optionalmaterial: ShaderMaterial
 
- Returns void
 
 
 
- Returns typeof ShaderMaterial & { 
 key: string;
 }
Define a ShaderMaterial