I want to blur objects in my 3D scene according to the object's z coordinate (the coordinate going into the screen). Say for z=5 blur amount=0, z=10 blur=50, z=-30 blur=40. This has to happen for every object.
- How can I do this?
- Do I have to use directx 9.0c or up to implement this (because of shaders)?
Do I make use of the Z buffer? I'm a bit new to DirectX.