# sRGBEncoding with post-processing

**URL:** <https://discourse.threejs.org/t/srgbencoding-with-post-processing/12582>\
**Category:** Questions\
**Tags:** post-processing\
**Created:** [February 6, 2020, 10:38pm UTC](https://discourse.threejs.org/t/srgbencoding-with-post-processing/12582 "2020-02-06T22:38:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [February 7, 2020, 4:06am UTC](https://discourse.threejs.org/t/srgbencoding-with-post-processing/12582/5 "2020-02-07T04:06:27Z")

</div>

I made a pen that demonstrates the correct settings for rendering with either `EffectComposer` + `GammaCorrectionPass`, or plain `WebGLRenderer`:

https://codepen.io/looeee/embed/preview/xxGxBRm?height=300&slug-hash=xxGxBRm&default-tabs=js,result&host=https://codepen.io

If you have the settings right, then the sphere will blend perfectly into the packground AND the color will exactly match CSS #4285f4

It doesn’t cover textures or fog, but shows correct settings for the `renderer`, `material.color` and `scene.background`.

---

_[View the full topic](https://discourse.threejs.org/t/srgbencoding-with-post-processing/12582)._
