Easy way to test whether you are loading normals correctly?

Started by
1 comment, last by _Unicron_ 9 years, 6 months ago

Hello,

I think this might be a simple question but I thought I would ask experts in the forums.

Is there a way to test whether you are loading normal correctly?

Like a simple vertex/fragment shader code test to ensure that the normal for the vertex are correct, etc.?

Thank you for your time.

Advertisement

Just render the normals as encoded colors eg.

color.rgb = normal.xyz*0.5+0.5

Color works well as Ashaman states. Alternatively you could draw a small line segment for each of normal on a mesh.

This topic is closed to new replies.

Advertisement