Shader.setUniform

Sets the color of a 4D vector type uniform.

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

Parameters

name string

The name of the uniform variable.

color Color!ubyte

Color structure.

Meta