示例#1
0
文件: shader.go 项目: num5/steven
// Matrix4 sets the value of the uniform to the passed matrix.
func (u Uniform) Matrix4Multi(matrix []mgl32.Mat4) {
	gl.UniformMatrix4fv(int32(u), int32(len(matrix)), false, (*float32)(gl.Ptr(matrix)))
}
示例#2
0
文件: shader.go 项目: num5/steven
// Matrix4 sets the value of the uniform to the passed matrix.
func (u Uniform) Matrix4(matrix *mgl32.Mat4) {
	gl.UniformMatrix4fv(int32(u), 1, false, (*float32)(unsafe.Pointer(matrix)))
}