Skip to main content

Opacity

Opacity parameters control material transparency, enabling realistic glass, water, and translucent materials.

Parameters

ParameterTypeDefaultRange
opacityfloat1.0[0.0, 1.0]
opacityTexturetexture2d_refnull-

Parameter Details

opacity

Type: float Default: 1.0 Range: [0.0, 1.0]

Surface transparency.

  • 0.0 = Transparent (invisible)
  • 0.5 = Semi-transparent
  • 1.0 = Opaque

opacityTexture

Type: texture2d_ref Default: null Format: Grayscale, Linear color space

Per-pixel opacity mask.

  • Channel: Red (R)
  • Values: 1 = opaque, 0 = transparent
opacity_final = opacityTexture.r * albedoTexture.a * opacity_parameter

Important: Enable Transparency

Transparency requires the MATERIAL_TRANSPARENT constant to be enabled in the material.