# Default Rendering HDR pipeline changes background layer colors

**URL:** <https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-background-layer-colors/54643>\
**Category:** Questions\
**Tags:** postprocessing\
**Created:** [November 8, 2024, 11:13am UTC](https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-background-layer-colors/54643 "2024-11-08T11:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlayd16](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vlayd16/32/32660_2.png) [@vlayd16](https://forum.babylonjs.com/u/vlayd16)\
**Post date:** [November 8, 2024, 11:13am UTC](https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-background-layer-colors/54643/1 "2024-11-08T11:13:33Z")

</div>

Hi team,

When I use hdr in the default rendering pipeline - it changes the colors of the background layer.

(try to put true as the second parameter in the default rendering pipeline)

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#08A2BS%23178)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

Is it possible to somehow keep the layer colors unaffected with the hdr=true?

Just the bloom effect looks completely different with hdr, but I don’t want to change the looks of the layer.

Thank you. And appreciate the support of the babylon community.

@Evgeni_Popov

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [November 8, 2024, 12:43pm UTC](https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-background-layer-colors/54643/2 "2024-11-08T12:43:06Z")

</div>

This PR will add support for linear colors to layers:

> <https://github.com/BabylonJS/Babylon.js/pull/15791>
>
> See https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-backgro…und-layer-colors/54643

Once merged, you can do `layer.convertToLinearSpace = true;` to get the right colors when using the default rendering pipeline in HDR mode.

---

<div class="post-metadata">

**Author:** ![vlayd16](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vlayd16/32/32660_2.png) [@vlayd16](https://forum.babylonjs.com/u/vlayd16)\
**Post date:** [November 8, 2024, 1:10pm UTC](https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-background-layer-colors/54643/3 "2024-11-08T13:10:35Z")

</div>

This looks sooo much better now.  
Thank you.

The colors are still slightly darker than without hdr.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [November 8, 2024, 2:08pm UTC](https://forum.babylonjs.com/t/default-rendering-hdr-pipeline-changes-background-layer-colors/54643/4 "2024-11-08T14:08:23Z")

</div>

In your test PG, I can’t see a difference when hdr=false and when hdr=true + layer.converToLinearSpace=true… If you are able to show the difference in a PG, I can have a look, as there shouldn’t be any difference.
