Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Another very simple effect is blurring the image. To do this, you grab the color of each pixel in the texture and add to it the colors from the pixels adjacent to the target pixel. To try this, replace the pixel shader in your game with the following code:
float4 PixelShader(VertexOut input) : COLOR0
{
float4 Color;
Color = tex2D(ColoredTextureSampler, input.textureCoordinates.xy);
Color += tex2D(ColoredTextureSampler, input.textureCoordinates.xy + (0.01));
Color += tex2D(ColoredTextureSampler, input.textureCoordinates.xy − (0.01));
Color = Color / 3;
return Color;
}