# Apply tonemapping on a hdr texture

**URL:** <https://forums.unrealengine.com/t/apply-tonemapping-on-a-hdr-texture/396302>\
**Category:** Rendering\
**Tags:** hdr, Post-Processing, unreal-engine, Tonemapping, Shaders, CPP, question\
**Created:** [June 18, 2017, 10:15am UTC](https://forums.unrealengine.com/t/apply-tonemapping-on-a-hdr-texture/396302 "2017-06-18T10:15:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebd6ad79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebd6ad79](https://forums.unrealengine.com/u/anonymous_user_ebd6ad79)\
**Post date:** [June 18, 2017, 10:15am UTC](https://forums.unrealengine.com/t/apply-tonemapping-on-a-hdr-texture/396302/1 "2017-06-18T10:15:07Z")

</div>

Hi,

I captured the scene using a cubemap render target and converted the cubemap to a 2d panorama texture using  
a resolution I specified(2048\*1024 for example) by following some example in source code. Since the captured result is in hdr format, I have to run a tonmapping pass on it to make it LDR. How to run the tonemapping pass alone for the texture? In the source code, tonemapping is part of the post processing. Can I use the existing tonemap shader and run it with my texture as input?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebd6ad79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebd6ad79](https://forums.unrealengine.com/u/anonymous_user_ebd6ad79)\
**Post date:** [June 19, 2017, 3:02am UTC](https://forums.unrealengine.com/t/apply-tonemapping-on-a-hdr-texture/396302/2 "2017-06-19T03:02:13Z")

</div>

Any suggestion or help is much appreciated.

---

<div class="post-metadata">

**Author:** ![Yashinski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yashinski](https://forums.unrealengine.com/u/Yashinski)\
**Post date:** [October 16, 2019, 11:17am UTC](https://forums.unrealengine.com/t/apply-tonemapping-on-a-hdr-texture/396302/3 "2019-10-16T11:17:22Z")

</div>

Have you found a solution to this issue?
