labris
1
Hello friends,
Here is the pipeline template - https://playground.babylonjs.com/#ECI2Q0#5 from the Documentation.
For import I use
import { DefaultRenderingPipeline } from "@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline"
import { ColorCurves } from "@babylonjs/core/Materials/colorCurves"
import { ColorGradingTexture } from "@babylonjs/core/Materials/"
The question is: how to import colorGradingWithGreenDepth
to make this line of code to work?
defaultPipeline.imageProcessing.colorGradingWithGreenDepth = false;
What do you have in the defaultPipeline.imageProcessing value?
labris
3
Well, I have a lot of something there
Yes so this makes sense the imageProcessingPostProcess has no property named colorGradingWithGreenDepth
This is a property of the image processing configuration class:
defaultPipeline.imageProcessing.imageProcessingConfiguration.colorGradingWithGreenDepth
should work then
1 Like
labris
5
Do we need to change the code here and in the PG example?
2 Likes
Yes most definitely (cc @PirateJC )
@labris feel free to do a PR with any changes necessary for the docs! Thanks so much for flagging this!
1 Like