EnvironmentHelper

The Environment helper class can be used to add a fully featuread none expensive background to your scene. It includes by default a skybox and a ground relying on the BackgroundMaterial. It also helps with the default setup of your imageProcessing configuration.

Hierarchy

  • EnvironmentHelper

Index

Constructors

constructor

Properties

ground

ground: Nullable<Mesh>

Gets the ground mesh created by the helper.

groundMaterial

groundMaterial: Nullable<BackgroundMaterial>

Gets the ground material created by the helper.

groundMirror

groundMirror: Nullable<MirrorTexture>

Gets the ground mirror created by the helper.

groundMirrorRenderList

groundMirrorRenderList: Nullable<AbstractMesh[]>

Gets the ground mirror render list to helps pushing the meshes you wish in the ground reflection.

groundTexture

groundTexture: Nullable<BaseTexture>

Gets the ground texture created by the helper.

onErrorObservable

onErrorObservable: Observable<object>

This observable will be notified with any error during the creation of the environment, mainly texture creation errors.

rootMesh

rootMesh: Mesh

Gets the root mesh created by the helper.

skybox

skybox: Nullable<Mesh>

Gets the skybox created by the helper.

skyboxMaterial

skyboxMaterial: Nullable<BackgroundMaterial>

Gets the skybox material created by the helper.

skyboxTexture

skyboxTexture: Nullable<BaseTexture>

Gets the skybox texture created by the helper.

Methods

dispose

  • dispose(): void
  • Dispose all the elements created by the Helper.

    Returns void

setMainColor

  • setMainColor(color: Color3): void
  • Sets the primary color of all the available elements.

    Parameters

    • color: Color3

      the main color to affect to the ground and the background

    Returns void

updateOptions

Generated using TypeDoc