to Fix this issue I am adding GammaCorrectionShader as
this is good for loading model with texture (Left Sphere) …but when I apply texture again which result in more fade in color(Right Sphere) and also changes Background color
When doing post-processing, you normally should not alter the outputEncoding and tone mapping properties of the renderer. Color space conversion and tone mapping should be applied via additional passes like in three.js webgl - adaptive tone-mapping. Besides do not change the encoding property of render targets for EffectComposer.
As a rule of thumb, keep everything in linear space until you reach the end of your rendering pipeline. Then apply tone mapping first, then color space conversion.
Thank you for replying @Mugen87. I did structure the code the way you have mentioned.
I found out the issue was the texture I was applying, I was not setting its map.encoding=THREE.sRGBEncoding as you mention should happen at the end.
And it’s working and both look the same.
@Mugen87@SeeOn
Hey, I am also adding some post-processing effects on my Three.js Scene to add depth of feild effects,
but here I am getting the same issue. The scene or maybe model is getting darker and the whole scene is looking darker. How can I overcome this issue. The below I provided the code.