You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
either outputs the normal map value, or outputs a static value instead of n's actual value.
I'd suggest splitting this into DEBUG_NORMAL and DEBUG_NORMALMAP where the latter will output the normal map value for the fragment, and DEBUG_NORMAL will output the actual transformed normal value.
The text was updated successfully, but these errors were encountered:
The normal needs to by transformed back to tangent-space to be compliant with the normal map.
Or we render the object-space normal. Hmm, but the world-normal could be interesting as well.
I cloned the repo and made it output the world-normals, As i'm trying to debug why my IBL code seems to be producing different results, I was trying to compare all the inputs to figure out my mistake and noticed this when going over the viewer's shader code. I think having world-normals as a debug option would help anyone in a similar situation as mine that wants to make sure their model's normal's are being transformed correctly.
right now
glTF-Sample-Viewer/src/shaders/pbr.frag
Line 676 in 18a5d71
I'd suggest splitting this into DEBUG_NORMAL and DEBUG_NORMALMAP where the latter will output the normal map value for the fragment, and DEBUG_NORMAL will output the actual transformed normal value.
The text was updated successfully, but these errors were encountered: