I have not had time to play with your shader. I have an offset(parallax)bumpmapping effect that is working for the most part, but needs tweaks.

One thing, and the only thing, that jumps out at me is this:

In the Vertexshader inputs,
Quote:

struct VS_INPUT_STRUCT
{
float4 position : POSITION;
float3 tangent : TANGENT;
float3 normal : NORMAL;
float3 texcoord0 : TEXCOORD0;
};





We are given the tangent in TEXCOORD2 (consult the TXT file that comes with our updates). So I would probably start by making it compliant that way:

struct VS_INPUT_STRUCT
{
float4 position : POSITION;
float3 normal : NORMAL;
float3 texcoord0 : TEXCOORD0;
float3 tangent : TEXCOORD2;
};

I know, I know... sometimes it does not seem to matter what FVF type of stuff we shove in. But, sometime's it does.

Then maybe look at lighting things and the direction, maybe negate something.

Hope something helps or produces other ideas!

Eric