Mesh attribute cleanup
This commit is contained in:
@@ -3,7 +3,6 @@ package mindustry.graphics;
|
||||
import arc.*;
|
||||
import arc.graphics.*;
|
||||
import arc.graphics.Texture.*;
|
||||
import arc.graphics.VertexAttributes.*;
|
||||
import arc.graphics.gl.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.util.*;
|
||||
@@ -60,9 +59,7 @@ public class CubemapMesh implements Disposable{
|
||||
public CubemapMesh(Cubemap map){
|
||||
this.map = map;
|
||||
this.map.setFilter(TextureFilter.linear);
|
||||
this.mesh = new Mesh(true, vertices.length, 0,
|
||||
new VertexAttribute(Usage.position, 3, "a_position")
|
||||
);
|
||||
this.mesh = new Mesh(true, vertices.length, 0, VertexAttribute.position3);
|
||||
mesh.getVerticesBuffer().limit(vertices.length);
|
||||
mesh.getVerticesBuffer().put(vertices, 0, vertices.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user