Options for FlatMaterial, the same as BaseMaterial3DOptions
extraBits run after the base colour and texture and before the 'mask' cutoff, so they see the textured albedo and alpha, and the cutoff sees any alpha they write.
extraBits
'mask'
albedo
alpha
const options: FlatMaterialOptions = { baseColorTexture: iconTexture, alphaMode: 'mask' };const icon = new FlatMaterial(options); Copy
const options: FlatMaterialOptions = { baseColorTexture: iconTexture, alphaMode: 'mask' };const icon = new FlatMaterial(options);
Options for FlatMaterial, the same as BaseMaterial3DOptions
extraBitsrun after the base colour and texture and before the'mask'cutoff, so they see the texturedalbedoandalpha, and the cutoff sees any alpha they write.