📄 threejs/Addons/Shaders/module-DOFMipMapShader

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


title: module-DOFMipMapShader category: Unknown layout: docs

DOFMipMapShader

Import

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

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

Properties

.DOFMipMapShader : ShaderMaterial~Shader (inner, constant)

Depth-of-field shader using mipmaps from Matt Handley @applmak.

Requires power-of-2 sized render target with enabled mipmaps.

Source

examples/jsm/shaders/DOFMipMapShader.js