loadHDREnvironment

suspend fun loadHDREnvironment(url: 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

url

The HDR File url.

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