Custom fog option (#74)
This commit is contained in:
parent
e013f80912
commit
74a156389e
4 changed files with 18 additions and 2 deletions
|
@ -26,6 +26,10 @@ public class CustomFogRenderer {
|
|||
private static float fogEnd = 192;
|
||||
|
||||
public static boolean applyFogDensity(Camera camera, float viewDistance, boolean thickFog) {
|
||||
if (!Configs.CLIENT_CONFIG.renderCustomFog()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
FogType fogType = camera.getFluidInCamera();
|
||||
if (fogType != FogType.NONE) {
|
||||
BackgroundInfo.fogDensity = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue