W3cubDocs

/Web APIs

XRCompositionLayer: blendTextureSourceAlpha property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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.

js

myLayer.blendTextureSourceAlpha = !myLayer.blendTextureSourceAlpha;

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
blendTextureSourceAlpha No No No No No No No No No No No No

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRCompositionLayer/blendTextureSourceAlpha