mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 05:02:30 +00:00
Merge pull request #532 from Gwani/master
Added glPushMatrix/glPopMatrix-pair to LightningHandler.
This commit is contained in:
commit
e1665a5245
1 file changed
+3
@@ -74,6 +74,7 @@ public class LightningHandler {
|
||||
interpPosY = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * frame;
|
||||
interpPosZ = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * frame;
|
||||
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslated(-interpPosX, -interpPosY, -interpPosZ);
|
||||
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
@@ -102,6 +103,8 @@ public class LightningHandler {
|
||||
GL11.glDepthMask(true);
|
||||
|
||||
GL11.glTranslated(interpPosX, interpPosY, interpPosZ);
|
||||
GL11.glPopMatrix();
|
||||
|
||||
profiler.endSection();
|
||||
profiler.endSection();
|
||||
|
||||
|
||||
Reference in new issue
Block a user