I know that this compression tool is still pretty new, but I’m hoping that someone can help figure out some issues I’m seeing when using Basis files. According to the Basis Universal README:
For tangent space normal maps, you should separate X into RGB and Y into Alpha, and provide the compressor with 32-bit/pixel input images. Or use the "-separate_rg_to_color_alpha" command line option which does this for you. The internal texture format that Basis Universal uses (ETC1S) doesn't handle tangent space normal maps encoded into RGB well. You need to separate the channels and recover Z in the pixel shader using z=sqrt(1-x^2-y^2).
Using their alternative encoding params, Babylon fails to load the files. Using the standard settings, this is translating in Babylon to one side of the model looking correct, while the other side looks “inverted”
Are there any examples of KTX2 and Babylon working together using normal maps? And if so, can someone share how they compressed the files and loaded the results?