Example #1
0
 /// <summary>
 /// Sets the uniforms in a compiled shader.
 /// </summary>
 /// <param name="shader">Target shader</param>
 public void SetUniforms(CompiledShader shader)
 {
     foreach (var uniform in this.uniforms.automaticUniforms)
     {
         uniform.Apply(shader, target);
     }
 }
Example #2
0
 internal Uniform(CompiledShader cs, int location, string name, ActiveUniformType type, int size)
 {
     this.shader   = cs;
     this.Location = location;
     this.Name     = name;
     this.Type     = type;
     this.Size     = size;
 }