IrisShaders / Iris

A modern shaders mod for Minecraft compatible with existing OptiFine shader packs
https://irisshaders.dev
GNU Lesser General Public License v3.0
3.34k stars 635 forks source link

Request: Fix food particles appearing behind water on Sildur's Vibrant Shaders #287

Open coderbot16 opened 3 years ago

coderbot16 commented 3 years ago

I think that this can be addressed in a similar way to the other particle issues.

image

coderbot16 commented 3 years ago

This is caused by the fact that Iris can't immediately determine whether the minecraft:item, minecraft:item_slime, and minecraft:item_snowball particles have translucent or opaque sprite textures (the particle value in the model format). While it would be possible to analyze the sprite texture (or hardcode translucency state for each item type) to determine this information, it isn't very straightforward. This means that currently opaque eating particles are rendered after water, causing issues with Sildur's Vibrant Shaders.

Currently, OptiFine for 1.16+ has the same behavior.