Implementing HDR light adaptation
In the previous recipe, Implementing HDR rendering and tone mapping, we covered the foundational steps for building a basic HDR tone mapping pipeline. While that was a solid starting point, there is room to make it more realistic by simulating how human vision adapts to changes in brightness. In this recipe, we will extend our HDR post-processing pipeline to incorporate a dynamic light adaptation process, mimicking the way our eyes adjust to both intense light and darker environments over time.
Getting ready
This recipe builds directly on the foundation laid in the previous recipe, Implementing HDR rendering and tone mapping. It is strongly recommended to review that recipe first to ensure you have a solid understanding of our HDR rendering pipeline.
The source code for this recipe is located in Chapter10/06_HDR_Adaptation
.
How to do it...
The light adaptation process operates by gradually transitioning between luminance levels...