forked from Automat-GH/minecrift
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c63605d
commit 265b7b9
Showing
12 changed files
with
105 additions
and
829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,8 @@ | ||
--- a/net/minecraft/src/CustomColorizer.java | ||
+++ b/net/minecraft/src/CustomColorizer.java | ||
@@ -1053,4 +1053,45 @@ | ||
} | ||
} | ||
@@ -1093,4 +1093,5 @@ | ||
|
||
return skyVec; | ||
} | ||
+ | ||
+ public static Vec3 getWorldFogColor(Vec3 fogVec, WorldClient world, float partialTicks) | ||
+ { | ||
+ int worldType = world.provider.dimensionId; | ||
+ | ||
+ switch (worldType) | ||
+ { | ||
+ case -1: | ||
+ fogVec = getFogColorNether(fogVec); | ||
+ break; | ||
+ | ||
+ case 0: | ||
+ Minecraft mc = Minecraft.getMinecraft(); | ||
+ fogVec = getFogColor(fogVec, mc.theWorld, mc.renderViewEntity.posX, mc.renderViewEntity.posY + 1.0D, mc.renderViewEntity.posZ); | ||
+ break; | ||
+ | ||
+ case 1: | ||
+ fogVec = getFogColorEnd(fogVec); | ||
+ } | ||
+ | ||
+ return fogVec; | ||
+ } | ||
+ | ||
+ public static Vec3 getWorldSkyColor(Vec3 skyVec, WorldClient world, EntityLivingBase renderViewEntity, float partialTicks) | ||
+ { | ||
+ int worldType = world.provider.dimensionId; | ||
+ | ||
+ switch (worldType) | ||
+ { | ||
+ case 0: | ||
+ Minecraft mc = Minecraft.getMinecraft(); | ||
+ skyVec = getSkyColor(skyVec, mc.theWorld, mc.renderViewEntity.posX, mc.renderViewEntity.posY + 1.0D, mc.renderViewEntity.posZ); | ||
+ break; | ||
+ | ||
+ case 1: | ||
+ skyVec = getSkyColorEnd(skyVec); | ||
+ } | ||
+ | ||
+ return skyVec; | ||
+ } | ||
+ | ||
} |
Oops, something went wrong.