setOpacity

fun setOpacity(opacity: Float)

Sets the opacity of the PhysicallyBasedMaterial.

Parameters

opacity

The opacity value to set.

Throws

IllegalStateException

If this material is closed or invalid.