📖 INDEX
LOADING ENGINE...
DepthTexture
THREE.JS REFERENCE // depthtexture
This class can be used to automatically save the depth information of a rendering into a texture.
Syntax
const texture = new THREE.DepthTexture(width, height);Examples
Example 01Basic Usage
const texture = new THREE.DepthTexture(width, height);Best Practices
- Consult the official Three.js documentation for deeper understanding.
- Be mindful of performance when creating many objects or geometries.