mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Reduce objects
This commit is contained in:
@ -11,6 +11,7 @@ func SetTexture(t Texture) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println("Loaded texture:", t.Path)
|
||||||
Textures[t.TexID] = t
|
Textures[t.TexID] = t
|
||||||
TexturePaths[t.Path] = t.TexID
|
TexturePaths[t.Path] = t.TexID
|
||||||
}
|
}
|
||||||
|
|||||||
2
main.go
2
main.go
@ -356,7 +356,7 @@ func draw() {
|
|||||||
cubeMesh.Buf.Bind()
|
cubeMesh.Buf.Bind()
|
||||||
tempModelMat := modelMat.Clone()
|
tempModelMat := modelMat.Clone()
|
||||||
|
|
||||||
rowSize := 100
|
rowSize := 10
|
||||||
for y := 0; y < rowSize; y++ {
|
for y := 0; y < rowSize; y++ {
|
||||||
for x := 0; x < rowSize; x++ {
|
for x := 0; x < rowSize; x++ {
|
||||||
simpleMat.SetUnifMat4("modelMat", &tempModelMat.Translate(gglm.NewVec3(-1, 0, 0)).Mat4)
|
simpleMat.SetUnifMat4("modelMat", &tempModelMat.Translate(gglm.NewVec3(-1, 0, 0)).Mat4)
|
||||||
|
|||||||
Reference in New Issue
Block a user