The colors in my THREE.JS project are messed up after the update

The colors in my project (which use fbx models) are messed up, after updating to version >=136. The colors are much darker now. The migration guide stated:

WebGLRenderer.gammaFactor and THREE.GammaEncoding have been removed.
Please use post processing (a gamma correction pass) if you need a
special gamma color space.

But I have no idea on how to “use post processing (a gamma correction pass)”. I would be very thankful if someone give me a simple example on how to fix it.

You almost certainly don’t need a custom gamma space. In general it’s recommended to do…

renderer.outputEncoding = THREE.sRGBEncoding;

… unless you are using postprocessing already. There’s a lot more detail in the color management documentation. If this isn’t working perhaps you can share a demo or code?


Thanks, this works.