Mojira Archive
MC-102039

3D anaglyph mode is not working correctly for view distances lower than 4

The bug

3D anaglyph mode is not working correctly for view distances lower than 4.
Blue and red are not shifted only anymore but also rotated.

While in both cases the image can appear in 3D, on render distances lower than 4, one must cross their eyes far more to see the image correctly (and perspective changes).

Code analysis

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

It looks like this is somehow caused by the method net.minecraft.client.renderer.EntityRenderer.renderWorldPass(int, float, long) rendering the sky only for view distance is greater than or equal to 4. It looks however like this is not the reason as disabling this part for view distances higher than 3 is not causing this.