📄 threejs/Addons/Shaders/module-BokehShader

File: module-BokehShader.md | Updated: 11/15/2025


title: module-BokehShader category: Unknown layout: docs

BokehShader

Import

BokehShader is an addon, and must be imported explicitly, see Installation#Addons.

import { BokehShader } from 'three/addons/shaders/BokehShader.js';

Properties

.BokehShader : ShaderMaterial~Shader (inner, constant)

Depth-of-field shader with bokeh ported from GLSL shader by Martins Upitis.

Source

examples/jsm/shaders/BokehShader.js