Skip to content

Commit

Permalink
Apply new fog parameters in cloud rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Oct 27, 2024
1 parent 16a2895 commit ee416e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public void render(Camera camera,
final var prevShaderFog = copyFog(RenderSystem.getShaderFog());

Vector4f fogColor = FogRenderer.computeFogColor(camera, tickDelta, level, cloudDistance * 8, Minecraft.getInstance().gameRenderer.getDarkenWorldAmount(tickDelta));
FogRenderer.setupFog(camera, FogRenderer.FogMode.FOG_TERRAIN, fogColor, cloudDistance * 8, shouldUseWorldFog(level, pos), tickDelta);
FogParameters fogParameters = FogRenderer.setupFog(camera, FogRenderer.FogMode.FOG_TERRAIN, fogColor, cloudDistance * 8, shouldUseWorldFog(level, pos), tickDelta);
RenderSystem.setShaderFog(fogParameters);

boolean fastClouds = geometry.params().renderMode() == CloudStatus.FAST;
boolean fabulous = Minecraft.useShaderTransparency();
Expand Down

0 comments on commit ee416e4

Please sign in to comment.