· Template project and simple 3-step instructions to kick start WPF pixel shaders
· Introduction to Pixel Shaders in WPF
· Source Code for 3 pixel shaders
· Links to 2 pixel shader sources on the web
Pixel shaders are a great way to enhance your WPF program in many ways. I show just few of the possibilities here and provide a good framework to start developing your own effects.
3 steps to kick start you with WPF pixel shaders:
1. Install DirectX SDK
2. Download and open the Shader template project from Nikola’s site: http://www.nokola.com/sources/ShaderEffectTemplate.zip
3. Start coding your effect in MyEffect.fx
Next: Read the Beginner’s Presentation to WPF Pixel Shaders
Prerequisites: DirectX SDK from Microsoft.com
View the Beginner’s Presentation to WPF Pixel Shaders here: http://blogs.msdn.com/nikola/attachment/8924657.ashx
Download the template project here: http://www.nokola.com/sources/ShaderEffectTemplate.zip
Download these Pixel Shader samples: Twirl UI, Blobs and Lights: http://www.nokola.com/sources/ShaderEffects.zip Note that you have to enable each effect by itself for best view J Just comment out the other 2 effects when playing at the sample.
Check out these 2 cool pixel shader tutorials:
Grayscale effect: http://bursjootech.blogspot.com/2008/06/grayscale-effect-pixel-shader-effect-in.html
Wave reflection effect: http://rakeshravuri.blogspot.com/2008/07/wave-reflection-shader-effect-in-wpf.html
Hope you like it!