A material that uses a custom Shader program.
    public class ShaderMaterial : Material

A material that uses a custom Shader program to render either items to screen or process particles. You can create multiple materials for the same shader but configure different values for the uniforms defined in the shader.

Inheritance Chain

Constructors

    public ShaderMaterial()

Properties

    public Shader Shader { get; set; }

The Shader program used to render this material.

Methods

    public Shader GetShader()

Getter for Shader

    public object GetShaderParam(string param)

Returns the current value set for this material of a uniform in the shader.

    public bool PropertyCanRevert(string name)

    public object PropertyGetRevert(string name)

    public void SetShader(Shader shader)

Setter for Shader

    public void SetShaderParam(string param, object value)

Changes the value set for this material of a uniform in the shader.

Tags: