MDN self-hosted library · e01.org

XRCompositionLayer: blendTextureSourceAlpha property

WebXR Device API

Open notebook · 1 cells web-api-instance-property upstream source

WebXR Device API

The blendTextureSourceAlpha property of the XRCompositionLayer interface is a boolean enabling the layer's texture alpha channel.

Value

A boolean. true enables the alpha channel, false disables it.

Examples

Setting a layer's texture alpha channel

The following code snippet toggles a layer to opaque and back.

myLayer.blendTextureSourceAlpha = !myLayer.blendTextureSourceAlpha;

Specifications

Browser compatibility

See also

  • Alpha channel