Shader.uniform

Set bool as int to uniform.

  1. Shader uniform(string name, V v)
  2. Shader uniform(string name, M m)
  3. Shader uniform(string name, Args v)
    class Shader
    uniform
    (
    Args...
    )
    (
    in string name
    ,
    Args v
    )
    if (
    0 < Args.length &&
    Args.length <= 4
    &&
    is(Args[0] == bool)
    )
  4. Shader uniform(string name, Args v)

Examples

// Set variables to glsl uniform named "v".
bool a = 1.0;
bool b = 2.0;
bool c = 3.0;
shader.setUniform("v", a, b, c);

Meta