Under water blur, depth of field

hi!



is there an easy way to get an underwater effect like depth of field to work? i found some code

in svn, but couldnt get it to work though.



also, it would need to be enabled when the camera gets under water.



thanks for your help :slight_smile:

Setup the DepthOfFieldFilter as a post-processing filter. And then enable it when the player is underwater.



You just have to set the distances right. This is what Mythruna does…and is why I wrote the depth of field filter in the first place. :slight_smile:

Note: there is a test for the depth of field filter that should show how to use it.