setOpacity
Sets the opacity of the PhysicallyBasedMaterial.
Valid range: [0.0f, 1.0f] (inclusive); values outside this range will be clamped to [0.0f, 1.0f] when applied.
Behavior depends on the current BlendingMode:
BlendingMode.OPAQUE: ignored, the material is always fully opaque.
BlendingMode.TRANSPARENT:
1.0fis fully opaque,0.0fis fully transparent; specular highlights / reflections are not affected.BlendingMode.ADD: scales the additive contribution; the background remains visible even at
1.0f.BlendingMode.FADE: similar to BlendingMode.TRANSPARENT, but specular highlights / reflections also fade together with the surface alpha.
BlendingMode.MASKED: participates in the alpha test against
opacityThresholdinstead of producing semi-transparent results.
Parameters
The opacity value to set.
See also
Throws
If this material is closed or invalid.