public void initialize (int size) {
vertices = new float[size * BillboardDecal.VERTEX_SIZE];
Mesh.VertexDataType vertexDataType = Mesh.VertexDataType.VertexArray;
if(Gdx.gl30 != null) {
vertexDataType = Mesh.VertexDataType.VertexBufferObjectWithVAO;
}
mesh = new Mesh(vertexDataType, false, size, 0, new VertexAttribute(
VertexAttributes.Usage.Position, 3, ShaderProgram.POSITION_ATTRIBUTE), new VertexAttribute(
VertexAttributes.Usage.ColorPacked, 4, ShaderProgram.COLOR_ATTRIBUTE), new VertexAttribute(
VertexAttributes.Usage.Generic, 1, SIZE_ATTRIBUTE), new VertexAttribute(
VertexAttributes.Usage.Generic, 1, ROTATION_ATTRIBUTE));
}
BillboardDecalBatch.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:DoubleHelix
作者:
评论列表
文章目录