IndirectLight
Image-based lighting for the scene: reflections drives specular highlights and irradiance the diffuse ambient light. Renders nothing while both are null (still loading). intensity and rotation are set on the live light, so animating them is cheap.
For a KTX or HDR file, Environment with rememberKtxEnvironment/rememberHdrEnvironment does this in one call; use this for textures or harmonics of your own.
rememberFilamentScene {
IndirectLight(reflections = envCubemap, irradiance = SphericalHarmonics(bands = 3, coefficients = sh))
}With no environment of your own yet, IndirectLight(irradiance = SphericalHarmonics.NeutralStudio) lights the scene evenly from a built-in neutral studio.
A scene has one indirect light: declare one IndirectLight (or one Environment) per scene.
Parameters
Prefiltered reflection cubemap, or null for none.
Diffuse irradiance as spherical harmonics. Null lets Filament approximate it from reflections.
Environment intensity in lux.
Rotation of the environment around the scene.
IndirectLight with the diffuse irradiance as a cubemap instead of spherical harmonics.