rememberSkyboxState
fun rememberSkyboxState(initialSource: SkyboxSource? = null, initialShowSun: Boolean = false, initialIntensity: Float = 1.0f, initialPriority: Int = 0): SkyboxState
Creates and remembers a SkyboxState. The initial* values seed the state on first composition only; mutate the returned state's fields to change the skybox afterwards.
Parameters
initialSource
Color or cubemap skybox. Null = no skybox.
initialShowSun
Render a sun disk (only meaningful with a directional SUN light).
initialIntensity
Environment intensity applied on top of the skybox.
initialPriority
Render priority; lower values render first.