mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-27 19:52:55 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c78cd6e54 |
No files matched your search
@@ -49,13 +49,14 @@ public class ParticlePosition extends EntityReddustFX {
|
|||||||
float rotationYZ, float rotationXY, float rotationXZ) {
|
float rotationYZ, float rotationXY, float rotationXZ) {
|
||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
|
|
||||||
|
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
|
||||||
GL11.glDisable(GL11.GL_DEPTH_TEST);
|
GL11.glDisable(GL11.GL_DEPTH_TEST);
|
||||||
|
|
||||||
tessellator.startDrawingQuads();
|
tessellator.startDrawingQuads();
|
||||||
super.renderParticle(tessellator, partialTickTime, rotationX, rotationZ, rotationYZ, rotationXY, rotationXZ);
|
super.renderParticle(tessellator, partialTickTime, rotationX, rotationZ, rotationYZ, rotationXY, rotationXZ);
|
||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
|
|
||||||
GL11.glEnable(GL11.GL_DEPTH_TEST);
|
GL11.glPopAttrib();
|
||||||
tessellator.startDrawingQuads();
|
tessellator.startDrawingQuads();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,11 @@ public class SlotHighlighter implements IContainerDrawHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void renderSlotUnderlay(GuiContainer gui, Slot slot) {
|
public void renderSlotUnderlay(GuiContainer gui, Slot slot) {
|
||||||
if (this.gui == gui && this.slots.contains(slot)) {
|
if (this.gui == gui && this.slots.contains(slot)) {
|
||||||
GL11.glPushMatrix();
|
GL11.glPushAttrib(
|
||||||
|
GL11.GL_ENABLE_BIT | GL11.GL_COLOR_BUFFER_BIT
|
||||||
|
| GL11.GL_CURRENT_BIT
|
||||||
|
| GL11.GL_LIGHTING_BIT
|
||||||
|
| GL11.GL_TEXTURE_BIT);
|
||||||
|
|
||||||
GL11.glDisable(GL11.GL_LIGHTING);
|
GL11.glDisable(GL11.GL_LIGHTING);
|
||||||
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
||||||
@@ -71,12 +75,7 @@ public class SlotHighlighter implements IContainerDrawHandler {
|
|||||||
highlightSlot(tessellator, slot.xDisplayPosition, slot.yDisplayPosition);
|
highlightSlot(tessellator, slot.xDisplayPosition, slot.yDisplayPosition);
|
||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
|
|
||||||
GL11.glShadeModel(GL11.GL_FLAT);
|
GL11.glPopAttrib();
|
||||||
GL11.glDisable(GL11.GL_BLEND);
|
|
||||||
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
|
||||||
GL11.glEnable(GL11.GL_LIGHTING);
|
|
||||||
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user