Package 

Object KTX1Loader


  • 
    public class KTX1Loader
    
                        

    Utilities 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.

    • 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.
      • createSkybox

         final KTX1Loader.SkyboxBundle 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.