HDR for custom post process render pipeline

Hello everyone!

I am trying to use HDR inside a custom post process render pipeline but I have a small issue. I don’t know how to tell the post processes not to clamp the output values to 1 like here:

The left side of the screen is multiplied by 2 (hence exceed 1) and then is divided by 2 in the second pass. With HDR, we would get back the initial image, but this is not the case here because the output of the first pass is clamped to 1.

Does anyone know how to do that?

You need the texture to be float or half float https://playground.babylonjs.com/#LRFB2D#562

1 Like

Awesome :ok_hand: thanks a lot!