Firefox Tomorrow

web api instance property

XRCompositionLayer: blendTextureSourceAlpha property

View on MDN ↗

Limited availability

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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also