MATERIAL* test_mat={
effect = "
Texture TargetMap;
sampler2D smpSource = sampler_state{texture=<TargetMap>;};
float4 goldshader(float2 Tex: TEXCOORD0): COLOR0{
float4 Color=tex2D(smpSource,Tex.xy);
Color-=tex2D(smpSource,Tex.xy-0.001)*2.0f;
Color+=tex2D(smpSource,Tex.xy+0.001)*2.0f;
Color.rgb=(Color.r+Color.g+Color.b)/3.0f;
Color.rgb=Color.rgb*3.0f;
return Color;
}
technique shader{
pass p1{
PixelShader = compile ps_2_0 goldshader();
}
}
technique fallback { pass one { } }
";
}