Bokeh Particle Depth of Field's icon

Bokeh Particle Depth of Field v1.0 Shaders 3.0 Community

Submitted by user Bauxite; MIT; 2018-05-01

This is a shader for particles to create a bokeh-esque depth of field effect.

It works by essentially "precomputing" the various amounts of blur, instead of blurring in real time. Since the particles are radial, we can store only a single row of pixels per blur level, and the shader will distort the UV coordinates to turn it into a circle. This gives us a very compact 512x1024 texture that stores 1024 different blur levels, which can be smoothly interpolated.


View files Download Submit an issue Recent Edits