I am experimenting with OpenGL and PBR.
I am now encountering a strange issue. Long story short I am having this result
Wrong:
wrong image
Expected result
expected result
Can you give me some hints to find the issue? I am thinking about linear vs sRGB color spaces, can this cause this kind of issues? Something wrong with IBL?
I tried to debug this issue and tried to correct the color space in the shader but I am still not able to get the correct result.
Also I debugged the metallic and roughness textures (output from fragment shader) and both are correct.
Another strange thing is that the base color was originally wrong, then I converted from sRGB to linear in the fragment shader and now I am getting closer values to the expected one although they are not exactly the same as the reference
Giovanni Cristiano is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.