I am using Unity and I can choose between two color space mode in the settings: Gamma or Linear Space.
I am trying to build a Custom Lighting Surface shader but I am facing some problems with those Color Space. Because the render is not the same depending of the Color Space.
If I render the lightDir, Normal or viewDir I can see that they are different depending of the Color Space I use.
I made some test and the result I have in Linear Space is great but how can I obtain the same result in Gamma Space ? Are there some transformations ? On what component should I apply those transformations ?
Thank you very much !