diff options
author | Technus <daniel112092@gmail.com> | 2017-07-17 17:14:13 +0200 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2017-07-17 17:14:13 +0200 |
commit | cdf362ae3bf9d8924c61a195c962685b9ae1cdbe (patch) | |
tree | ec34fe4eb90749f9af7c781f73d44817cccf3d50 /src/main | |
parent | 9fd46f88357f585e8df27c3f0071782c21e6065c (diff) | |
download | GT5-Unofficial-cdf362ae3bf9d8924c61a195c962685b9ae1cdbe.tar.gz GT5-Unofficial-cdf362ae3bf9d8924c61a195c962685b9ae1cdbe.tar.bz2 GT5-Unofficial-cdf362ae3bf9d8924c61a195c962685b9ae1cdbe.zip |
Remove smog "shader"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/gregtech/common/GT_Client.java | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index 839dcd2367..80ab070c08 100644 --- a/src/main/java/gregtech/common/GT_Client.java +++ b/src/main/java/gregtech/common/GT_Client.java @@ -150,44 +150,45 @@ public class GT_Client extends GT_Proxy GL11.glEnd(); GL11.glPopMatrix(); } - - @SubscribeEvent - public void manipulateDensity(EntityViewRenderEvent.FogDensity event) { - if(GT_Pollution.mPlayerPollution > (GT_Mod.gregtechproxy.mPollutionSmogLimit)){ - event.density = (0.15f*(Math.min(GT_Pollution.mPlayerPollution/((float)GT_Mod.gregtechproxy.mPollutionSourRainLimit),1.0f)))+0.1f; - event.setCanceled(true); - } - } - - @SubscribeEvent - public void manipulateColor(EntityViewRenderEvent.FogColors event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.red = 140f/255f; - event.green = 80f/255f; - event.blue = 40f/255f; - } - } - - @SubscribeEvent - public void manipulateGrassColor(BiomeEvent.GetGrassColor event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.newColor = 0xD2691E; - } - } - @SubscribeEvent - public void manipulateWaterColor(BiomeEvent.GetWaterColor event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.newColor = 0x556B2F; - } - } - - @SubscribeEvent - public void manipulateFoliageColor(BiomeEvent.GetFoliageColor event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.newColor = 0xCD853F; - } - } + //TODO less bad + //@SubscribeEvent + //public void manipulateDensity(EntityViewRenderEvent.FogDensity event) { + // if(GT_Pollution.mPlayerPollution > (GT_Mod.gregtechproxy.mPollutionSmogLimit)){ + // event.density = (0.15f*(Math.min(GT_Pollution.mPlayerPollution/((float)GT_Mod.gregtechproxy.mPollutionSourRainLimit),1.0f)))+0.1f; + // event.setCanceled(true); + // } + //} + + //@SubscribeEvent + //public void manipulateColor(EntityViewRenderEvent.FogColors event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.red = 140f/255f; + // event.green = 80f/255f; + // event.blue = 40f/255f; + // } + //} + + //@SubscribeEvent + //public void manipulateGrassColor(BiomeEvent.GetGrassColor event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.newColor = 0xD2691E; + // } + //} + + //@SubscribeEvent + //public void manipulateWaterColor(BiomeEvent.GetWaterColor event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.newColor = 0x556B2F; + // } + //} + + //@SubscribeEvent + //public void manipulateFoliageColor(BiomeEvent.GetFoliageColor event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.newColor = 0xCD853F; + // } + //} public boolean isServerSide() { return true; |