createTexture
fun createTexture(engine: Engine, buffer: ByteArray, internalFormat: Texture.InternalFormat): Texture?
Decodes HDR bytes into a Filament Texture.
Return
the created Texture, or null on failure
Parameters
engine
the Engine to create the texture with
buffer
the raw HDR image data
internalFormat
the internal format to use for the resulting texture