Reduce objects

This commit is contained in:
bloeys
2022-02-05 23:13:23 +04:00
parent 56e10049e9
commit 8e96cf7050
2 changed files with 2 additions and 1 deletions

View File

@ -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
} }

View File

@ -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)