File: module-BokehShader2.md | Updated: 11/15/2025
BokehShader2 is an addon, and must be imported explicitly, see Installation#Addons.
import { BokehShader, BokehDepthShader } from 'three/addons/shaders/BokehShader2.js';
Depth-of-field shader with bokeh ported from GLSL shader by Martins Upitis.
Requires #define RINGS and SAMPLES integers