createKTX1Environment

fun createKTX1Environment(iblBuffer: Buffer? = null, skyboxBuffer: Buffer? = null): Environment

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

iblBuffer

The content of the ibl KTX File.

skyboxBuffer

The content of the skybox KTX File.


fun createKTX1Environment(iblAssetFile: String? = null, skyboxAssetFile: String? = null): Environment

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

iblAssetFile

The ibl KTX asset file location.

skyboxAssetFile

The skybox KTX asset file location.


fun createKTX1Environment(iblRawResId: Int? = null, skyboxRawResId: Int? = null): Environment

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

iblRawResId

The ibl KTX file raw resource id.

skyboxRawResId

The skybox KTX file raw resource id.


fun createKTX1Environment(iblFile: File? = null, skyboxFile: File? = null): Environment

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

iblFile

The ibl KTX File.

skyboxFile

The skybox KTX File.