Here is my vertex shader for the screen quad:
Code: Select all
struct VS_OUTPUT
{
float4 position : POSITION0;
float2 texCoord : TEXCOORD0;
};
VS_OUTPUT vertexMain( float4 position : POSITION0,
float2 texCoord: TEXCOORD0 )
{
VS_OUTPUT output;
output.position = float4(position.x, position.y, 0, 1 );
output.texCoord = texCoord;
return output;
}
Code: Select all
sampler2D sampler0 : register(s0);
float4 pixelMain(float2 TexCoords: TEXCOORD0): COLOR
{
float4 color = tex2D( sampler0, TexCoords );
return color;
}
I would be really thankful if someone sees some noob mistake in my shaders