hs-furtwangen / FUDGE

https://hs-furtwangen.github.io/FUDGE/
MIT License
2 stars 0 forks source link

disable sortForAlpha makes objects opaque #12

Open JirkaDellOro opened 2 months ago

JirkaDellOro commented 2 months ago

Introduced with

Date: Mon Jul 08 2024 15:22:45 GMT+0200 (Central European Summer Time) disable blending for opaque objects

Is this the desired behaviour? sortForAlpha now means more than what it says...

plojo commented 1 month ago

This is the intended behaviour for now. I made this change to support glTF Alpha Coverage alphaMode: MASK ("The rendered output is either fully opaque or fully transparent depending on the alpha value and the specified alpha cutoff value". I also added an alphaClip (alpha cutoff value) property to the Material. With the current sortForAlpha and alphaClip we can support all glTF alphaModes:

However i am not pleased with the current situation: