Camera too bright like high ISO when using Linear Color Space

0 votes
asked Sep 13 by juvelez (910 points)
The camera light is normal when using Gamma Color Space, but using Linear Color Space cause the camera seem brighter solarized and noisy like a camera with a high ISO level, is there a way to modify the camera shader to reduce this effect?

1 Answer

0 votes
answered Sep 15 by kenn (7,570 points)

One quick way is to add this conversion to the bottom of all CameraImage_* fragment shaders (when the original code says return xxx, change it to fixed4 col = xxx, then add these lines, and return col).

#ifndef UNITY_COLORSPACE_GAMMA
    col.xyz = GammaToLinearSpace(col.xyz);
#endif
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...