1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| struct PS_Input {
float2 Tex : TEXCOORD0;
float2 ProjPos : VPOS;
};
float4 PostProcessPSTVization( PS_Input InputParam ) : COLOR0
{
float4 Color;
Color = tex2D( g_samSrcColor, InputParam.Tex.xy);
float IsPair = fmod(InputParam.ProjPos.y,2);
Color.r = Color.r * IsPair;
Color.g = Color.g * IsPair;
Color.b = Color.b * IsPair;
return Color;
}
//-------------------------------------
// Technique: PostProcessTVization
technique PostProcessTVization
{
pass p0
{
VertexShader = null;
PixelShader = compile ps_3_0 PostProcessPSTVization();
ZEnable = false;
}
} |
Partager