ok ty i've changed the in-/outputs but i've the same problem
my currently code
Code:
...
struct VS_OUTPUT
{
float4 oPos : POSITION;
float2 oTex0 : TEXCOORD0;
float2 oTex1 : TEXCOORD1;
};
VS_OUTPUT mainVS( float4 Pos : POSITION, float2 Tex : TEXCOORD0 )
{
VS_OUTPUT Out = (VS_OUTPUT) 0;
Out.oPos = mul(Pos, matWorldViewProj);
tps = mul(Pos, matMtl);
tps = tps * range.x;
tps = (tps * range.yyyy) + range.yyyy;
Out.oTex0.xy = tps.xy;
Out.oTex1.xy = Tex.xy;
return Out;
}
...
float4 mainPS(float4 Color: COLOR) : COLOR
{
Color = ColorMapSampler * ProjTex;
return Color;
}
...