Textures darker when enabling postprocessing during animation (after updating to r112)

In my project I’m using the EffectComposer only when I need to enable the outline effect (on object mouseover/selection).
The reason I do this is because this way I can keep the native antialias the rest of the time. Using the native antialias is important for me because I need the very thin lines not to be jagged lines.

So basically if there are objects highlighted, I use “composer.render()”, else I use “renderer.render()”.

So far so good, but since updating from r111 to r112, I’m getting darker textures when enabling the composer during the animation.

Example with r111 (click to toggle postprocessing):
https://jsfiddle.net/Eketol/ow07ukxq/

Example with r112 (same code but without the deprecated “renderer.gammaOutput = true;”):
https://jsfiddle.net/Eketol/r7w2vkhx/

Playing a bit with r112, I have noticed that if I change all textures encoding from “THREE.sRGBEncoding;” to “THREE.LinearEncoding”, the result is fine with composer, but not without it.

It seems like r111 was ignoring the encoding of all textures when the composer was enabled.

I’m not sure if r112 now has the correct behaviour or if it is a bug, but r111 was working fine for me.

Author: Fantashit

2 thoughts on “Textures darker when enabling postprocessing during animation (after updating to r112)

Comments are closed.