func (s *Shader) setUniform(uniformName string, value Vector3f) { gl.Uniform3f(s.uniforms[uniformName], value.X, value.Y, value.Z) }
// Uniform3f writes a vec3 uniform variable. // // http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml func Uniform3f(dst Uniform, v0, v1, v2 float32) { gl.Uniform3f(dst.Value, v0, v1, v2) }
func (c *Context) Uniform3f(location *UniformLocation, x, y, z float32) { gl.Uniform3f(location.int32, x, y, z) }