I’ve got texture arrays working with JPG and PNG textures with the help of this code but when I use KTX2 textures I get an error. Are they supported in PlayCanvas? Is there any code examples to create one? I’ve run into the 16 texture unit limit using non-array textures hence the need for texture arrays.
It’s possible to create a KTX2 file with a number of layers for a texture array using toktx. I wonder if PlayCanvas supports it. The alternative is to create a texture atlas somehow.