# HDR textures in babylon js

**URL:** <https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321>\
**Category:** Questions\
**Created:** [November 16, 2021, 1:13am UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321 "2021-11-16T01:13:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antidamage](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/antidamage/32/19857_2.png) [@Antidamage](https://forum.babylonjs.com/u/Antidamage)\
**Post date:** [November 16, 2021, 1:13am UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321/1 "2021-11-16T01:13:05Z")

</div>

Hiya! Two questions:

I’ve been googling around trying to find out if babylon has a 32-bit diffuse buffer to do some eye adaptation with.

Second question: can you display 32-bit textures? If so, what format does babylon like?

---

<div class="post-metadata">

**Author:** ![DarraghBurke](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/darraghburke/32/10621_2.png) [@DarraghBurke](https://forum.babylonjs.com/u/DarraghBurke)\
**Post date:** [November 16, 2021, 1:32am UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321/2 "2021-11-16T01:32:06Z")

</div>

Hey! Yes, Babylon supports 32 bit textures. Check out this playground: [Available Textures in the Playground - HDR viewer | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#CGA05F#416) Both the sphere’s albedo and environment texture are a 32bit float texture.

You can read more about using HDR environments here: [Using An HDR Environment For PBR | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/divingDeeper/materials/using/HDREnvironment)

I’m not sure if there’s other formats we support for 32 bit textures. @sebavan might know 🙂

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 16, 2021, 6:37pm UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321/3 "2021-11-16T18:37:07Z")

</div>

DDS would be supported too for float or half float textures.

---

<div class="post-metadata">

**Author:** ![Antidamage](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/antidamage/32/19857_2.png) [@Antidamage](https://forum.babylonjs.com/u/Antidamage)\
**Post date:** [November 16, 2021, 9:47pm UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321/4 "2021-11-16T21:47:58Z")

</div>

This doesn’t answer quite my question I’m afraid.

Does Babylon use a 32 bit diffuse buffer? Is it accessible? I need to make an eye adaptation filter I wasn’t sure if the engine was outputting full-range results at any point.

The other question was just in relation to mocking it up in the playground with a 32-bit texture to simulate an entire scene. I don’t actually want the environment just yet I don’t think.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 16, 2021, 9:50pm UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321/5 "2021-11-16T21:50:54Z")

</div>

I am not sure what you mean by 32-bit diffuse buffer

Light adaptation is supported through the hdrPipeline from @julien-moreau [Using the Standard Rendering Pipeline (depricated) | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/postProcesses/standardRenderingPipeline#setting-up-luminance-adaptation)

---

<div class="post-metadata">

**Author:** ![Antidamage](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/antidamage/32/19857_2.png) [@Antidamage](https://forum.babylonjs.com/u/Antidamage)\
**Post date:** [November 17, 2021, 12:36am UTC](https://forum.babylonjs.com/t/hdr-textures-in-babylon-js/25321/6 "2021-11-17T00:36:30Z")

</div>

That is what I was after, thank you 🙂
