Is the content in Source/Shaders/Huiltin/Functions/gammaCorrect.glsl and Source/Shaders/Huiltin/Functions/invertGamma.glsl reversed? gammaCorrect should be ‘color=pow (color, vec3 (1.0/2.2))’, invertGamma should be ‘color=pow (color, vec3 (2.2))’?
Hi @newpeople123, are you seeing some wrong rendering results that would indicate these are reversed?
Without getting into the definitions of “correct” and “invert”, if I just look at the comments in the code:
* Converts a color from RGB space to linear space.
then the functions seem to match most common references. For example, see sRGB - Wikipedia. Let me know if you have a more detailed reference.