Skip to content

Modern vanilla linear fog rendering & Fixes#160

Open
HaHaWTH wants to merge 4 commits intoembeddedt:1.12from
HaHaWTH:1.12
Open

Modern vanilla linear fog rendering & Fixes#160
HaHaWTH wants to merge 4 commits intoembeddedt:1.12from
HaHaWTH:1.12

Conversation

@HaHaWTH
Copy link

@HaHaWTH HaHaWTH commented Jun 20, 2025

This pull request brings a new water fog rendering mode to AA, linear fog rendering. Backported from Minecraft 1.21.7, the default one is AA's EXP2 fog rendering, users can switch between these two modes.

Changes

Linear Fog

  • Basic linear fog rendering logic
  • 15% view distance reduction when in swamp biomes
  • Dynamic scale fog distance based on view distance
  • Cylinder fog when view distance < 96 blocks (Not possible at 1.12.2, requires modern GL features)

Fix

  • Blindness factor is incorrectly calculated with current time in milliseconds, which should use potion duration.
  • Fix weird black edges near the chunk border (caused by skybox rendering) (disabled by default)

Video

Aqua Acrobatics EXP2 Fog

5F7435013C5B4EAFD1C64D02C7998CE7.mp4

Backported Linear Fog (This PR)

A714B65756D0F6DCA13A3DAA96C4E72F.mp4

1.21 Vanilla

07403411AEEC97811B47BAAE8E30E085.mp4

@HaHaWTH HaHaWTH changed the title Modern vanilla linear fog rendering Modern vanilla linear fog rendering & Fixes Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant