Shader.uniform

Set vector to uniform.

  1. Shader uniform(string name, V v)
    class Shader
    uniform
    (
    V
    )
    (
    in string name
    ,
    V v
    )
    if (
    isVector!(V) &&
    V.dimention <= 4
    )
  2. Shader uniform(string name, M m)
  3. Shader uniform(string name, Args v)
  4. Shader uniform(string name, Args v)

Examples

    auto v = ar.Vector!(float, 3)(1.0, 2.0, 3.0);
shader.setUniform("v", v);

Meta