Returns bitmask of all TextureChannels used by the
given texture. Determination is based only on the role of the textures, e.g.
a texture used for the occlusionTexture
will have (at least) a red channel.
See listTextureChannels for an array alternative.
Example:
const mask = getTextureChannelMask(texture);
if (mask & TextureChannel.R) {
console.log('texture red channel used');
}
Made by Don McCurdy • Documented with greendoc • © 2023 MIT License
getTextureChannelMask