Hey Folks!
We've been seeing some washed out materials lately in the following scenario:
The result is a faded look compared to the expected (in pg as a StandardMaterial) - it seems like the PBR is in linear mode rather than SRGB.
Repro on this playground:
https://www.babylonjs-playground.com/#2BGTDG#3
Yup this is expected for the PBR material. All the scalar input for color are expected to be in linear space (similar to gltf data).
You can use the color utils toGammaSpace or toLinearSpace to convert from one space to the other.
Did you experience a recent change on this ? as it should have always been the case ?
Adding the PG using the utils:
https://www.babylonjs-playground.com/#2BGTDG#4
I am closing for now as it is not a bug, but feel free to reopen if something changes as I would like to track it down.
Not a recent change, just a recent feature. Using this sort of shading to tint things dynamically. Didn't realize we should be using the .toLinearSpace helper. Thanks!
Most helpful comment
Not a recent change, just a recent feature. Using this sort of shading to tint things dynamically. Didn't realize we should be using the
.toLinearSpacehelper. Thanks!