Anyone have some good code that actually works for a 3D object using normal mapping? I have code working for a single face as long as it is facing one direction. All other faces are normal mapped with the same normal map but if a face is not in the correct direction is is still looked at as if it is.
Example: My one face works perfectly and the lighting on the normal map works great, but a face that is facing the opposite direction will be all black if the light is directly in front of it.
Hope somebody understands what I am trying to say. I just need help... Any example code with a 3d model normal mapped woould help a lot.
Example: My one face works perfectly and the lighting on the normal map works great, but a face that is facing the opposite direction will be all black if the light is directly in front of it.
Hope somebody understands what I am trying to say. I just need help... Any example code with a 3d model normal mapped woould help a lot.