📄 drei/loaders/texture-use-texture

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


title: Texture / useTexture sourcecode: src/core/Texture.tsx

A convenience hook that uses useLoader and TextureLoader

const texture = useTexture(url)
const [texture1, texture2] = useTexture([texture1, texture2])

You can also use key: url objects:

const props = useTexture({
  metalnessMap: url1,
  map: url2,
})
return <meshStandardMaterial {...props} />