Skip to content

Instantly share code, notes, and snippets.

@tyhenry
tyhenry / dof.bokeh.2.4.frag
Created September 25, 2020 21:00
depth of field bokeh 2.4 shader by Martins Upitis
#version 330
/*
DoF with bokeh GLSL shader v2.4
by Martins Upitis (martinsh) (devlog-martinsh.blogspot.com)
----------------------
The shader is Blender Game Engine ready, but it should be quite simple to adapt for your engine.
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
So you are free to share, modify and adapt it for your needs, and even use it for commercial use.