📄 drei/loaders/cube-texture-use-cube-texture

File: cube-texture-use-cube-texture.md | Updated: 11/15/2025


title: CubeTexture / useCubeTexture sourcecode: src/core/CubeTexture.tsx

A convenience hook that uses useLoader and CubeTextureLoader

const envMap = useCubeTexture(['px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png'], { path: 'cube/' })