# Can't get my rendering on r112 to look like r111 with gammaInput/gammaOutput true

**URL:** <https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973>\
**Category:** Questions\
**Tags:** post-processing\
**Created:** [January 9, 2020, 5:06pm UTC](https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973 "2020-01-09T17:06:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBRK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sbrk/32/6415_2.png) [@SBRK](https://discourse.threejs.org/u/SBRK)\
**Post date:** [January 9, 2020, 5:06pm UTC](https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973/1 "2020-01-09T17:06:06Z")

</div>

I tried to upgrade to r112, but I had the surprise to see my rendering being much darker than with r111. I used to have `gammaInput` and `gammaOutput` set to `true`. I set `outputEncoding` to `THREE.GammaEncoding` but it doesn’t change anything. I tried to fiddle with `gammaFactor` to no avail either.

With r111 :  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/8/8496c6ab7dcdea5fa3ae29566d95d99419a1f11e.jpeg)

With r112:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/3/3a028a8c6a820bb949c806c30360ed78901511d3.jpeg)

---

<div class="post-metadata">

**Author:** ![SBRK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sbrk/32/6415_2.png) [@SBRK](https://discourse.threejs.org/u/SBRK)\
**Post date:** [January 9, 2020, 5:19pm UTC](https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973/2 "2020-01-09T17:19:56Z")

</div>

I found the problem. I’m using an EffectComposer, and I don’t have a GammaCorrection pass. Now I’m not sure why it was not a problem before and it is now…

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [January 9, 2020, 5:34pm UTC](https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973/3 "2020-01-09T17:34:26Z")

</div>

Gamma correction should not automatically happen before post-processing is performed. Hence, you usually want to apply gamma correction at the end of your pass chain. `R112` ensures that this workflow is enforced now. The old behavior was just wrong.

So using a gamma correction pass is the correct approach.

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [January 9, 2020, 7:05pm UTC](https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973/4 "2020-01-09T19:05:08Z")

</div>

Also note that `renderer.outputEncoding = THREE.sRGBEncoding` should be preferred over `GammaEncoding`. Assuming you had a gamma factor of 2.2 before, they should be extremely similar.

---

<div class="post-metadata">

**Author:** ![SBRK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sbrk/32/6415_2.png) [@SBRK](https://discourse.threejs.org/u/SBRK)\
**Post date:** [January 13, 2020, 10:00am UTC](https://discourse.threejs.org/t/cant-get-my-rendering-on-r112-to-look-like-r111-with-gammainput-gammaoutput-true/11973/5 "2020-01-13T10:00:58Z")

</div>

I’m having a different problem now. It seems as soon as I render one frame without the EffectComposer, I don’t need the GammaCorrection pass anymore. If I disable my post processing pipeline then re-enable it, it will render a more pale image.  
If I disable the GammaCorrection, it will first render too dark, then if I disable and re-enable the post processing it will render with gamma correction, even with the pass disabled.  
What’s happening here ?

EDIT: if I do render only one frame without the EffectComposer first, then use the EffectComposer, then I have just some elements that render correctly and the rest render too pale.
