MinecraftForge/MinecraftForge — pull request #475 by CannibalVox (2013-03-23 10:30:41+00:00)
Title: Rendering fix for Semi-Transparent, Non-Liquid Blocks

Hello, Minecraft has a fairly well-known bug detailed here: https://mojang.atlassian.net/browse/MC-1379

Essentially, the problem is that semi-transparent render objects must be rendered back to front, and minecraft's current behavior is this:

- Semi-transparent quads are rendered in sub-chunk order, front to back. Each sub-chunk renders its semi-transparent quads in arbitrary order.
- Particles, liquids, and clouds are each rendered in separate phases from semi-transparent blocks and from each other, in a fixed order.

This causes a number of problems detailed in the linked bug. This task only fixes the following problems:

- When viewing a semi-transparent block in Fast graphics mode, arbitrary backfaces of the object are rendered or not rendered.
- When looking through a semi-transparent block, other semi-transparent blocks in the same subchunk on Fast graphics mode will have arbitrary faces rendered or not rendered.
- When looking through a semi-transparent block, other semi-transparent blocks in other subchunks, or in the same subchunk on Fancy graphics mode, will not appear.

Mojang deals with this issue by using very few alpha-blended non-liquid blocks (glass, for instance, is not actually blended) and using very high opacity for those blocks which are alpha blended (such as ice).

For modders who would like to provide basics such as MineFactory Reloaded's stained glass, this is a very serious issue that directly impacts the player experience and the ability of modders to be creative.

Thank you for reading all this, and please know that I am prepared to make any changes necessary to help this fit with Forge code and satisfy your coding standards. I am very serious about this fix finding its way into player hands. Thank you.