Releases: pmndrs/drei
Releases · pmndrs/drei
2.1.x
Export picks
import { Text } from "@react-three/drei/Text"
import { Shadow } from "@react-three/drei/Shadow"
...
Shorter loaders
import { useGLTF, useFBX, useTexture, useCubeTexture } from "@react-three/drei"
Preload and auto CDN draco
useGLTF
will automatically pull draco binaries from 'https://www.gstatic.com/draco/v1/decoders/'
if a model is compressed. It supports react-three-fibers new preload syntax.
useGLTF.preload(url)
New helpers:
- ContactShadows
- Loader
- PointerLockControls
- useDetectGPU
- useProgress
- useMatcapTexture
- useNormalTexture
- useSubdivision
- useTessellation
- useSimplification