class BackgroundMaterial extends BABYLON.PushMaterial
Background material used to create an efficient environement around your scene.
constructor
Name | Type | Description | |
---|---|---|---|
name | string | The name of the material | |
scene | undefined | The scene to add the material to |
Standard reflectance value at parallel view angle.
Standard reflectance value at grazing angle.
Sets the reflection reflectance fresnel values according to the default standard
empirically know to work well :-)
Gets the image processing configuration used either in this material.
Sets the Default image processing configuration used either in the this material.
* If sets to null, the scene one is in use.
Gets wether the color curves effect is enabled.
Sets wether the color curves effect is enabled.
Gets wether the color grading effect is enabled.
Gets wether the color grading effect is enabled.
Gets wether tonemapping is enabled or not.
Sets wether tonemapping is enabled or not
The camera exposure used on this material.
This property is here and not in the camera to allow controlling exposure without full screen post process.
This corresponds to a photographic exposure.
The camera exposure used on this material.
This property is here and not in the camera to allow controlling exposure without full screen post process.
This corresponds to a photographic exposure.
Gets The camera contrast used on this material.
Sets The camera contrast used on this material.
Gets the Color Grading 2D Lookup Texture.
Sets the Color Grading 2D Lookup Texture.
The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
These are similar to controls found in many professional imaging or colorist software. The global controls are applied to the entire image. For advanced tuning, extra controls are provided to adjust the shadow, midtone and highlight areas of the image;
corresponding to low luminance, medium luminance, and high luminance areas respectively.
The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
These are similar to controls found in many professional imaging or colorist software. The global controls are applied to the entire image. For advanced tuning, extra controls are provided to adjust the shadow, midtone and highlight areas of the image;
corresponding to low luminance, medium luminance, and high luminance areas respectively.
The entire material has been created in order to prevent overdraw.
@returns false
The entire material has been created in order to prevent overdraw.
@returns true if blending is enable
Checks wether the material is ready to be rendered for a given mesh.
Name | Type | Description | |
---|---|---|---|
mesh | AbstractMesh | The mesh to render | |
subMesh | SubMesh | The submesh to check against | |
optional | useInstances | boolean | Specify wether or not the material is used with instances |
Build the uniform buffer used in the material.
Unbind the material.
Bind only the world matrix to the material.
Name | Type | Description | |
---|---|---|---|
world | Matrix | The world matrix to bind. |
Bind the material for a dedicated submeh (every used meshes will be considered opaque).
Name | Type | Description | |
---|---|---|---|
world | Matrix | The world matrix to bind. | |
mesh | Mesh | ||
subMesh | SubMesh | The submesh to bind for. |
Dispose the material.
@forceDisposeEffect Force disposal of the associated effect.
@forceDisposeTextures Force disposal of the associated textures.
Name | Type | Description | |
---|---|---|---|
optional | forceDisposeEffect | boolean | |
optional | forceDisposeTextures | boolean |
Clones the material.
@name The cloned name.
@returns The cloned material.
Name | Type | Description | |
---|---|---|---|
name | string |
Serializes the current material to its JSON representation.
@returns The JSON representation.
Gets the class name of the material
@returns "BackgroundMaterial"
Parse a JSON input to create back a background material.
@returns the instantiated BackgroundMaterial.
Name | Type | Description | |
---|---|---|---|
source | any | ||
scene | Scene | ||
rootUrl | string |