rememberIndirectLightState

fun rememberIndirectLightState(initialReflections: Texture? = null, initialIrradianceCubemap: Texture? = null, initialIrradianceSh: SphericalHarmonics? = null, initialIntensity: Float, initialRotation: Rotation? = null): IndirectLightState

Creates and remembers an IndirectLightState. The initial* values seed the state on first composition only; mutate the returned state's fields to change the IBL afterwards.

Parameters

initialReflections

Specular reflection cubemap texture.

initialIrradianceCubemap

Diffuse irradiance cubemap texture.

initialIrradianceSh

Diffuse irradiance via spherical harmonics (alternative to cubemap).

initialIntensity

IBL intensity scale.

initialRotation

Optional rotation of the environment. Null = identity.