Class AtmosphericFogEnvironment
java.lang.Object
net.minecraft.client.renderer.fog.environment.FogEnvironment
net.minecraft.client.renderer.fog.environment.AtmosphericFogEnvironment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate static final floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intapplyWeatherDarken(int color, float rainLevel, float thunderLevel) intgetBaseColor(ClientLevel level, Camera camera, int renderDistance, float partialTicks) booleanisApplicable(@Nullable FogType fogType, Entity entity) voidsetupFog(FogData fog, Camera camera, ClientLevel level, float renderDistance, DeltaTracker deltaTracker) private voidupdateRainFogState(Camera camera, ClientLevel level, DeltaTracker deltaTracker) Methods inherited from class FogEnvironment
getModifiedDarkness, modifiesDarkness, providesColor
-
Field Details
-
MIN_RAIN_FOG_SKY_LIGHT
private static final int MIN_RAIN_FOG_SKY_LIGHT- See Also:
-
RAIN_FOG_START_OFFSET
private static final float RAIN_FOG_START_OFFSET- See Also:
-
RAIN_FOG_END_OFFSET
private static final float RAIN_FOG_END_OFFSET- See Also:
-
rainFogMultiplier
private float rainFogMultiplier
-
-
Constructor Details
-
AtmosphericFogEnvironment
public AtmosphericFogEnvironment()
-
-
Method Details
-
getBaseColor
- Overrides:
getBaseColorin classFogEnvironment
-
applyWeatherDarken
private static int applyWeatherDarken(int color, float rainLevel, float thunderLevel) -
setupFog
public void setupFog(FogData fog, Camera camera, ClientLevel level, float renderDistance, DeltaTracker deltaTracker) - Specified by:
setupFogin classFogEnvironment
-
updateRainFogState
-
isApplicable
- Specified by:
isApplicablein classFogEnvironment
-