Back to Filament

Builder

docs/android/dokka/filament-android/com.google.android.filament/-skybox/-builder/index.md

1.75.02.3 KB
Original Source

//filament-android/com.google.android.filament/Skybox/Builder

Builder

[main]
open class Builder

Use Builder to construct a Skybox object instance.

Constructors

Builder[main]
constructor()
Use Builder to construct a Skybox object instance.

Functions

NameSummary
build[main]
open fun build(engine: Engine): Skybox
Creates a Skybox object
color[main]
open fun color(color: Array<Float>): Skybox.Builder
open fun color(r: Float, g: Float, b: Float, a: Float): Skybox.Builder
Sets the Skybox to a constant color.
environment[main]
open fun environment(cubemap: Texture): Skybox.Builder
Set the environment map (i.e.
intensity[main]
open fun intensity(envIntensity: Float): Skybox.Builder
Sets the Skybox intensity when no IndirectLight is set on the Scene.
priority[main]
open fun priority(priority: Int): Skybox.Builder
Set the rendering priority of the Skybox.
showSun[main]
open fun showSun(show: Boolean): Skybox.Builder
Indicates whether the sun should be rendered.