Texture color issue when set to linear encoding

I have issue with texture applied with 3D model.
when the texture encoding is set to linear, black color in the texture get washed out.
below is the screen shot of the issue.
when we set the encoding to rgb and gammaOutput= true, the color looks fine.
below is the screenshot of the correct color.
Is there anyway to achieve the correct color in the linear encoding?
Thank you.

You mean THREE.sRGBEncoding, right?

Do you still have gammaOutput set to true in this scenario?

When the encoding is linear, gammaOutput is set to false.

In this case, can you please demonstrate the issue with a live example? https://jsfiddle.net/f2Lommf5/

Inspecting your code will make it easier to provide more feedback.

thank you for the response. I have figured out the problem. I have given ambient light value to 5 which caused the bleaching effect in the linear encoding. Lowering the lighting value solved the issue.

1 Like