示例#1
0
func (s *Shader) setUniform(uniformName string, value Vector3f) {
	gl.Uniform3f(s.uniforms[uniformName], value.X, value.Y, value.Z)
}
示例#2
0
文件: gl_opengl.go 项目: tanema/amore
// 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)
}
示例#3
0
文件: gl_gl2.go 项目: EngoEngine/gl
func (c *Context) Uniform3f(location *UniformLocation, x, y, z float32) {
	gl.Uniform3f(location.int32, x, y, z)
}