loadKTX1Environment
Utility for producing environment resources from precompiled cmgen generated KTX files.
Consumes the content of KTX files and produces an IndirectLight, SphericalHarmonics and a Skybox
You can generate ktx ibl and skybox files using:
cmgen --deploy ./output --format=ktx --size=256 --extract-blur=0.1 environment.hdr
Documentation: Filament - Bake environment map
Return
the generated environment indirect light, sphericalHarmonics and skybox from the ktxs.
Parameters
The ibl KTX file url.
The skybox KTX file url.
Utility for decoding and producing environment resources from an HDR file.
Consumes the content of an HDR file and produces an IndirectLight and a Skybox.
Return
the generated environment indirect light and skybox from the hdr.
Parameters
The HDR File url.
Generates a prefiltered indirect light cubemap. SpecularFilter is a GPU based implementation of the specular probe pre-integration filter. ** Launch the heaver computation. Expect 100-100ms on the GPU.**
texture loader options
Disable the skybox creation if you don't need it.