📄 threejs/Addons/Shaders/module-UnpackDepthRGBAShader

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


title: module-UnpackDepthRGBAShader category: Unknown layout: docs

UnpackDepthRGBAShader

Import

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

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

Properties

.UnpackDepthRGBAShader : ShaderMaterial~Shader (inner, constant)

Unpack RGBA depth shader that shows RGBA encoded depth as monochrome color.

Source

examples/jsm/shaders/UnpackDepthRGBAShader.js