# How can I swap HDR images dynamically in a scene without reloading?

**URL:** <https://discourse.threejs.org/t/how-can-i-swap-hdr-images-dynamically-in-a-scene-without-reloading/33759>\
**Category:** Questions\
**Tags:** hdr\
**Created:** [January 17, 2022, 9:24pm UTC](https://discourse.threejs.org/t/how-can-i-swap-hdr-images-dynamically-in-a-scene-without-reloading/33759 "2022-01-17T21:24:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeJayEss](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MeJayEss](https://discourse.threejs.org/u/MeJayEss)\
**Post date:** [January 17, 2022, 9:24pm UTC](https://discourse.threejs.org/t/how-can-i-swap-hdr-images-dynamically-in-a-scene-without-reloading/33759/1 "2022-01-17T21:24:23Z")

</div>

I have a scene that uses an HDRI image. I want to let the user switch between HDR images from within the scene dynamically. How can I do this and what do I need to do to release memory/resources properly so I don’t create a memory leak when I swap HDR images?
