DepthOfFieldBlurPostProcess example

Hey guys! Found in a doc DepthOfFieldBlurPostProcess filter but there is no one example of use it in playground :frowning: May someone have ability to make a small demo with usage example?

Have a look here:

https://doc.babylonjs.com/how_to/using_depth-of-field_and_other_lens_effects

The PG: https://www.babylonjs-playground.com/#DX6AV#4

3 Likes

thank you, but there is no word “DepthOfFieldBlurPostProcess” in code :sweat_smile:

https://doc.babylonjs.com/api/classes/babylon.depthoffieldblurpostprocess

It is not meant to be use alone as it requires a full setup of other post processes and buffers to work.

This one is actually one of the latest step before applying back on screen.

You can look into the DepthOfFiledEffect to better understand the sequence of things that are being done.

2 Likes