The normals are exported from maya.
Deferred rendering issue
Members - Reputation: 226
Posted 01 April 2013 - 12:45 PM
Strange you said that the gbuffer was ok and now the normal is wrong
The normal is world space as i can see in the point light shader (you should switch to view space but that's an other topic).
Do you just dump the mesh normal, or do you use some kind of tangent frame to use tangent space normal map ? If you use a tangent frame, do you have mirror in uv and you forget to split the vertex where the uv direction change ?
Members - Reputation: 746
Posted 01 April 2013 - 01:59 PM
If you have pix, then you can output your corrupted g-buffer to the back buffer and run a single frame capture on it. Then run the "debug this pixel" feature on the black pixels by right clicking on them. That will let you step through the shader to see what is wrong.