Shader.attr

Set vector as an attribute.

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

Examples

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

Meta