Youâre right this part isnât documented and handled mostly internally. opt is used to flag âswizzledGGGRâ textures which is used for high(er) quality normal maps. See this code.
The editor copies the textureâs G channel to RGB and the R channel to A before compression. The backend then sets the opt value of the texture asset to 8.
At runtime when we load the basis texture asset we choose the correct normal sampling method based on this value.
What if I create a basis compression format widthout -swizzle gggr option from the outside of playcanvas editor. Then, which value should I set for the âoptâ variable?
@slimbuck do you only set the -mipmap option conditionally when that texture has mipmaps enabled in the editor, or is it always set when using Basis compression?