Back to Three Js

UnpackDepthRGBAShader

docs/pages/module-UnpackDepthRGBAShader.html.md

latest585 B
Original Source

UnpackDepthRGBAShader

Import

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

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

Properties

.UnpackDepthRGBAShader : ShaderMaterial~Shader (inner, constant)

Depth visualization shader that shows depth values as monochrome color.

Source

examples/jsm/shaders/UnpackDepthRGBAShader.js