Sodium

Sodium

35M Downloads

Entities can ignore being affected by fog at certain angles.

Opened this issue ยท 2 comments

commented

Expected Behavior

Entities don't ignore fog and all get the same result on the fog distance.

Actual Behavior

Entities don't ignore fog and hide based on the camera position.

Reproduction Steps

Spawn an entity, move away until its starting to get into the fog, then move the camera around

Attachments

Entity ignoring fog
Entity not ignoring fog

System Information

  • Java Version: bundled jre, java 8 b51
  • CPU: amd ryzen 3 3200u
  • GPU: amd radeon vega 3
commented

The problem here is caused by entity rendering still using the old fixed-function pipeline, which doesn't use the same distance calculation as Sodium because it only exists as a proprietary NVIDIA extension. We'll have to extend our shaders to cover entity rendering in order to fix it, but that might help performance anyways.

commented

As of 1.17 all systems have radial fog and this issue doesn't occur anymore.