Capítulo 234 de 859
A helper that can be used to display any type of texture for debugging purposes. Depending on the type of texture (2D, 3D, Array), the helper becomes a plane or box mesh.
This helper can only be used with WebGLRenderer. When using WebGPURenderer, import from TextureHelperGPU.js.
import { TextureHelper } from 'three/addons/helpers/TextureHelper.js';
Constructor
| Signature |
|---|
new TextureHelper( texture : Texture, width : number, height : number, depth : number ) |
Properties
| Property | Description |
|---|---|
.texture : Texture | The texture to visualize. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |