Consider carefully whether doing this is actually a good idea. In most games DOF is extremely annoying and distracting; it's the kind of feature AAA developers throw in to justify their budget and keep the suits happy (or maybe to improve static screenshots), not because it plays well. It's also rather difficult to integrate properly (as, ironically, every example of "plug and play" DOF demonstrates perfectly).
DOF is supposed (when it's not being done for "because we can" reasons) to simulate the direction of your attention. Since it only affects areas of the screen you aren't supposed to be looking at anyway, you should question why the design of your game is drawing attention to the wrong place, rather than simply black out the things you don't want the player looking at.
|