private void renderQuad(int color) {
BufferBuilder wr = Tessellator.getInstance().getBuffer();
wr.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
RenderUtils.glColorHex(color);
wr.pos(-0.5, 0, 0).tex(0, 0).endVertex();
wr.pos(-0.5, 1, 0).tex(0, 1).endVertex();
wr.pos(0.5, 1, 0).tex(1, 1).endVertex();
wr.pos(0.5, 0, 0).tex(1, 0).endVertex();
Tessellator.getInstance().draw();
}
RenderLaser.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:pnc-repressurized
作者:
评论列表
文章目录