How to change gammaoutput in new version of threejs

I used to use threejs v0.135.0, which I can change the gammaFactor like this:
this.renderer.gammaOutput = true;
this.renderer.gammaFactor = 2.2;

but right now the gamma has been removed from latest version of threejs, I have tried the gammacorrectionshader but it just doesn’t work right as former, how to get the right gamma in the latest version of threejs

You have to implement a custom solution if you want full control of the gamma factor.

WebGLRenderer.gammaFactor has been removed since almost all use cases want to output sRGB colors. For that, you need no separate gamma factor.

1 Like