Back to Filament

environment

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

1.75.0886 B
Original Source

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

environment

[main]
open fun environment(cubemap: Texture): Skybox.Builder

Set the environment map (i.e. the skybox content).

The Skybox is rendered as though it were an infinitely large cube with the camera inside it. This means that the cubemap which is mapped onto the cube's exterior will appear mirrored. This follows the OpenGL conventions.

The cmgen tool generates reflection maps by default which are therefore ideal to use as skyboxes.

Return

This Builder, for chaining calls.

Parameters

main

cubemapA cubemap Texture

See also

Texture