createHDREnvironment

fun createHDREnvironment(buffer: Buffer, indirectLightSpecularFilter: Boolean = true, indirectLightApply: IndirectLight.Builder.() -> Unit = {}, textureOptions: HDRLoader.Options = HDRLoader.Options(), createSkybox: Boolean = true): Environment?

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

buffer

The content of the HDR File.

indirectLightSpecularFilter

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

textureOptions

texture loader options

createSkybox

Disable the skybox creation if you don't need it.

See also

HDRLoader.createTexture

fun createHDREnvironment(assetFileLocation: String, indirectLightSpecularFilter: Boolean = true, textureOptions: HDRLoader.Options = HDRLoader.Options(), createSkybox: Boolean = true): Environment?

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

assetFileLocation

The HDR asset file location.

indirectLightSpecularFilter

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

textureOptions

texture loader options

createSkybox

Disable the skybox creation if you don't need it.

See also

HDRLoader.createTexture

fun createHDREnvironment(@RawRes rawResId: Int, indirectLightSpecularFilter: Boolean = true, textureOptions: HDRLoader.Options = HDRLoader.Options(), createSkybox: Boolean = true): Environment?

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

rawResId

The HDR File raw resource id.

indirectLightSpecularFilter

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

textureOptions

texture loader options

createSkybox

Disable the skybox creation if you don't need it.

See also

HDRLoader.createTexture

fun createHDREnvironment(file: File, indirectLightSpecularFilter: Boolean = true, textureOptions: HDRLoader.Options = HDRLoader.Options(), createSkybox: Boolean = true): Environment?

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

file

The HDR File.

indirectLightSpecularFilter

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

textureOptions

texture loader options

createSkybox

Disable the skybox creation if you don't need it.

See also

HDRLoader.createTexture