Normals output by the geometry buffer are incorrect when using world-space normals, right-handed coord system and a material with a normal map.
Here’s a playground where I’m trying to show the issue.
I wonder if the best place to fix this issue is in the cotangent_frame
function (since the issue only happens with normal maps)?