The shader code I was using in this example is this one:
Code:
// Basic Dot3 Bumpmapping.
//
// Calulates diffuse lighting from Sun and Level Light
//
// Needs: A6.31 Comm+ DX9c vertexshader.1.1
//
// Todo: Lighting improvements
//
// Eric Hendrickson-Lambert (Steempipe)
//
// 3/28/05: Made changes for DX9 A6
So it may be a little out of date...
I tried another shader previously to this older one,
Code:
/**************************************************************/
// HLSL NormalMapping Shader
// -------------------------
// By: Daniel "Rhuarc" Niezgocki
// Requires: []VS 1.1
// []PS 1.4
// Skin1: Texture
// Skin2: Normal Map
//
// Usage: Free to use, credit is nice, but not required.
/**************************************************************/
..but despite my Radeon Pro 9800 being PS 2.0 (I think thats correct
) I got a completely black model on my screen. Maybe you could help me out here, and point me in the right direction? Would be much appreciated.
Now that I have clarified the method it would be nice to put it into practise