SkyboxSource

sealed class SkyboxSource

Source for a SkyboxState: either a solid color or a cubemap texture.

Inheritors

Types

Link copied to clipboard
data class Color(val rgb: Color = io.github.erkko68.filament.compose.scene.Color(0.1f, 0.125f, 0.15f), val alpha: Float = 1.0f) : SkyboxSource

Solid-color skybox. rgb is (r, g, b); alpha controls blending with the clear color.

Link copied to clipboard
data class Cubemap(val texture: Texture) : SkyboxSource

Environment cubemap skybox. texture must be a CUBEMAP-type Texture.