Mesh attribute cleanup

This commit is contained in:
Anuken
2021-03-18 15:18:59 -04:00
parent 46cf48e012
commit a8c31d838f
4 changed files with 8 additions and 14 deletions

View File

@@ -1,8 +1,6 @@
package mindustry.graphics.g3d;
import arc.graphics.*;
import arc.graphics.VertexAttributes.*;
import arc.graphics.gl.*;
import arc.math.geom.*;
import mindustry.graphics.g3d.PlanetGrid.*;
@@ -92,9 +90,9 @@ public class MeshBuilder{
private static void begin(int count){
mesh = new Mesh(true, count, 0,
new VertexAttribute(Usage.position, 3, Shader.positionAttribute),
new VertexAttribute(Usage.normal, 3, Shader.normalAttribute),
new VertexAttribute(Usage.colorPacked, 4, Shader.colorAttribute)
VertexAttribute.position3,
VertexAttribute.normal,
VertexAttribute.color
);
mesh.getVerticesBuffer().limit(mesh.getMaxVertices());