📖 INDEX
LOADING ENGINE...
CubeTextureLoader
THREE.JS REFERENCE // cubetextureloader
Class for loading a CubeTexture (e.g. for skyboxes).
Syntax
const texture = new THREE.CubeTextureLoader().load(['px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg']);Examples
Example 01Basic Usage
const texture = new THREE.CubeTextureLoader().load(['px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg']);Best Practices
- Consult the official Three.js documentation for deeper understanding.
- Be mindful of performance when creating many objects or geometries.