White balance for ImageProcessingPostProcess

I’d like to add a basic white balance effect to the image post processing, which basically takes a Color3 and uses this as a scalar to the color.

There could be options to choose which color space to perform the white balancing in, but staying with (linear) RGB would be a fine first step IMO. It could be extended in the future.

I have a branch that adds this here: GitHub - kircher1/Babylon.js at users/kircher1/white-balance

Using different white balances in the playground:
| image |

| — | ---- |
| image | image |

1 Like

Interesting! @sebavan what do you think? :smiley:

I love it, I guess we might not even need the unstable luminance version as it seems to be equivalent to our exposure ?