A simple shader I threw together. Basically, this shader will increase pixelation as the depth increases. It can be a great effect for a retro 8-bit graphical look, and is light on both processing and memory.
While the image doesn’t quite do the effect justice, I’m stuck using this until I find time to build a simple demo framework for my post processing effects.
I hope to eventually expand this to a depth of field kind of effect which shouldn’t be hard to implement.
The current implementation contains both the C# and the HLSL shader source files. It has been designed to run on the TrueVision 3D engine, but it should be very easy to adapt it to whatever suits your needs. And if you’re using the TV3D engine, it’ll be pretty much plug and play, except for the location of the engine components and perhaps you’d like to link to the shader source instead of the compiled ones like I do.
The classes should be pretty self explanatory, but if you have any questions, don’t hesitate to post them in the comments.
Feel free to use this shader anyway you’d like as long as you give credit.PixelDepth shader (575 downloads)