This represents a color grading texture. This acts as a lookup table LUT, useful during post process
It can help converting any input color in a desired output one. This can then be used to create effects
from sepia, black and white to sixties or futuristic rendering...
The only supported format is currently 3dl.
More information on LUT: https://en.wikipedia.org/wiki/3D_lookup_table/
Instantiates a ColorGradingTexture from the following parameters.
* @param url The location of the color gradind data (currently only supporting 3dl)
|url||string||The location of the color gradind data (currently only supporting 3dl) The location of the color gradind data (currently only supporting 3dl)|
|scene||Scene||The scene the texture will be used in The scene to load the texture in|
The texture URL.
Returns the texture matrix used in most of the material.
This is not used in color grading but keep for troubleshooting purpose (easily swap diffuse by colorgrading to look in).
Clones the color gradind texture.
Called during delayed load for textures.
Binds the color grading to the shader.
|colorGrading||BaseTexture||The texture to bind|
|effect||Effect||The effect to bind to|
Prepare the list of uniforms associated with the ColorGrading effects.
|uniformsList||string||The list of uniforms used in the effect|
|samplersList||string||The list of samplers used in the effect|
Parses a color grading texture serialized by Babylon.
@return A color gradind texture
|parsedTexture||any||The texture information being parsedTexture The texture information being parsedTexture|
|scene||Scene||The scene to load the texture in The scene to load the texture in|
|rootUrl||string||The root url of the data assets to load The root url of the data assets to load|
Serializes the LUT texture to json format.