3 Easy Steps to WPF Pixel Shaders. Template Project and Five Shader Samples (Twirl UI, Light, Blobs, Grayscale and Wave reflection)
In This Tutorial:
· 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
Using Shaders in WPF: The Easy Way
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:
Wave reflection effect: http://rakeshravuri.blogspot.com/2008/07/wave-reflection-shader-effect-in-wpf.html
Hope you like it!