-
public class KTX1LoaderUtilities for consuming KTX1 files and producing Filament textures, IBLs, and sky boxes.
KTX is a simple container format that makes it easy to bundle miplevels and cubemap faces into a single file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classKTX1Loader.Options
-
Field Summary
Fields Modifier and Type Field Description public final static KTX1LoaderINSTANCE
-
Method Summary
Modifier and Type Method Description final TexturecreateTexture(Engine engine, Buffer buffer, KTX1Loader.Options options)Consumes the content of a KTX file and produces a Texture object. final IndirectLightcreateIndirectLight(Engine engine, Buffer buffer, KTX1Loader.Options options)Consumes the content of a KTX file and produces an IndirectLight object. final SkyboxcreateSkybox(Engine engine, Buffer buffer, KTX1Loader.Options options)Consumes the content of a KTX file and produces a Skybox object. final FloatArraygetSphericalHarmonics(Buffer buffer)Retrieves spherical harmonics from the content of a KTX file. -
-
Method Detail
-
createTexture
final Texture createTexture(Engine engine, Buffer buffer, KTX1Loader.Options options)
Consumes the content of a KTX file and produces a Texture object.
- Parameters:
engine- Gets passed to the builder.buffer- The content of the KTX File.options- Loader options.
-
createIndirectLight
final IndirectLight createIndirectLight(Engine engine, Buffer buffer, KTX1Loader.Options options)
Consumes the content of a KTX file and produces an IndirectLight object.
- Parameters:
engine- Gets passed to the builder.buffer- The content of the KTX File.options- Loader options.
-
createSkybox
final Skybox createSkybox(Engine engine, Buffer buffer, KTX1Loader.Options options)
Consumes the content of a KTX file and produces a Skybox object.
- Parameters:
engine- Gets passed to the builder.buffer- The content of the KTX File.options- Loader options.
-
getSphericalHarmonics
final FloatArray getSphericalHarmonics(Buffer buffer)
Retrieves spherical harmonics from the content of a KTX file.
- Parameters:
buffer- The content of the KTX File.
-
-
-
-