I finally got this shader updated to dx9!
There's a problem with it though.

I have no idea(yet) why it does this.
It ends up looking like this:



I would be very gratefull if somebody would take a look at the effect and try to fix it.
If you think you can fix it pm me.

Would it be right changing these:

Quote:

float v0[3]; //position
float v3[3]; //normal
float v7[3]; //uv
float v8[3]; //tangent




to these:

Quote:

dcl_position v0; //position
dcl_normal v3; //normal
dcl_texcoord0 v7; //uv
dcl_texcoord1 v8; //tangent


?