Shader.setUniform

Sends a float value to the uniform.

  1. void setUniform(string name, Color!ubyte color)
  2. void setUniform(string name, float value)
    class Shader(int type)
    @trusted
    static if(isShaderProgram!Type)
    void
    setUniform
    (
    string name
    ,
    float value
    )
  3. 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

Variable value.

Meta