Tangent normal mapping fixed

Blitz3D Forums/Blitz3D Programming/Tangent normal mapping fixed

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I got it working. This updates vertex colors based on a point or directional light. Unlike every other normal mapping demo I have seen on walls, this makes the light appear correct on all surfaces, without needing a special normal map for each angle.

Have fun:
http://www.leadwerks.com/post/DOOM3BB.zip