SkyboxState
class SkyboxState
Hoisted, observable skybox state. Pass to io.github.erkko68.filament.compose.rememberFilamentScene via skyboxState = .... A null source removes the skybox entirely.
val sky = rememberSkyboxState(source = SkyboxSource.Color(Color(0.05f, 0.05f, 0.08f)))
val scene = rememberFilamentScene(skyboxState = sky) { ... }
// Toggle at runtime
sky.source = SkyboxSource.Cubemap(envTexture)
sky.intensity = 30_000fContent copied to clipboard