Original Post
Hello,
I''ve been trying to do dot3 bump mapping recently and I''ve come across a block in the process.
I''m using GL_ARB_vertex_program to transform the light vector into texture space using the normal, tangent and binormal vectors that i have calculated (and are correct, ive got my engine to draw them). I think the problem lies in the vertex program transforming my light vector into tangent space. I am using cube map normalisation so I am after a 3 Dimensional vector to pass into the 1st texture unit.
Would anybody be able to show me an example vertex program which does this please? I''ve been trying for days now, searching NVIDIAs site and all over the internet, but its just not getting me anywhere. I think the main part of the problem is not quite understanding how to get to object space and what it is.
Thank you for your time.
- James