Exemple #1
0
func (s *Shader) setUniform(uniformName string, value Vector3f) {
	gl.Uniform3f(s.uniforms[uniformName], value.X, value.Y, value.Z)
}
Exemple #2
0
// 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)
}
Exemple #3
0
func (c *Context) Uniform3f(location *UniformLocation, x, y, z float32) {
	gl.Uniform3f(location.int32, x, y, z)
}