sp614x / optifine

1.8k stars 418 forks source link

[Bug] [1.15.2] Leaves with high amount of transparency render completely transparent at high distances #4076

Open racknae opened 4 years ago

racknae commented 4 years ago

This issue is mostly one which affects resource packs. Leaf textures (I presume this affects some other textures which use transparency, but it's especially noticeable with leaves) that have a high amount of transparent pixels will become completely invisible when they're far away enough from the player. The issue is especially noticeable when playing in lower resolutions (like the default game window) and becomes even more pronounced when using Smart trees instead of Fancy trees.

This is very visible with the Acacia leaves in the resource pack "Jolicraft". This is what a Savanna looks like with render distance at 16 and trees set to "fancy": 2020-06-10_16 56 07 2020-06-10_16 38 03 2020-06-10_16 44 35

Occurs on version G1_U_pre21 and I'm fairly sure all other recent versions. Does not occur in vanilla 1.15.2. Here's a screenshot of how these trees appear there for comparison (using fancy graphics): 2020-06-10_16 37 23 2020-06-10_16 45 22

racknae commented 4 years ago

Some additional info: turning off mipmapping seems to fix the issue with the textures going transparent.