Ktx1Reader

object Ktx1Reader

Creates Filament textures from KTX1 bundles.

Functions

Link copied to clipboard
fun createTexture(engine: Engine, ktx: Ktx1Bundle, srgb: Boolean): Texture?
fun createTexture(engine: Engine, ktx: Ktx1Bundle, srgb: Boolean, callback: () -> Unit): Texture?

Creates a Texture object from a KTX file and populates all of its faces and miplevels.

Link copied to clipboard

Whether format is an sRGB one.