14

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?

Roi Avinoam
  • 141
  • 1
  • 5

2 Answers2

7

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.

Peter Ehrlich
  • 6,969
  • 4
  • 49
  • 65
5

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.

Michael Litvin
  • 3,976
  • 1
  • 34
  • 40