- shaderMaterial<TProps>(uniforms, vertexShader, fragmentShader, onInit?): ShaderMaterialEx<TProps>
Type Parameters
TProps extends UniformProps
Parameters
vertexShader: string
fragmentShader: string
Optional
onInit: ((material) => void)
- (material): void
Parameters
material: ShaderMaterialInstance<TProps>
Returns void
Returns ShaderMaterialEx<TProps>