class ImageProcessingConfiguration
This groups together the common properties used for image processing either in direct forward pass
or through post processing effect depending on the use of the image processing pipeline in your scene
or not.
Color curves setup used in the effect if colorCurvesEnabled is set to true
Gets wether the color curves effect is enabled.
Sets wether the color curves effect is enabled.
Color grading LUT texture used in the effect if colorGradingEnabled is set to true
Gets wether the color grading effect is enabled.
Sets wether the color grading effect is enabled.
Gets wether the color grading effect is using a green depth for the 3d Texture.
Sets wether the color grading effect is using a green depth for the 3d Texture.
Gets wether the color grading texture contains BGR values.
Sets wether the color grading texture contains BGR values.
Gets the Exposure used in the effect.
Sets the Exposure used in the effect.
Gets wether the tone mapping effect is enabled.
Sets wether the tone mapping effect is enabled.
Gets the contrast used in the effect.
Sets the contrast used in the effect.
Vignette stretch size.
Vignette centre X Offset.
Vignette centre Y Offset.
Vignette weight or intensity of the vignette effect.
Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode)
if vignetteEnabled is set to true.
Camera field of view used by the Vignette effect.
Gets the vignette blend mode allowing different kind of effect.
Sets the vignette blend mode allowing different kind of effect.
Gets wether the vignette effect is enabled.
Sets wether the vignette effect is enabled.
Gets wether the image processing is applied through a post process or not.
Sets wether the image processing is applied through a post process or not.
Gets wether the image processing is enabled or not.
Sets wether the image processing is enabled or not.
An event triggered when the configuration changes and requires Shader to Update some parameters.
@type {BABYLON.Observable}
Used to apply the vignette as a mix with the pixel color.
Used to apply the vignette as a replacement of the pixel color.
Prepare the list of uniforms associated with the Image Processing effects.
Name | Type | Description | |
---|---|---|---|
uniforms | string[] | ||
defines | IImageProcessingConfigurationDefines | the list of defines currently in use |
Prepare the list of samplers associated with the Image Processing effects.
Name | Type | Description | |
---|---|---|---|
samplersList | string[] | ||
defines | IImageProcessingConfigurationDefines | the list of defines currently in use |
Prepare the list of defines associated to the shader.
Name | Type | Description | |
---|---|---|---|
defines | IImageProcessingConfigurationDefines | the list of defines to complete | |
optional | forPostProcess | boolean |
Returns true if all the image processing information are ready.
Binds the image processing to the shader.
Name | Type | Description | |
---|---|---|---|
effect | Effect | The effect to bind to | |
optional | aspectRatio | number |
Clones the current image processing instance.
@return The cloned image processing
Serializes the current image processing instance to a json representation.
@return a JSON representation
Parses the image processing from a json representation.
@return The parsed image processing
Name | Type | Description | |
---|---|---|---|
source | any | the JSON source to parse |