Shader.setUniform

Passes a 4-by-4 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)
    class Shader(int type)
    @trusted
    static if(isShaderProgram!Type)
    void
    setUniform
    (
    string name
    ,
    float[4][4] value
    )
  4. void setUniform(string name, float[3][3] value)

Parameters

name string

The name of the uniform variable.

value float[4][4]

Matrix.

Meta