rememberSkyboxState

fun rememberSkyboxState(source: SkyboxSource? = null, showSun: Boolean = false, intensity: Float = 1.0f, priority: Int = 0): SkyboxState

Creates and remembers a SkyboxState.

Parameters

source

Color or cubemap skybox. Null = no skybox.

showSun

Render a sun disk (only meaningful with a directional SUN light).

intensity

Environment intensity applied on top of the skybox.

priority

Render priority; lower values render first.