IndirectLightState
class IndirectLightState
Hoisted, observable Image-Based Lighting (IBL) state. Pass to io.github.erkko68.filament.compose.rememberFilamentScene via indirectLightState = ....
Provide at most one of irradianceCubemap or irradianceSh. If both are set, irradianceCubemap takes precedence. reflections is independent and controls specular highlights.
val ibl = rememberIndirectLightState(
reflections = envCubemap,
irradianceSh = SphericalHarmonics(bands = 3, coefficients = shCoeffs),
intensity = 50_000f,
)
val scene = rememberFilamentScene(indirectLightState = ibl) { ... }Content copied to clipboard