Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package opengl
import (
mgl "github.com/go-gl/mathgl/mgl32"
)
// UniformLocation represents a uniform parameter for a shader program.
type UniformLocation int32
// Matrix4Uniform represents one uniform parameter for a 4x4 matrix.
type Matrix4Uniform UniformLocation
// Set stores the provided matrix as the current uniform value.
func (location Matrix4Uniform) Set(gl OpenGL, matrix *mgl.Mat4) {
matrixArray := (*[16]float32)(matrix)
gl.UniformMatrix4fv(int32(location), false, matrixArray)
}
// Vector4Uniform represents one uniform parameter for a 4-dimensional vector.
type Vector4Uniform UniformLocation
// Set stores the provided 4-dimensional vector as the current uniform value.
func (location Vector4Uniform) Set(gl OpenGL, value *[4]float32) {
gl.Uniform4fv(int32(location), value)
}