Hello! I want to load KTX2 texture file using Tools.LoadImage() but it keeps returning Error while trying to load image:
error. I’ve made sure to include ‘image/ktx2’ for mimeType and I’ve tried loading from URL and arraybuffer, they all return the same error.
So my question is: Does the function not support loading KTX2 files? Here’s my code:
BABYLON.Tools.LoadImage(
'...', // url to ktx2 texture file
(image) => {
console.log('image:', image)
},
(error) => {
console.error(error)
},
null,
'image/ktx2'
)