How to selectively apply the behavior from engine.setTextureFormatToUse

Hey all, when using engine.setTextureFormatToUse, is there a way to be selective about what it tries to apply <-format>.ktx to ? Its trying to apply it to every texture no matter how its loaded(environment map and a bunch of accent/background models we don’t have ktx pipeline set up for etc… )

Edit: the ones that need the format behavior are being loaded as loose Texture if that helps

Thanks

I think all of this has been improved quite a bite by @Evgeni_Popov ???

No, I didn’t do anything related to setTextureFormatToUse.

Maybe you can use .ktx2 files instead for the assets that need texture compression?

Adding @bghgary as he will probably have more answers regarding setTextureFormatToUse.

1 Like

@Evgeni_Popov I can give that a shot. I thought ktx2 did not support PVRTC but I am mistaken and it gets transcoded. This is the best writeup I ever seen explaining all that: Basis Universal GPU Texture Codec

It doesn’t look like it from the code. You can explicitly call this with an empty array to reset.

1 Like