I've been having major issues with transparency of non-intersecting objects for the last few days. I've come across the suggestion to set the alphaTest
of the material to 0.5, which solved the problem.
That's great, but I'd like to understand better what it means and how come it solved the issues so elegantly. Can anyone advise?
From a brief experiment: it appears to be a threshold for rendering.
Meshes disappear abruptly when opacity
falls below alphaTest
.
If an object is not turning transparent, first ensure transparent = true
.
The answer can be found here:
The alpha test discards a fragment conditional on the outcome of a comparison between the incoming fragment's alpha value and a constant value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With