Function shaderMaterial

  • Type Parameters

    • TProps extends UniformProps

    Parameters

    • uniforms: TProps
    • vertexShader: string
    • fragmentShader: string
    • Optional onInit: ((material) => void)
        • (material): void
        • Parameters

          • material: ShaderMaterialInstance<TProps>

          Returns void

    Returns ShaderMaterialEx<TProps>