thorium

thorium

333k Downloads

Animated texture interpolation ignores alpha channel during transition from/to transparent pixels

Scarlaid opened this issue ยท 3 comments

commented

Issue explanation

If an animated texture that uses texture interpolation ({"interpolate": true} in the .mcmeta file) contains transparent pixels, the following behaviors can be observed:

  • When fading TO transparent pixels, i.e. having a pixel that starts opaque and becomes transparent in the next frame, during the interpolation they will fade to whatever the RGB values for the pixels are, ignoring the alpha channel (the game just behaves as if the pixel was fully opaque). Once the transition is over, those pixels instantly change from that color to transparent, which creates a very jarring effect.
  • When fading FROM transparent pixels, i.e. having a pixel that starts transparent and becomes opaque in the next frame, they'll appear completely transparent until the transition is over. Once it is over, the correct color will, again, appear all of a sudden.

Mojira issue link

https://bugs.mojang.com/browse/MC-144761

Other

Said pretty much everything about a 2 line dif
Still affects modern Minecraft versions till 1.18
image

I was surprised, tested myself as following the reproduction in the issue itself, and yes, this still isn't fixed in 1.18.2
This mod claimed to fix the issue, but it only works for 1.16.1 + crashed with Sodium/Continuity

commented

This has been fixed in 6d6d368 and will be included in the next release :)

commented

any chance fixing #4 and #5 or you already did?
I'm just curious to ask

commented

These haven't been fixed, I have not had time for them yet.