class 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.
constructor
Name | Type | Description | |
---|---|---|---|
options | Partial<IEnvironmentHelperOptions> | ||
scene | undefined | The scene to add the material to |
Gets the root mesh created by the helper.
Gets the skybox created by the helper.
Gets the skybox texture created by the helper.
Gets the skybox material created by the helper.
Gets the ground mesh created by the helper.
Gets the ground texture created by the helper.
Gets the ground mirror created by the helper.
Gets the ground mirror render list to helps pushing the meshes
you wish in the ground reflection.
Gets the ground material created by the helper.
Updates the background according to the new options
Name | Type | Description | |
---|---|---|---|
options | Partial<IEnvironmentHelperOptions> |
Sets the primary color of all the available elements.
Name | Type | Description | |
---|---|---|---|
color | Color3 |
Dispose all the elements created by the Helper.