setOpacityThreshold
Sets the opacity threshold of the PhysicallyBasedMaterial.
Only takes effect when the blending mode is BlendingMode.MASKED. Pixels whose alpha is less than this threshold are fully discarded (clipped and not rendered), while pixels with alpha greater than or equal to the threshold are treated as fully opaque. There is no semi-transparent transition under BlendingMode.MASKED.
This value has no effect under other blending modes such as BlendingMode.OPAQUE, BlendingMode.TRANSPARENT, BlendingMode.FADE, or BlendingMode.ADD.
Valid range: [0.0f, 1.0f] (inclusive); values outside this range will be clamped to [0.0f, 1.0f] when applied. The default value is 0.0f, which means every pixel passes the alpha test, so the visual result under BlendingMode.MASKED is equivalent to BlendingMode.OPAQUE.
Parameters
The opacity threshold value to set.
See also
Throws
If this material is closed or invalid.