more OpenGL constants
This commit is contained in:
parent
abc2f6ab50
commit
fe57a2909a
28 changed files with 96 additions and 88 deletions
|
@ -244,7 +244,7 @@ public abstract class Gui {
|
||||||
// GlState.disableTexture2D();
|
// GlState.disableTexture2D();
|
||||||
// GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
// GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
||||||
// GlState.color(f, f1, f2, f3);
|
// GlState.color(f, f1, f2, f3);
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION);
|
||||||
// worldrenderer.pos((double)left, (double)bottom, 0.0D).endVertex();
|
// worldrenderer.pos((double)left, (double)bottom, 0.0D).endVertex();
|
||||||
// worldrenderer.pos((double)right, (double)bottom, 0.0D).endVertex();
|
// worldrenderer.pos((double)right, (double)bottom, 0.0D).endVertex();
|
||||||
// worldrenderer.pos((double)right, (double)top, 0.0D).endVertex();
|
// worldrenderer.pos((double)right, (double)top, 0.0D).endVertex();
|
||||||
|
@ -259,7 +259,7 @@ public abstract class Gui {
|
||||||
// float f = 0.00390625F;
|
// float f = 0.00390625F;
|
||||||
// float f1 = 0.00390625F;
|
// float f1 = 0.00390625F;
|
||||||
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
// worldrenderer.pos((double)(x + 0), (double)(y + height), 0.0D).tex((double)((float)(textureX + 0) * f), (double)((float)(textureY + height) * f1)).endVertex();
|
// worldrenderer.pos((double)(x + 0), (double)(y + height), 0.0D).tex((double)((float)(textureX + 0) * f), (double)((float)(textureY + height) * f1)).endVertex();
|
||||||
// worldrenderer.pos((double)(x + width), (double)(y + height), 0.0D).tex((double)((float)(textureX + width) * f), (double)((float)(textureY + height) * f1)).endVertex();
|
// worldrenderer.pos((double)(x + width), (double)(y + height), 0.0D).tex((double)((float)(textureX + width) * f), (double)((float)(textureY + height) * f1)).endVertex();
|
||||||
// worldrenderer.pos((double)(x + width), (double)(y + 0), 0.0D).tex((double)((float)(textureX + width) * f), (double)((float)(textureY + 0) * f1)).endVertex();
|
// worldrenderer.pos((double)(x + width), (double)(y + 0), 0.0D).tex((double)((float)(textureX + width) * f), (double)((float)(textureY + 0) * f1)).endVertex();
|
||||||
|
@ -272,7 +272,7 @@ public abstract class Gui {
|
||||||
// float f = 1.0F / tileWidth;
|
// float f = 1.0F / tileWidth;
|
||||||
// float f1 = 1.0F / tileHeight;
|
// float f1 = 1.0F / tileHeight;
|
||||||
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
// worldrenderer.pos((double)x, (double)(y + height), 0.0D).tex((double)(u * f), (double)((v + (float)vHeight) * f1)).endVertex();
|
// worldrenderer.pos((double)x, (double)(y + height), 0.0D).tex((double)(u * f), (double)((v + (float)vHeight) * f1)).endVertex();
|
||||||
// worldrenderer.pos((double)(x + width), (double)(y + height), 0.0D).tex((double)((u + (float)uWidth) * f), (double)((v + (float)vHeight) * f1)).endVertex();
|
// worldrenderer.pos((double)(x + width), (double)(y + height), 0.0D).tex((double)((u + (float)uWidth) * f), (double)((v + (float)vHeight) * f1)).endVertex();
|
||||||
// worldrenderer.pos((double)(x + width), (double)y, 0.0D).tex((double)((u + (float)uWidth) * f), (double)(v * f1)).endVertex();
|
// worldrenderer.pos((double)(x + width), (double)y, 0.0D).tex((double)((u + (float)uWidth) * f), (double)(v * f1)).endVertex();
|
||||||
|
@ -296,7 +296,7 @@ public abstract class Gui {
|
||||||
// GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
// GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
||||||
// GlState.shadeModel(GL11.GL_SMOOTH);
|
// GlState.shadeModel(GL11.GL_SMOOTH);
|
||||||
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR);
|
||||||
// worldrenderer.pos((double)right, (double)top, 0.0).color(f1, f2, f3, f).endVertex();
|
// worldrenderer.pos((double)right, (double)top, 0.0).color(f1, f2, f3, f).endVertex();
|
||||||
// worldrenderer.pos((double)left, (double)top, 0.0).color(f1, f2, f3, f).endVertex();
|
// worldrenderer.pos((double)left, (double)top, 0.0).color(f1, f2, f3, f).endVertex();
|
||||||
// worldrenderer.pos((double)left, (double)bottom, 0.0).color(f5, f6, f7, f4).endVertex();
|
// worldrenderer.pos((double)left, (double)bottom, 0.0).color(f5, f6, f7, f4).endVertex();
|
||||||
|
|
|
@ -168,7 +168,7 @@ public abstract class GuiList<T extends ListEntry> extends Gui
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
|
|
||||||
float f = 32.0F;
|
float f = 32.0F;
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos((double)this.left, (double)this.bottom, 0.0D).tex((double)((float)this.left / f), (double)((float)(this.bottom + (int)this.amountScrolled) / f)).color(32, 32, 32, 255).endVertex();
|
worldrenderer.pos((double)this.left, (double)this.bottom, 0.0D).tex((double)((float)this.left / f), (double)((float)(this.bottom + (int)this.amountScrolled) / f)).color(32, 32, 32, 255).endVertex();
|
||||||
worldrenderer.pos((double)this.right, (double)this.bottom, 0.0D).tex((double)((float)this.right / f), (double)((float)(this.bottom + (int)this.amountScrolled) / f)).color(32, 32, 32, 255).endVertex();
|
worldrenderer.pos((double)this.right, (double)this.bottom, 0.0D).tex((double)((float)this.right / f), (double)((float)(this.bottom + (int)this.amountScrolled) / f)).color(32, 32, 32, 255).endVertex();
|
||||||
worldrenderer.pos((double)this.right, (double)this.top, 0.0D).tex((double)((float)this.right / f), (double)((float)(this.top + (int)this.amountScrolled) / f)).color(32, 32, 32, 255).endVertex();
|
worldrenderer.pos((double)this.right, (double)this.top, 0.0D).tex((double)((float)this.right / f), (double)((float)(this.top + (int)this.amountScrolled) / f)).color(32, 32, 32, 255).endVertex();
|
||||||
|
@ -191,13 +191,13 @@ public abstract class GuiList<T extends ListEntry> extends Gui
|
||||||
GlState.disableTexture2D();
|
GlState.disableTexture2D();
|
||||||
|
|
||||||
int i1 = 4;
|
int i1 = 4;
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos((double)this.left, (double)(this.top + i1), 0.0D).tex(0.0D, 1.0D).color(0, 0, 0, 0).endVertex();
|
worldrenderer.pos((double)this.left, (double)(this.top + i1), 0.0D).tex(0.0D, 1.0D).color(0, 0, 0, 0).endVertex();
|
||||||
worldrenderer.pos((double)this.right, (double)(this.top + i1), 0.0D).tex(1.0D, 1.0D).color(0, 0, 0, 0).endVertex();
|
worldrenderer.pos((double)this.right, (double)(this.top + i1), 0.0D).tex(1.0D, 1.0D).color(0, 0, 0, 0).endVertex();
|
||||||
worldrenderer.pos((double)this.right, (double)this.top, 0.0D).tex(1.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)this.right, (double)this.top, 0.0D).tex(1.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
||||||
worldrenderer.pos((double)this.left, (double)this.top, 0.0D).tex(0.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)this.left, (double)this.top, 0.0D).tex(0.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos((double)this.left, (double)this.bottom, 0.0D).tex(0.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)this.left, (double)this.bottom, 0.0D).tex(0.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
||||||
worldrenderer.pos((double)this.right, (double)this.bottom, 0.0D).tex(1.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)this.right, (double)this.bottom, 0.0D).tex(1.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
||||||
worldrenderer.pos((double)this.right, (double)(this.bottom - i1), 0.0D).tex(1.0D, 0.0D).color(0, 0, 0, 0).endVertex();
|
worldrenderer.pos((double)this.right, (double)(this.bottom - i1), 0.0D).tex(1.0D, 0.0D).color(0, 0, 0, 0).endVertex();
|
||||||
|
@ -217,19 +217,19 @@ public abstract class GuiList<T extends ListEntry> extends Gui
|
||||||
l1 = this.top;
|
l1 = this.top;
|
||||||
}
|
}
|
||||||
|
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos((double)i, (double)this.bottom, 0.0D).tex(0.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)i, (double)this.bottom, 0.0D).tex(0.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
||||||
worldrenderer.pos((double)j, (double)this.bottom, 0.0D).tex(1.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)j, (double)this.bottom, 0.0D).tex(1.0D, 1.0D).color(0, 0, 0, 255).endVertex();
|
||||||
worldrenderer.pos((double)j, (double)this.top, 0.0D).tex(1.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)j, (double)this.top, 0.0D).tex(1.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
||||||
worldrenderer.pos((double)i, (double)this.top, 0.0D).tex(0.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
worldrenderer.pos((double)i, (double)this.top, 0.0D).tex(0.0D, 0.0D).color(0, 0, 0, 255).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos((double)i, (double)(l1 + k1), 0.0D).tex(0.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
worldrenderer.pos((double)i, (double)(l1 + k1), 0.0D).tex(0.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
||||||
worldrenderer.pos((double)j, (double)(l1 + k1), 0.0D).tex(1.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
worldrenderer.pos((double)j, (double)(l1 + k1), 0.0D).tex(1.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
||||||
worldrenderer.pos((double)j, (double)l1, 0.0D).tex(1.0D, 0.0D).color(128, 128, 128, 255).endVertex();
|
worldrenderer.pos((double)j, (double)l1, 0.0D).tex(1.0D, 0.0D).color(128, 128, 128, 255).endVertex();
|
||||||
worldrenderer.pos((double)i, (double)l1, 0.0D).tex(0.0D, 0.0D).color(128, 128, 128, 255).endVertex();
|
worldrenderer.pos((double)i, (double)l1, 0.0D).tex(0.0D, 0.0D).color(128, 128, 128, 255).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos((double)i, (double)(l1 + k1 - 1), 0.0D).tex(0.0D, 1.0D).color(192, 192, 192, 255).endVertex();
|
worldrenderer.pos((double)i, (double)(l1 + k1 - 1), 0.0D).tex(0.0D, 1.0D).color(192, 192, 192, 255).endVertex();
|
||||||
worldrenderer.pos((double)(j - 1), (double)(l1 + k1 - 1), 0.0D).tex(1.0D, 1.0D).color(192, 192, 192, 255).endVertex();
|
worldrenderer.pos((double)(j - 1), (double)(l1 + k1 - 1), 0.0D).tex(1.0D, 1.0D).color(192, 192, 192, 255).endVertex();
|
||||||
worldrenderer.pos((double)(j - 1), (double)l1, 0.0D).tex(1.0D, 0.0D).color(192, 192, 192, 255).endVertex();
|
worldrenderer.pos((double)(j - 1), (double)l1, 0.0D).tex(1.0D, 0.0D).color(192, 192, 192, 255).endVertex();
|
||||||
|
@ -335,7 +335,7 @@ public abstract class GuiList<T extends ListEntry> extends Gui
|
||||||
int x2 = this.left + this.width / 2 + this.getListWidth() / 2;
|
int x2 = this.left + this.width / 2 + this.getListWidth() / 2;
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
GlState.disableTexture2D();
|
GlState.disableTexture2D();
|
||||||
rb.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
rb.pos((double)x1, (double)(y1 + h + 2), 0.0D).tex(0.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
rb.pos((double)x1, (double)(y1 + h + 2), 0.0D).tex(0.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
||||||
rb.pos((double)x2, (double)(y1 + h + 2), 0.0D).tex(1.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
rb.pos((double)x2, (double)(y1 + h + 2), 0.0D).tex(1.0D, 1.0D).color(128, 128, 128, 255).endVertex();
|
||||||
rb.pos((double)x2, (double)(y1 - 2), 0.0D).tex(1.0D, 0.0D).color(128, 128, 128, 255).endVertex();
|
rb.pos((double)x2, (double)(y1 - 2), 0.0D).tex(1.0D, 0.0D).color(128, 128, 128, 255).endVertex();
|
||||||
|
@ -361,7 +361,7 @@ public abstract class GuiList<T extends ListEntry> extends Gui
|
||||||
this.gm.getTextureManager().bindTexture(Gui.DIRT_BACKGROUND);
|
this.gm.getTextureManager().bindTexture(Gui.DIRT_BACKGROUND);
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
float f = 32.0F;
|
float f = 32.0F;
|
||||||
rb.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
rb.pos((double)this.left, (double)endY, 0.0D).tex(0.0D, (double)((float)endY / 32.0F)).color(64, 64, 64, endAlpha).endVertex();
|
rb.pos((double)this.left, (double)endY, 0.0D).tex(0.0D, (double)((float)endY / 32.0F)).color(64, 64, 64, endAlpha).endVertex();
|
||||||
rb.pos((double)(this.left + this.width), (double)endY, 0.0D).tex((double)((float)this.width / 32.0F), (double)((float)endY / 32.0F)).color(64, 64, 64, endAlpha).endVertex();
|
rb.pos((double)(this.left + this.width), (double)endY, 0.0D).tex((double)((float)this.width / 32.0F), (double)((float)endY / 32.0F)).color(64, 64, 64, endAlpha).endVertex();
|
||||||
rb.pos((double)(this.left + this.width), (double)startY, 0.0D).tex((double)((float)this.width / 32.0F), (double)((float)startY / 32.0F)).color(64, 64, 64, startAlpha).endVertex();
|
rb.pos((double)(this.left + this.width), (double)startY, 0.0D).tex((double)((float)this.width / 32.0F), (double)((float)startY / 32.0F)).color(64, 64, 64, startAlpha).endVertex();
|
||||||
|
|
|
@ -386,7 +386,7 @@ public class BlockRenderer
|
||||||
|
|
||||||
for (BakedQuad bakedquad : listQuads)
|
for (BakedQuad bakedquad : listQuads)
|
||||||
{
|
{
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.ITEM);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.ITEM);
|
||||||
worldrenderer.addVertexData(bakedquad.getVertexData());
|
worldrenderer.addVertexData(bakedquad.getVertexData());
|
||||||
|
|
||||||
if (bakedquad.hasTintIndex())
|
if (bakedquad.hasTintIndex())
|
||||||
|
|
|
@ -34,7 +34,7 @@ public abstract class Drawing {
|
||||||
// float xs = 1.0f / (float)tw; // 0.00390625F;
|
// float xs = 1.0f / (float)tw; // 0.00390625F;
|
||||||
// float ys = 1.0f / (float)th; // 0.00390625F;
|
// float ys = 1.0f / (float)th; // 0.00390625F;
|
||||||
// RenderBuffer rb = Tessellator.getBuffer();
|
// RenderBuffer rb = Tessellator.getBuffer();
|
||||||
// rb.begin(7, DefaultVertexFormats.POSITION_TEX);
|
// rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
// rb.pos((double)(x + 0), (double)(y + height), 0.0).tex((double)((float)(textureX + 0) * xs), (double)((float)(textureY + height) * ys)).endVertex();
|
// rb.pos((double)(x + 0), (double)(y + height), 0.0).tex((double)((float)(textureX + 0) * xs), (double)((float)(textureY + height) * ys)).endVertex();
|
||||||
// rb.pos((double)(x + width), (double)(y + height), 0.0).tex((double)((float)(textureX + width) * xs), (double)((float)(textureY + height) * ys)).endVertex();
|
// rb.pos((double)(x + width), (double)(y + height), 0.0).tex((double)((float)(textureX + width) * xs), (double)((float)(textureY + height) * ys)).endVertex();
|
||||||
// rb.pos((double)(x + width), (double)(y + 0), 0.0).tex((double)((float)(textureX + width) * xs), (double)((float)(textureY + 0) * ys)).endVertex();
|
// rb.pos((double)(x + width), (double)(y + 0), 0.0).tex((double)((float)(textureX + width) * xs), (double)((float)(textureY + 0) * ys)).endVertex();
|
||||||
|
@ -51,7 +51,7 @@ public abstract class Drawing {
|
||||||
GlState.color(1.0f, 1.0f, 1.0f, 1.0f);
|
GlState.color(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
Font.bindTexture();
|
Font.bindTexture();
|
||||||
RenderBuffer rb = Tessellator.getBuffer();
|
RenderBuffer rb = Tessellator.getBuffer();
|
||||||
rb.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
int h = Font.YGLYPH;
|
int h = Font.YGLYPH;
|
||||||
int tx, ty, u, v;
|
int tx, ty, u, v;
|
||||||
FontChar glyph;
|
FontChar glyph;
|
||||||
|
@ -310,7 +310,7 @@ public abstract class Drawing {
|
||||||
GlState.color(1.0f, 1.0f, 1.0f, 1.0f);
|
GlState.color(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
Font.bindTexture();
|
Font.bindTexture();
|
||||||
RenderBuffer rb = Tessellator.getBuffer();
|
RenderBuffer rb = Tessellator.getBuffer();
|
||||||
rb.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
int ox = x;
|
int ox = x;
|
||||||
int ncolor = color;
|
int ncolor = color;
|
||||||
FontChar glyph;
|
FontChar glyph;
|
||||||
|
@ -419,7 +419,7 @@ public abstract class Drawing {
|
||||||
GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
||||||
GlState.shadeModel(GL11.GL_SMOOTH);
|
GlState.shadeModel(GL11.GL_SMOOTH);
|
||||||
RenderBuffer buf = Tessellator.getBuffer();
|
RenderBuffer buf = Tessellator.getBuffer();
|
||||||
buf.begin(7, DefaultVertexFormats.POSITION_COLOR);
|
buf.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR);
|
||||||
buf.pos((double)(x + w), (double)y, 0.0).color(ctop).endVertex();
|
buf.pos((double)(x + w), (double)y, 0.0).color(ctop).endVertex();
|
||||||
buf.pos((double)x, (double)y, 0.0).color(ctop).endVertex();
|
buf.pos((double)x, (double)y, 0.0).color(ctop).endVertex();
|
||||||
buf.pos((double)x, (double)(y + h), 0.0).color(cbottom).endVertex();
|
buf.pos((double)x, (double)(y + h), 0.0).color(cbottom).endVertex();
|
||||||
|
@ -439,7 +439,7 @@ public abstract class Drawing {
|
||||||
GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
||||||
GlState.shadeModel(GL11.GL_SMOOTH);
|
GlState.shadeModel(GL11.GL_SMOOTH);
|
||||||
RenderBuffer buf = Tessellator.getBuffer();
|
RenderBuffer buf = Tessellator.getBuffer();
|
||||||
buf.begin(7, DefaultVertexFormats.POSITION_COLOR);
|
buf.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR);
|
||||||
buf.pos((double)(x + w), (double)y, 0.0).color(topright).endVertex();
|
buf.pos((double)(x + w), (double)y, 0.0).color(topright).endVertex();
|
||||||
buf.pos((double)x, (double)y, 0.0).color(lopleft).endVertex();
|
buf.pos((double)x, (double)y, 0.0).color(lopleft).endVertex();
|
||||||
buf.pos((double)x, (double)(y + h), 0.0).color(btmleft).endVertex();
|
buf.pos((double)x, (double)(y + h), 0.0).color(btmleft).endVertex();
|
||||||
|
@ -460,7 +460,7 @@ public abstract class Drawing {
|
||||||
GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
GlState.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
|
||||||
GlState.shadeModel(GL11.GL_SMOOTH);
|
GlState.shadeModel(GL11.GL_SMOOTH);
|
||||||
GlState.color(color);
|
GlState.color(color);
|
||||||
rb.begin(7, DefaultVertexFormats.POSITION);
|
rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION);
|
||||||
rb.pos((double)x, (double)(y + h), 0.0D).endVertex();
|
rb.pos((double)x, (double)(y + h), 0.0D).endVertex();
|
||||||
rb.pos((double)(x + w), (double)(y + h), 0.0D).endVertex();
|
rb.pos((double)(x + w), (double)(y + h), 0.0D).endVertex();
|
||||||
rb.pos((double)(x + w), (double)y, 0.0D).endVertex();
|
rb.pos((double)(x + w), (double)y, 0.0D).endVertex();
|
||||||
|
@ -554,7 +554,7 @@ public abstract class Drawing {
|
||||||
gm.getTextureManager().bindTexture(texture);
|
gm.getTextureManager().bindTexture(texture);
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
double scale = 32.0;
|
double scale = 32.0;
|
||||||
buf.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
buf.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
buf.pos(x, y + height, 0.0D).tex(0.0D, height / scale)
|
buf.pos(x, y + height, 0.0D).tex(0.0D, height / scale)
|
||||||
.color(64, 64, 64, 255).endVertex();
|
.color(64, 64, 64, 255).endVertex();
|
||||||
buf.pos(x + width, y + height, 0.0D)
|
buf.pos(x + width, y + height, 0.0D)
|
||||||
|
|
|
@ -1295,7 +1295,7 @@ public class EntityRenderer {
|
||||||
|
|
||||||
mode = 2;
|
mode = 2;
|
||||||
this.gm.getTextureManager().bindTexture(locationMoltenPng);
|
this.gm.getTextureManager().bindTexture(locationMoltenPng);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
}
|
}
|
||||||
|
|
||||||
double d5 = ((double)(this.rendererUpdateCount + l1 * l1 * 3121 + l1 * 45238971 + k1 * k1 * 418711 + k1 * 13761 & 63) + (double)partialTicks) / 64.0D * (3.0D + this.random.doublev());
|
double d5 = ((double)(this.rendererUpdateCount + l1 * l1 * 3121 + l1 * 45238971 + k1 * k1 * 418711 + k1 * 13761 & 63) + (double)partialTicks) / 64.0D * (3.0D + this.random.doublev());
|
||||||
|
@ -1323,7 +1323,7 @@ public class EntityRenderer {
|
||||||
|
|
||||||
mode = 0;
|
mode = 0;
|
||||||
this.gm.getTextureManager().bindTexture(f2 <= 5.0f ? locationHailPng : locationRainPng);
|
this.gm.getTextureManager().bindTexture(f2 <= 5.0f ? locationHailPng : locationRainPng);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
}
|
}
|
||||||
|
|
||||||
double d5 = ((double)(this.rendererUpdateCount + l1 * l1 * 3121 + l1 * 45238971 + k1 * k1 * 418711 + k1 * 13761 & 31) + (double)partialTicks) / 32.0D * (3.0D + this.random.doublev());
|
double d5 = ((double)(this.rendererUpdateCount + l1 * l1 * 3121 + l1 * 45238971 + k1 * k1 * 418711 + k1 * 13761 & 31) + (double)partialTicks) / 32.0D * (3.0D + this.random.doublev());
|
||||||
|
@ -1351,7 +1351,7 @@ public class EntityRenderer {
|
||||||
|
|
||||||
mode = 1;
|
mode = 1;
|
||||||
this.gm.getTextureManager().bindTexture(locationSnowPng);
|
this.gm.getTextureManager().bindTexture(locationSnowPng);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
}
|
}
|
||||||
|
|
||||||
double d8 = (double)(((float)(this.rendererUpdateCount & 511) + partialTicks) / 512.0F);
|
double d8 = (double)(((float)(this.rendererUpdateCount & 511) + partialTicks) / 512.0F);
|
||||||
|
|
|
@ -257,7 +257,7 @@ public class ItemRenderer
|
||||||
//// Tessellator tessellator = Tessellator.getInstance();
|
//// Tessellator tessellator = Tessellator.getInstance();
|
||||||
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
// SKC.glNormal3f(0.0F, 0.0F, -1.0F);
|
// SKC.glNormal3f(0.0F, 0.0F, -1.0F);
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
// worldrenderer.pos(-7.0D, 135.0D, 0.0D).tex(0.0D, 1.0D).endVertex();
|
// worldrenderer.pos(-7.0D, 135.0D, 0.0D).tex(0.0D, 1.0D).endVertex();
|
||||||
// worldrenderer.pos(135.0D, 135.0D, 0.0D).tex(1.0D, 1.0D).endVertex();
|
// worldrenderer.pos(135.0D, 135.0D, 0.0D).tex(1.0D, 1.0D).endVertex();
|
||||||
// worldrenderer.pos(135.0D, -7.0D, 0.0D).tex(1.0D, 0.0D).endVertex();
|
// worldrenderer.pos(135.0D, -7.0D, 0.0D).tex(1.0D, 0.0D).endVertex();
|
||||||
|
@ -528,7 +528,7 @@ public class ItemRenderer
|
||||||
float f7 = atlas.getMaxU();
|
float f7 = atlas.getMaxU();
|
||||||
float f8 = atlas.getMinV();
|
float f8 = atlas.getMinV();
|
||||||
float f9 = atlas.getMaxV();
|
float f9 = atlas.getMaxV();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-1.0D, -1.0D, -0.5D).tex((double)f7, (double)f9).endVertex();
|
worldrenderer.pos(-1.0D, -1.0D, -0.5D).tex((double)f7, (double)f9).endVertex();
|
||||||
worldrenderer.pos(1.0D, -1.0D, -0.5D).tex((double)f6, (double)f9).endVertex();
|
worldrenderer.pos(1.0D, -1.0D, -0.5D).tex((double)f6, (double)f9).endVertex();
|
||||||
worldrenderer.pos(1.0D, 1.0D, -0.5D).tex((double)f6, (double)f8).endVertex();
|
worldrenderer.pos(1.0D, 1.0D, -0.5D).tex((double)f6, (double)f8).endVertex();
|
||||||
|
@ -570,7 +570,7 @@ public class ItemRenderer
|
||||||
float f9 = -0.5F;
|
float f9 = -0.5F;
|
||||||
GL11.glTranslatef((float)(-(i * 2 - 1)) * 0.24F, -0.3F, 0.0F);
|
GL11.glTranslatef((float)(-(i * 2 - 1)) * 0.24F, -0.3F, 0.0F);
|
||||||
GL11.glRotatef((float)(i * 2 - 1) * 10.0F, 0.0F, 1.0F, 0.0F);
|
GL11.glRotatef((float)(i * 2 - 1) * 10.0F, 0.0F, 1.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos((double)f5, (double)f7, (double)f9).tex((double)f2, (double)f4).endVertex();
|
worldrenderer.pos((double)f5, (double)f7, (double)f9).tex((double)f2, (double)f4).endVertex();
|
||||||
worldrenderer.pos((double)f6, (double)f7, (double)f9).tex((double)f1, (double)f4).endVertex();
|
worldrenderer.pos((double)f6, (double)f7, (double)f9).tex((double)f1, (double)f4).endVertex();
|
||||||
worldrenderer.pos((double)f6, (double)f8, (double)f9).tex((double)f1, (double)f3).endVertex();
|
worldrenderer.pos((double)f6, (double)f8, (double)f9).tex((double)f1, (double)f3).endVertex();
|
||||||
|
|
|
@ -259,7 +259,7 @@ public class RenderGlobal
|
||||||
{
|
{
|
||||||
int i = 64;
|
int i = 64;
|
||||||
int j = 6;
|
int j = 6;
|
||||||
worldRendererIn.begin(7, DefaultVertexFormats.POSITION);
|
worldRendererIn.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION);
|
||||||
|
|
||||||
for (int k = -384; k <= 384; k += 64)
|
for (int k = -384; k <= 384; k += 64)
|
||||||
{
|
{
|
||||||
|
@ -358,7 +358,7 @@ public class RenderGlobal
|
||||||
{
|
{
|
||||||
max -= min;
|
max -= min;
|
||||||
Random rand = new Random(seed);
|
Random rand = new Random(seed);
|
||||||
rend.begin(7, DefaultVertexFormats.POSITION);
|
rend.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION);
|
||||||
|
|
||||||
for (int n = 0; n < nstars; ++n)
|
for (int n = 0; n < nstars; ++n)
|
||||||
{
|
{
|
||||||
|
@ -1108,7 +1108,7 @@ public class RenderGlobal
|
||||||
GL11.glRotatef(-90.0F, 0.0F, 0.0F, 1.0F);
|
GL11.glRotatef(-90.0F, 0.0F, 0.0F, 1.0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldrenderer.pos(-100.0D, -100.0D, -100.0D).tex(0.0D, 0.0D).color(40, 40, 40, 255).endVertex();
|
worldrenderer.pos(-100.0D, -100.0D, -100.0D).tex(0.0D, 0.0D).color(40, 40, 40, 255).endVertex();
|
||||||
worldrenderer.pos(-100.0D, -100.0D, 100.0D).tex(0.0D, 16.0D).color(40, 40, 40, 255).endVertex();
|
worldrenderer.pos(-100.0D, -100.0D, 100.0D).tex(0.0D, 16.0D).color(40, 40, 40, 255).endVertex();
|
||||||
worldrenderer.pos(100.0D, -100.0D, 100.0D).tex(16.0D, 16.0D).color(40, 40, 40, 255).endVertex();
|
worldrenderer.pos(100.0D, -100.0D, 100.0D).tex(16.0D, 16.0D).color(40, 40, 40, 255).endVertex();
|
||||||
|
@ -1159,7 +1159,7 @@ public class RenderGlobal
|
||||||
this.skyVBO.bindBuffer();
|
this.skyVBO.bindBuffer();
|
||||||
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
||||||
this.skyVBO.drawArrays(7);
|
this.skyVBO.drawArrays(GL11.GL_QUADS);
|
||||||
this.skyVBO.unbindBuffer();
|
this.skyVBO.unbindBuffer();
|
||||||
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
// }
|
// }
|
||||||
|
@ -1198,7 +1198,7 @@ public class RenderGlobal
|
||||||
// f8 = f11;
|
// f8 = f11;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
worldrenderer.begin(6, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_TRIANGLE_FAN, DefaultVertexFormats.POSITION_COLOR);
|
||||||
worldrenderer.pos(0.0D, 100.0D, 0.0D).color(f6, f7, f8, afloat[3]).endVertex();
|
worldrenderer.pos(0.0D, 100.0D, 0.0D).color(f6, f7, f8, afloat[3]).endVertex();
|
||||||
int j = 16;
|
int j = 16;
|
||||||
|
|
||||||
|
@ -1225,7 +1225,7 @@ public class RenderGlobal
|
||||||
if(this.gm.theWorld.dimension.getType().sun) {
|
if(this.gm.theWorld.dimension.getType().sun) {
|
||||||
float size = 30.0F;
|
float size = 30.0F;
|
||||||
this.renderEngine.bindTexture(SUN_TEX);
|
this.renderEngine.bindTexture(SUN_TEX);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos((double)(-size), 100.0D, (double)(-size)).tex(0.0D, 0.0D).endVertex();
|
worldrenderer.pos((double)(-size), 100.0D, (double)(-size)).tex(0.0D, 0.0D).endVertex();
|
||||||
worldrenderer.pos((double)size, 100.0D, (double)(-size)).tex(1.0D, 0.0D).endVertex();
|
worldrenderer.pos((double)size, 100.0D, (double)(-size)).tex(1.0D, 0.0D).endVertex();
|
||||||
worldrenderer.pos((double)size, 100.0D, (double)size).tex(1.0D, 1.0D).endVertex();
|
worldrenderer.pos((double)size, 100.0D, (double)size).tex(1.0D, 1.0D).endVertex();
|
||||||
|
@ -1242,7 +1242,7 @@ public class RenderGlobal
|
||||||
float f23 = (float)(i1 + 0) / 2.0F;
|
float f23 = (float)(i1 + 0) / 2.0F;
|
||||||
float f24 = (float)(k + 1) / 4.0F;
|
float f24 = (float)(k + 1) / 4.0F;
|
||||||
float f14 = (float)(i1 + 1) / 2.0F;
|
float f14 = (float)(i1 + 1) / 2.0F;
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos((double)(-size), -100.0D, (double)size).tex((double)f24, (double)f14).endVertex();
|
worldrenderer.pos((double)(-size), -100.0D, (double)size).tex((double)f24, (double)f14).endVertex();
|
||||||
worldrenderer.pos((double)size, -100.0D, (double)size).tex((double)f22, (double)f14).endVertex();
|
worldrenderer.pos((double)size, -100.0D, (double)size).tex((double)f22, (double)f14).endVertex();
|
||||||
worldrenderer.pos((double)size, -100.0D, (double)(-size)).tex((double)f22, (double)f23).endVertex();
|
worldrenderer.pos((double)size, -100.0D, (double)(-size)).tex((double)f22, (double)f23).endVertex();
|
||||||
|
@ -1268,7 +1268,7 @@ public class RenderGlobal
|
||||||
this.starVBO.bindBuffer();
|
this.starVBO.bindBuffer();
|
||||||
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
||||||
this.starVBO.drawArrays(7);
|
this.starVBO.drawArrays(GL11.GL_QUADS);
|
||||||
this.starVBO.unbindBuffer();
|
this.starVBO.unbindBuffer();
|
||||||
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
// }
|
// }
|
||||||
|
@ -1295,7 +1295,7 @@ public class RenderGlobal
|
||||||
this.dstarVBO.bindBuffer();
|
this.dstarVBO.bindBuffer();
|
||||||
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
||||||
this.dstarVBO.drawArrays(7);
|
this.dstarVBO.drawArrays(GL11.GL_QUADS);
|
||||||
this.dstarVBO.unbindBuffer();
|
this.dstarVBO.unbindBuffer();
|
||||||
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
// }
|
// }
|
||||||
|
@ -1395,7 +1395,7 @@ public class RenderGlobal
|
||||||
{
|
{
|
||||||
for (int k1 = -3; k1 <= 4; ++k1)
|
for (int k1 = -3; k1 <= 4; ++k1)
|
||||||
{
|
{
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR_NORMAL);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR_NORMAL);
|
||||||
float f22 = (float)(j1 * 8);
|
float f22 = (float)(j1 * 8);
|
||||||
float f23 = (float)(k1 * 8);
|
float f23 = (float)(k1 * 8);
|
||||||
float f24 = f22 - f19;
|
float f24 = f22 - f19;
|
||||||
|
@ -1532,7 +1532,7 @@ public class RenderGlobal
|
||||||
{
|
{
|
||||||
this.renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
this.renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||||
this.preRenderDamagedBlocks();
|
this.preRenderDamagedBlocks();
|
||||||
worldRendererIn.begin(7, DefaultVertexFormats.BLOCK);
|
worldRendererIn.begin(GL11.GL_QUADS, DefaultVertexFormats.BLOCK);
|
||||||
worldRendererIn.setTranslation(-d0, -d1, -d2);
|
worldRendererIn.setTranslation(-d0, -d1, -d2);
|
||||||
worldRendererIn.noColor();
|
worldRendererIn.noColor();
|
||||||
Iterator<DestroyBlockProgress> iterator = this.damagedBlocks.values().iterator();
|
Iterator<DestroyBlockProgress> iterator = this.damagedBlocks.values().iterator();
|
||||||
|
@ -1611,21 +1611,21 @@ public class RenderGlobal
|
||||||
{
|
{
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
worldrenderer.begin(3, DefaultVertexFormats.POSITION);
|
worldrenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.maxZ).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.maxZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.maxZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.maxZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(3, DefaultVertexFormats.POSITION);
|
worldrenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.maxZ).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.maxZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.maxZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.maxZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(1, DefaultVertexFormats.POSITION);
|
worldrenderer.begin(GL11.GL_LINES, DefaultVertexFormats.POSITION);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).endVertex();
|
||||||
|
@ -1641,21 +1641,21 @@ public class RenderGlobal
|
||||||
{
|
{
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
worldrenderer.begin(3, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(3, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.maxZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
worldrenderer.begin(1, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_LINES, DefaultVertexFormats.POSITION_COLOR);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).color(red, green, blue, alpha).endVertex();
|
||||||
|
@ -1742,7 +1742,7 @@ public class RenderGlobal
|
||||||
renderchunk.multModelviewMatrix();
|
renderchunk.multModelviewMatrix();
|
||||||
vertexbuffer.bindBuffer();
|
vertexbuffer.bindBuffer();
|
||||||
this.setupArrayPointers();
|
this.setupArrayPointers();
|
||||||
vertexbuffer.drawArrays(7);
|
vertexbuffer.drawArrays(GL11.GL_QUADS);
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1792,7 +1792,7 @@ public class RenderGlobal
|
||||||
// this.skyVBO.bindBuffer();
|
// this.skyVBO.bindBuffer();
|
||||||
// WCF.glEnableClientState(WCF.GL_VERTEX_ARRAY);
|
// WCF.glEnableClientState(WCF.GL_VERTEX_ARRAY);
|
||||||
// WCF.glVertexPointer(3, WCF.GL_FLOAT, 12, 0L);
|
// WCF.glVertexPointer(3, WCF.GL_FLOAT, 12, 0L);
|
||||||
// this.skyVBO.drawArrays(7);
|
// this.skyVBO.drawArrays(GL11.GL_QUADS);
|
||||||
// this.skyVBO.unbindBuffer();
|
// this.skyVBO.unbindBuffer();
|
||||||
// WCF.glDisableClientState(WCF.GL_VERTEX_ARRAY);
|
// WCF.glDisableClientState(WCF.GL_VERTEX_ARRAY);
|
||||||
GlState.disableAlpha();
|
GlState.disableAlpha();
|
||||||
|
@ -1803,13 +1803,13 @@ public class RenderGlobal
|
||||||
this.starVBO.bindBuffer();
|
this.starVBO.bindBuffer();
|
||||||
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
||||||
this.starVBO.drawArrays(7);
|
this.starVBO.drawArrays(GL11.GL_QUADS);
|
||||||
this.starVBO.unbindBuffer();
|
this.starVBO.unbindBuffer();
|
||||||
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
this.dstarVBO.bindBuffer();
|
this.dstarVBO.bindBuffer();
|
||||||
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
GL11.nglVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
|
||||||
this.dstarVBO.drawArrays(7);
|
this.dstarVBO.drawArrays(GL11.GL_QUADS);
|
||||||
this.dstarVBO.unbindBuffer();
|
this.dstarVBO.unbindBuffer();
|
||||||
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
|
||||||
GlState.enableTexture2D();
|
GlState.enableTexture2D();
|
||||||
|
|
|
@ -22,12 +22,12 @@ public class VertexBuffer
|
||||||
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, this.glBufferId);
|
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, this.glBufferId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void bufferData(ByteBuffer p_181722_1_)
|
public void bufferData(ByteBuffer buffer)
|
||||||
{
|
{
|
||||||
this.bindBuffer();
|
this.bindBuffer();
|
||||||
GL15.glBufferData(GL15.GL_ARRAY_BUFFER, p_181722_1_, GL15.GL_STATIC_DRAW);
|
GL15.glBufferData(GL15.GL_ARRAY_BUFFER, buffer, GL15.GL_STATIC_DRAW);
|
||||||
this.unbindBuffer();
|
this.unbindBuffer();
|
||||||
this.count = p_181722_1_.limit() / this.vertexFormat.getNextOffset();
|
this.count = buffer.limit() / this.vertexFormat.getNextOffset();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void drawArrays(int mode)
|
public void drawArrays(int mode)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package game.renderer;
|
package game.renderer;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import game.log.Log;
|
import game.log.Log;
|
||||||
|
|
||||||
public class VertexFormatElement
|
public class VertexFormatElement
|
||||||
|
@ -94,13 +96,13 @@ public class VertexFormatElement
|
||||||
|
|
||||||
public static enum EnumType
|
public static enum EnumType
|
||||||
{
|
{
|
||||||
FLOAT(4, "Float", 5126),
|
FLOAT(4, "Float", GL11.GL_FLOAT),
|
||||||
UBYTE(1, "Unsigned Byte", 5121),
|
UBYTE(1, "Unsigned Byte", GL11.GL_UNSIGNED_BYTE),
|
||||||
BYTE(1, "Byte", 5120),
|
BYTE(1, "Byte", GL11.GL_BYTE),
|
||||||
USHORT(2, "Unsigned Short", 5123),
|
USHORT(2, "Unsigned Short", GL11.GL_UNSIGNED_SHORT),
|
||||||
SHORT(2, "Short", 5122),
|
SHORT(2, "Short", GL11.GL_SHORT),
|
||||||
UINT(4, "Unsigned Int", 5125),
|
UINT(4, "Unsigned Int", GL11.GL_UNSIGNED_INT),
|
||||||
INT(4, "Int", 5124);
|
INT(4, "Int", GL11.GL_INT);
|
||||||
|
|
||||||
private final int size;
|
private final int size;
|
||||||
private final String displayName;
|
private final String displayName;
|
||||||
|
@ -135,8 +137,8 @@ public class VertexFormatElement
|
||||||
NORMAL("Normal"),
|
NORMAL("Normal"),
|
||||||
COLOR("Vertex Color"),
|
COLOR("Vertex Color"),
|
||||||
UV("UV"),
|
UV("UV"),
|
||||||
MATRIX("Bone Matrix"),
|
// MATRIX("Bone Matrix"),
|
||||||
BLEND_WEIGHT("Blend Weight"),
|
// BLEND_WEIGHT("Blend Weight"),
|
||||||
PADDING("Padding");
|
PADDING("Padding");
|
||||||
|
|
||||||
private final String displayName;
|
private final String displayName;
|
||||||
|
|
|
@ -295,7 +295,7 @@ public class RenderChunk
|
||||||
|
|
||||||
private void preRenderBlocks(RenderBuffer worldRendererIn, BlockPos pos)
|
private void preRenderBlocks(RenderBuffer worldRendererIn, BlockPos pos)
|
||||||
{
|
{
|
||||||
worldRendererIn.begin(7, DefaultVertexFormats.BLOCK);
|
worldRendererIn.begin(GL11.GL_QUADS, DefaultVertexFormats.BLOCK);
|
||||||
worldRendererIn.setTranslation((double)(-pos.getX()), (double)(-pos.getY()), (double)(-pos.getZ()));
|
worldRendererIn.setTranslation((double)(-pos.getX()), (double)(-pos.getY()), (double)(-pos.getZ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ public abstract class Render<T extends Entity>
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
float f5 = 0.0F;
|
float f5 = 0.0F;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
|
|
||||||
while (f3 > 0.0F)
|
while (f3 > 0.0F)
|
||||||
{
|
{
|
||||||
|
@ -188,7 +188,7 @@ public abstract class Render<T extends Entity>
|
||||||
// double d4 = z - d1;
|
// double d4 = z - d1;
|
||||||
//// Tessellator tessellator = Tessellator.getInstance();
|
//// Tessellator tessellator = Tessellator.getInstance();
|
||||||
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
// RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
//
|
//
|
||||||
// for (BlockPos blockpos : BlockPos.getAllInBoxMutable(new BlockPos(i, k, i1), new BlockPos(j, l, j1)))
|
// for (BlockPos blockpos : BlockPos.getAllInBoxMutable(new BlockPos(i, k, i1), new BlockPos(j, l, j1)))
|
||||||
// {
|
// {
|
||||||
|
@ -256,7 +256,7 @@ public abstract class Render<T extends Entity>
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
worldrenderer.setTranslation(x, y, z);
|
worldrenderer.setTranslation(x, y, z);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_NORMAL);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_NORMAL);
|
||||||
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).normal(0.0F, 0.0F, -1.0F).endVertex();
|
worldrenderer.pos(boundingBox.minX, boundingBox.maxY, boundingBox.minZ).normal(0.0F, 0.0F, -1.0F).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.minZ).normal(0.0F, 0.0F, -1.0F).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.maxY, boundingBox.minZ).normal(0.0F, 0.0F, -1.0F).endVertex();
|
||||||
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).normal(0.0F, 0.0F, -1.0F).endVertex();
|
worldrenderer.pos(boundingBox.maxX, boundingBox.minY, boundingBox.minZ).normal(0.0F, 0.0F, -1.0F).endVertex();
|
||||||
|
@ -349,7 +349,7 @@ public abstract class Render<T extends Entity>
|
||||||
// Vec2i size = Drawing.txt_size(0, 0, 0, 0, 65536, 65536, str);
|
// Vec2i size = Drawing.txt_size(0, 0, 0, 0, 65536, 65536, str);
|
||||||
// int j = size.xpos / 2;
|
// int j = size.xpos / 2;
|
||||||
// GlState.disableTexture2D();
|
// GlState.disableTexture2D();
|
||||||
// worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR);
|
// worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR);
|
||||||
// worldrenderer.pos((double)(-j - 1), (double)(-1 + i), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
// worldrenderer.pos((double)(-j - 1), (double)(-1 + i), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
// worldrenderer.pos((double)(-j - 1), (double)(8 + i), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
// worldrenderer.pos((double)(-j - 1), (double)(8 + i), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
// worldrenderer.pos((double)(j + 1), (double)(8 + i), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
// worldrenderer.pos((double)(j + 1), (double)(8 + i), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
|
|
|
@ -55,14 +55,14 @@ public class RenderArrow extends Render<EntityArrow>
|
||||||
GL11.glScalef(f8, f8, f8);
|
GL11.glScalef(f8, f8, f8);
|
||||||
GL11.glTranslatef(-4.0F, 0.0F, 0.0F);
|
GL11.glTranslatef(-4.0F, 0.0F, 0.0F);
|
||||||
GL11.glNormal3f(f8, 0.0F, 0.0F);
|
GL11.glNormal3f(f8, 0.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
||||||
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f7).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f7).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
GL11.glNormal3f(-f8, 0.0F, 0.0F);
|
GL11.glNormal3f(-f8, 0.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
||||||
|
@ -73,7 +73,7 @@ public class RenderArrow extends Render<EntityArrow>
|
||||||
{
|
{
|
||||||
GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
|
GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
|
||||||
GL11.glNormal3f(0.0F, 0.0F, f8);
|
GL11.glNormal3f(0.0F, 0.0F, f8);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-8.0D, -2.0D, 0.0D).tex((double)f, (double)f2).endVertex();
|
worldrenderer.pos(-8.0D, -2.0D, 0.0D).tex((double)f, (double)f2).endVertex();
|
||||||
worldrenderer.pos(8.0D, -2.0D, 0.0D).tex((double)f1, (double)f2).endVertex();
|
worldrenderer.pos(8.0D, -2.0D, 0.0D).tex((double)f1, (double)f2).endVertex();
|
||||||
worldrenderer.pos(8.0D, 2.0D, 0.0D).tex((double)f1, (double)f3).endVertex();
|
worldrenderer.pos(8.0D, 2.0D, 0.0D).tex((double)f1, (double)f3).endVertex();
|
||||||
|
|
|
@ -42,14 +42,14 @@ public class RenderBullet extends Render<EntityBullet>
|
||||||
GL11.glScalef(f8, f8, f8);
|
GL11.glScalef(f8, f8, f8);
|
||||||
GL11.glTranslatef(-4.0F, 0.0F, 0.0F);
|
GL11.glTranslatef(-4.0F, 0.0F, 0.0F);
|
||||||
GL11.glNormal3f(f8, 0.0F, 0.0F);
|
GL11.glNormal3f(f8, 0.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
||||||
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f7).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f7).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
GL11.glNormal3f(-f8, 0.0F, 0.0F);
|
GL11.glNormal3f(-f8, 0.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f6).endVertex();
|
||||||
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f7).endVertex();
|
||||||
|
@ -60,7 +60,7 @@ public class RenderBullet extends Render<EntityBullet>
|
||||||
{
|
{
|
||||||
GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
|
GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
|
||||||
GL11.glNormal3f(0.0F, 0.0F, f8);
|
GL11.glNormal3f(0.0F, 0.0F, f8);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||||
worldrenderer.pos(-8.0D, -2.0D, 0.0D).tex((double)f, (double)f2).endVertex();
|
worldrenderer.pos(-8.0D, -2.0D, 0.0D).tex((double)f, (double)f2).endVertex();
|
||||||
worldrenderer.pos(8.0D, -2.0D, 0.0D).tex((double)f1, (double)f2).endVertex();
|
worldrenderer.pos(8.0D, -2.0D, 0.0D).tex((double)f1, (double)f2).endVertex();
|
||||||
worldrenderer.pos(8.0D, 2.0D, 0.0D).tex((double)f1, (double)f3).endVertex();
|
worldrenderer.pos(8.0D, 2.0D, 0.0D).tex((double)f1, (double)f3).endVertex();
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class RenderFallingBlock extends Render<EntityFalling>
|
||||||
GlState.disableLighting();
|
GlState.disableLighting();
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.BLOCK);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.BLOCK);
|
||||||
int i = blockpos.getX();
|
int i = blockpos.getX();
|
||||||
int j = blockpos.getY();
|
int j = blockpos.getY();
|
||||||
int k = blockpos.getZ();
|
int k = blockpos.getZ();
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class RenderFireball extends Render<EntityProjectile>
|
||||||
float f6 = 0.25F;
|
float f6 = 0.25F;
|
||||||
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
|
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
|
||||||
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
|
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_NORMAL);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_NORMAL);
|
||||||
worldrenderer.pos(-0.5D, -0.25D, 0.0D).tex((double)f, (double)f3).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos(-0.5D, -0.25D, 0.0D).tex((double)f, (double)f3).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldrenderer.pos(0.5D, -0.25D, 0.0D).tex((double)f1, (double)f3).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos(0.5D, -0.25D, 0.0D).tex((double)f1, (double)f3).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldrenderer.pos(0.5D, 0.75D, 0.0D).tex((double)f1, (double)f2).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos(0.5D, 0.75D, 0.0D).tex((double)f1, (double)f2).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class RenderFish extends Render<EntityHook>
|
||||||
float f6 = 0.5F;
|
float f6 = 0.5F;
|
||||||
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
|
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
|
||||||
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
|
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_NORMAL);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_NORMAL);
|
||||||
worldrenderer.pos(-0.5D, -0.5D, 0.0D).tex(0.0625D, 0.1875D).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos(-0.5D, -0.5D, 0.0D).tex(0.0625D, 0.1875D).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldrenderer.pos(0.5D, -0.5D, 0.0D).tex(0.125D, 0.1875D).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos(0.5D, -0.5D, 0.0D).tex(0.125D, 0.1875D).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldrenderer.pos(0.5D, 0.5D, 0.0D).tex(0.125D, 0.125D).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos(0.5D, 0.5D, 0.0D).tex(0.125D, 0.125D).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
|
@ -86,7 +86,7 @@ public class RenderFish extends Render<EntityHook>
|
||||||
double d12 = (double)((float)(d2 - d7));
|
double d12 = (double)((float)(d2 - d7));
|
||||||
GlState.disableTexture2D();
|
GlState.disableTexture2D();
|
||||||
GlState.disableLighting();
|
GlState.disableLighting();
|
||||||
worldrenderer.begin(3, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
int k = 16;
|
int k = 16;
|
||||||
|
|
||||||
for (int l = 0; l <= 16; ++l)
|
for (int l = 0; l <= 16; ++l)
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class RenderItem
|
||||||
{
|
{
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.ITEM);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.ITEM);
|
||||||
|
|
||||||
for (Facing enumfacing : Facing.values())
|
for (Facing enumfacing : Facing.values())
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class RenderLightning extends Render<EntityLightning>
|
||||||
d3 += (double)(random1.zrange(31) - 15);
|
d3 += (double)(random1.zrange(31) - 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
worldrenderer.begin(5, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_TRIANGLE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
float f = 0.5F;
|
float f = 0.5F;
|
||||||
float f1 = 0.45F;
|
float f1 = 0.45F;
|
||||||
float f2 = 0.45F;
|
float f2 = 0.45F;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package game.renderer.entity;
|
package game.renderer.entity;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
import org.lwjgl.opengl.GL13;
|
import org.lwjgl.opengl.GL13;
|
||||||
|
|
||||||
import game.entity.Entity;
|
import game.entity.Entity;
|
||||||
|
@ -95,7 +96,7 @@ public abstract class RenderLiving<T extends EntityLiving> extends RendererLivin
|
||||||
GlState.disableTexture2D();
|
GlState.disableTexture2D();
|
||||||
GlState.disableLighting();
|
GlState.disableLighting();
|
||||||
GlState.disableCull();
|
GlState.disableCull();
|
||||||
renderer.begin(5, DefaultVertexFormats.POSITION_COLOR);
|
renderer.begin(GL11.GL_TRIANGLE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
for(int n = 0; n <= 24; ++n) {
|
for(int n = 0; n <= 24; ++n) {
|
||||||
float cr = r;
|
float cr = r;
|
||||||
float cg = g;
|
float cg = g;
|
||||||
|
@ -118,7 +119,7 @@ public abstract class RenderLiving<T extends EntityLiving> extends RendererLivin
|
||||||
).color(cr, cg, cb, 1.0F).endVertex();
|
).color(cr, cg, cb, 1.0F).endVertex();
|
||||||
}
|
}
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
renderer.begin(5, DefaultVertexFormats.POSITION_COLOR);
|
renderer.begin(GL11.GL_TRIANGLE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
for(int n = 0; n <= 24; ++n) {
|
for(int n = 0; n <= 24; ++n) {
|
||||||
float cr = r;
|
float cr = r;
|
||||||
float cg = g;
|
float cg = g;
|
||||||
|
|
|
@ -2,6 +2,7 @@ package game.renderer.entity;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
import org.lwjgl.opengl.GL13;
|
import org.lwjgl.opengl.GL13;
|
||||||
|
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
|
@ -309,7 +310,7 @@ public class RenderManager
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
Vec3 vec3 = entityIn.getLook(partialTicks);
|
Vec3 vec3 = entityIn.getLook(partialTicks);
|
||||||
worldrenderer.begin(3, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION_COLOR);
|
||||||
worldrenderer.pos(x, y + (double)entityIn.getEyeHeight(), z).color(0, 0, 255, 255).endVertex();
|
worldrenderer.pos(x, y + (double)entityIn.getEyeHeight(), z).color(0, 0, 255, 255).endVertex();
|
||||||
worldrenderer.pos(x + vec3.xCoord * 2.0D, y + (double)entityIn.getEyeHeight() + vec3.yCoord * 2.0D, z + vec3.zCoord * 2.0D).color(0, 0, 255, 255).endVertex();
|
worldrenderer.pos(x + vec3.xCoord * 2.0D, y + (double)entityIn.getEyeHeight() + vec3.yCoord * 2.0D, z + vec3.zCoord * 2.0D).color(0, 0, 255, 255).endVertex();
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class RenderXpOrb extends Render<EntityXp>
|
||||||
GL11.glScalef(0.3F, 0.3F, 0.3F);
|
GL11.glScalef(0.3F, 0.3F, 0.3F);
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR_NORMAL);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR_NORMAL);
|
||||||
worldrenderer.pos((double)(0.0F - f5), (double)(0.0F - f6), 0.0D).tex((double)f, (double)f3).color(l, 255, j1, 128).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos((double)(0.0F - f5), (double)(0.0F - f6), 0.0D).tex((double)f, (double)f3).color(l, 255, j1, 128).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldrenderer.pos((double)(f4 - f5), (double)(0.0F - f6), 0.0D).tex((double)f1, (double)f3).color(l, 255, j1, 128).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos((double)(f4 - f5), (double)(0.0F - f6), 0.0D).tex((double)f1, (double)f3).color(l, 255, j1, 128).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldrenderer.pos((double)(f4 - f5), (double)(1.0F - f6), 0.0D).tex((double)f1, (double)f2).color(l, 255, j1, 128).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldrenderer.pos((double)(f4 - f5), (double)(1.0F - f6), 0.0D).tex((double)f1, (double)f2).color(l, 255, j1, 128).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
|
|
|
@ -540,7 +540,7 @@ public abstract class RendererLivingEntity<T extends EntityLiving> extends Rende
|
||||||
GlState.shadeModel(GL11.GL_SMOOTH);
|
GlState.shadeModel(GL11.GL_SMOOTH);
|
||||||
float f7 = 0.0F - ((float)entity.ticksExisted + p_180574_8_) * 0.01F;
|
float f7 = 0.0F - ((float)entity.ticksExisted + p_180574_8_) * 0.01F;
|
||||||
float f8 = ExtMath.sqrtf(f2 * f2 + f3 * f3 + f4 * f4) / 32.0F - ((float)entity.ticksExisted + p_180574_8_) * 0.01F;
|
float f8 = ExtMath.sqrtf(f2 * f2 + f3 * f3 + f4 * f4) / 32.0F - ((float)entity.ticksExisted + p_180574_8_) * 0.01F;
|
||||||
worldrenderer.begin(5, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldrenderer.begin(GL11.GL_TRIANGLE_STRIP, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
int i = 8;
|
int i = 8;
|
||||||
|
|
||||||
for (int j = 0; j <= 8; ++j)
|
for (int j = 0; j <= 8; ++j)
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class LayerEntityBreak implements LayerRenderer<EntityDragon>
|
||||||
GL11.glRotatef(random.floatv() * 360.0F + f * 90.0F, 0.0F, 0.0F, 1.0F);
|
GL11.glRotatef(random.floatv() * 360.0F + f * 90.0F, 0.0F, 0.0F, 1.0F);
|
||||||
float f2 = random.floatv() * 20.0F + 5.0F + f1 * 10.0F;
|
float f2 = random.floatv() * 20.0F + 5.0F + f1 * 10.0F;
|
||||||
float f3 = random.floatv() * 2.0F + 1.0F + f1 * 2.0F;
|
float f3 = random.floatv() * 2.0F + 1.0F + f1 * 2.0F;
|
||||||
worldrenderer.begin(6, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(GL11.GL_TRIANGLE_FAN, DefaultVertexFormats.POSITION_COLOR);
|
||||||
worldrenderer.pos(0.0D, 0.0D, 0.0D).color(255, 255, 255, (int)(255.0F * (1.0F - f1))).endVertex();
|
worldrenderer.pos(0.0D, 0.0D, 0.0D).color(255, 255, 255, (int)(255.0F * (1.0F - f1))).endVertex();
|
||||||
worldrenderer.pos(-0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
|
worldrenderer.pos(-0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
|
||||||
worldrenderer.pos(0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
|
worldrenderer.pos(0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package game.renderer.model;
|
package game.renderer.model;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import game.renderer.DefaultVertexFormats;
|
import game.renderer.DefaultVertexFormats;
|
||||||
import game.renderer.RenderBuffer;
|
import game.renderer.RenderBuffer;
|
||||||
import game.renderer.Tessellator;
|
import game.renderer.Tessellator;
|
||||||
|
@ -57,7 +59,7 @@ public class TexturedQuad
|
||||||
// ny = -ny;
|
// ny = -ny;
|
||||||
// nz = -nz;
|
// nz = -nz;
|
||||||
// }
|
// }
|
||||||
renderer.begin(7, DefaultVertexFormats.OLDMODEL_POSITION_TEX_NORMAL);
|
renderer.begin(GL11.GL_QUADS, DefaultVertexFormats.OLDMODEL_POSITION_TEX_NORMAL);
|
||||||
for (int i = 0; i < 4; ++i)
|
for (int i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
PositionTextureVertex vertex = this.vertices[i];
|
PositionTextureVertex vertex = this.vertices[i];
|
||||||
|
|
|
@ -256,7 +256,7 @@ public class EffectRenderer
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
// Tessellator tessellator = Tessellator.getInstance();
|
// Tessellator tessellator = Tessellator.getInstance();
|
||||||
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
RenderBuffer worldrenderer = Tessellator.getBuffer();
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
|
|
||||||
for (int k = 0; k < this.fxLayers[i][j].size(); ++k)
|
for (int k = 0; k < this.fxLayers[i][j].size(); ++k)
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class EntityFootStepFX extends EntityFX
|
||||||
this.currentFootSteps.bindTexture(EffectRenderer.particleTextures);
|
this.currentFootSteps.bindTexture(EffectRenderer.particleTextures);
|
||||||
GlState.enableBlend();
|
GlState.enableBlend();
|
||||||
GlState.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
GlState.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||||
worldRendererIn.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
|
worldRendererIn.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
|
||||||
worldRendererIn.pos((double)(f3 - 0.125F), (double)f4, (double)(f5 + 0.125F)).tex(u1, u3).color(f6, f6, f6, f1).endVertex();
|
worldRendererIn.pos((double)(f3 - 0.125F), (double)f4, (double)(f5 + 0.125F)).tex(u1, u3).color(f6, f6, f6, f1).endVertex();
|
||||||
worldRendererIn.pos((double)(f3 + 0.125F), (double)f4, (double)(f5 + 0.125F)).tex(u1, u2).color(f6, f6, f6, f1).endVertex();
|
worldRendererIn.pos((double)(f3 + 0.125F), (double)f4, (double)(f5 + 0.125F)).tex(u1, u2).color(f6, f6, f6, f1).endVertex();
|
||||||
worldRendererIn.pos((double)(f3 + 0.125F), (double)f4, (double)(f5 - 0.125F)).tex(u, u2).color(f6, f6, f6, f1).endVertex();
|
worldRendererIn.pos((double)(f3 + 0.125F), (double)f4, (double)(f5 - 0.125F)).tex(u, u2).color(f6, f6, f6, f1).endVertex();
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package game.renderer.particle;
|
package game.renderer.particle;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import game.Game;
|
import game.Game;
|
||||||
import game.entity.Entity;
|
import game.entity.Entity;
|
||||||
import game.renderer.DefaultVertexFormats;
|
import game.renderer.DefaultVertexFormats;
|
||||||
|
@ -14,7 +16,7 @@ import game.world.World;
|
||||||
public class EntityLargeExplodeFX extends EntityFX
|
public class EntityLargeExplodeFX extends EntityFX
|
||||||
{
|
{
|
||||||
private static final String EXPLOSION_TEXTURE = "textures/entity/explosion.png";
|
private static final String EXPLOSION_TEXTURE = "textures/entity/explosion.png";
|
||||||
private static final VertexFormat field_181549_az = (new VertexFormat()).addElement(DefaultVertexFormats.POSITION_3F).addElement(DefaultVertexFormats.TEX_2F).addElement(DefaultVertexFormats.COLOR_4UB).addElement(DefaultVertexFormats.TEX_2S).addElement(DefaultVertexFormats.NORMAL_3B).addElement(DefaultVertexFormats.PADDING_1B);
|
private static final VertexFormat VERTEX_FORMAT = (new VertexFormat()).addElement(DefaultVertexFormats.POSITION_3F).addElement(DefaultVertexFormats.TEX_2F).addElement(DefaultVertexFormats.COLOR_4UB).addElement(DefaultVertexFormats.TEX_2S).addElement(DefaultVertexFormats.NORMAL_3B).addElement(DefaultVertexFormats.PADDING_1B);
|
||||||
private int field_70581_a;
|
private int field_70581_a;
|
||||||
private int field_70584_aq;
|
private int field_70584_aq;
|
||||||
|
|
||||||
|
@ -52,7 +54,7 @@ public class EntityLargeExplodeFX extends EntityFX
|
||||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
GlState.disableLighting();
|
GlState.disableLighting();
|
||||||
ItemRenderer.disableStandardItemLighting();
|
ItemRenderer.disableStandardItemLighting();
|
||||||
worldRendererIn.begin(7, field_181549_az);
|
worldRendererIn.begin(GL11.GL_QUADS, VERTEX_FORMAT);
|
||||||
worldRendererIn.pos((double)(f5 - rotationX * f4 - rotationXY * f4), (double)(f6 - rotationZ * f4), (double)(f7 - rotationYZ * f4 - rotationXZ * f4)).tex((double)f1, (double)f3).color(this.particleRed, this.particleGreen, this.particleBlue, 1.0F).lightmap(0, 240).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldRendererIn.pos((double)(f5 - rotationX * f4 - rotationXY * f4), (double)(f6 - rotationZ * f4), (double)(f7 - rotationYZ * f4 - rotationXZ * f4)).tex((double)f1, (double)f3).color(this.particleRed, this.particleGreen, this.particleBlue, 1.0F).lightmap(0, 240).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldRendererIn.pos((double)(f5 - rotationX * f4 + rotationXY * f4), (double)(f6 + rotationZ * f4), (double)(f7 - rotationYZ * f4 + rotationXZ * f4)).tex((double)f1, (double)f2).color(this.particleRed, this.particleGreen, this.particleBlue, 1.0F).lightmap(0, 240).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldRendererIn.pos((double)(f5 - rotationX * f4 + rotationXY * f4), (double)(f6 + rotationZ * f4), (double)(f7 - rotationYZ * f4 + rotationXZ * f4)).tex((double)f1, (double)f2).color(this.particleRed, this.particleGreen, this.particleBlue, 1.0F).lightmap(0, 240).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
worldRendererIn.pos((double)(f5 + rotationX * f4 + rotationXY * f4), (double)(f6 + rotationZ * f4), (double)(f7 + rotationYZ * f4 + rotationXZ * f4)).tex((double)f, (double)f2).color(this.particleRed, this.particleGreen, this.particleBlue, 1.0F).lightmap(0, 240).normal(0.0F, 1.0F, 0.0F).endVertex();
|
worldRendererIn.pos((double)(f5 + rotationX * f4 + rotationXY * f4), (double)(f6 + rotationZ * f4), (double)(f7 + rotationYZ * f4 + rotationXZ * f4)).tex((double)f, (double)f2).color(this.particleRed, this.particleGreen, this.particleBlue, 1.0F).lightmap(0, 240).normal(0.0F, 1.0F, 0.0F).endVertex();
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class TileEntityPistonRenderer extends TileEntitySpecialRenderer<TileEnti
|
||||||
GlState.shadeModel(GL11.GL_FLAT);
|
GlState.shadeModel(GL11.GL_FLAT);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
worldrenderer.begin(7, DefaultVertexFormats.BLOCK);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.BLOCK);
|
||||||
worldrenderer.setTranslation((double)((float)x - (float)blockpos.getX() + te.getOffsetX(partialTicks)), (double)((float)y - (float)blockpos.getY() + te.getOffsetY(partialTicks)), (double)((float)z - (float)blockpos.getZ() + te.getOffsetZ(partialTicks)));
|
worldrenderer.setTranslation((double)((float)x - (float)blockpos.getX() + te.getOffsetX(partialTicks)), (double)((float)y - (float)blockpos.getY() + te.getOffsetY(partialTicks)), (double)((float)z - (float)blockpos.getZ() + te.getOffsetZ(partialTicks)));
|
||||||
World world = this.getWorld();
|
World world = this.getWorld();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue