TerraFirmaCraft / TerraFirmaCraft

Survival Mode as it Should've Been
https://discord.gg/PRuAKvY
European Union Public License 1.2
522 stars 230 forks source link

white fruit trees on fast graphics #753

Closed shawnm355 closed 4 years ago

shawnm355 commented 4 years ago

Fast graphics tends to cause fruit tree leaves to render as white, To Reproduce put on fast graphics and look at a fruit tree

Meta Info

2020-01-05_13 43 39

Claycorp commented 4 years ago

Alright, I looked into this and figured out the problem.

The issue: Fruit trees are made up of up to 2 textures. Fruits/Flowers are overlays onto a base block and Fast graphics removes alpha.

Details: The problem with this is that all the alpha on the overlay is converted to opaque pixels in fast graphics. These pixels retain the color information they have when the file is saved or is defaulted to one color, depends on editor. If there isn't any color it's just white.

Options to fix:

Either way the fix will get rid of the ugly textures but something won't work exactly as expected but it's better than the above. There isn't a way around this with the existing systems.

Also with this some other trees need to be looked at as they also have the same issue with bad colors in the alpha areas. All of the following leaves need to be fixed.