What makes an image darker in the visualizer than in three.js editor?

Try to configure your renderer like so:

this.renderer.outputEncoding = THREE.sRGBEncoding;

and remove the configuration for gammaFactor.