Builder

class Builder

Builder for creating Skybox instances.

The Skybox can be configured with a cubemap environment, color, intensity, and priority, along with optional sun disk rendering.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(engine: Engine): Skybox

Creates the Skybox object and associates it with the given Engine.

Link copied to clipboard
fun color(r: Float, g: Float, b: Float, a: Float): Skybox.Builder

Set the Skybox to a constant color.

Link copied to clipboard

Set the environment map (the skybox content).

Link copied to clipboard
fun intensity(envIntensity: Float): Skybox.Builder

Set the Skybox intensity when no IndirectLight is set on the Scene.

Link copied to clipboard
fun priority(priority: Int): Skybox.Builder

Set the rendering priority of the Skybox.

Link copied to clipboard

Indicates whether the sun disk should be rendered.