Added an event for fog rendering

This commit is contained in:
Adubbz committed 2014-07-28 17:01:38 +10:00
1 parent a22bcf7e72
commit 2affeae979
2 files changed
+26

No files matched your search

@@ -193,3 +193,11 @@
if (entitylivingbase.func_70644_a(Potion.field_76440_q))
{
f1 = 5.0F;
@@ -1930,6 +1980,7 @@
GL11.glFogf(GL11.GL_FOG_START, f1 * 0.05F);
GL11.glFogf(GL11.GL_FOG_END, Math.min(f1, 192.0F) * 0.5F);
}
+ MinecraftForge.EVENT_BUS.post(new net.minecraftforge.client.event.EntityViewRenderEvent.RenderFogEvent(this, entitylivingbase, block, p_78468_2_, p_78468_1_, f1));
}
GL11.glEnable(GL11.GL_COLOR_MATERIAL);