Shader.setUniform

Passes a 3-by-3 variable matrix to the uniform.

  1. void setUniform(string name, Color!ubyte color)
  2. void setUniform(string name, float value)
  3. void setUniform(string name, float[4][4] value)
  4. void setUniform(string name, float[3][3] value)
    class Shader(int type)
    @trusted
    static if(isShaderProgram!Type)
    void
    setUniform
    (
    string name
    ,
    float[3][3] value
    )

Parameters

name string

The name of the uniform variable.

value float[3][3]

Matrix.

Meta