Skip to content

Releases: pmndrs/drei

2.1.x

04 Oct 22:00
Compare
Choose a tag to compare

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

v1.4.0

06 Sep 18:16
Compare
Choose a tag to compare

⭐ New

  • geometry modifier hooks

    • useSubdivision()
    • useTessellation()
    • useSimplification()
  • A new category of utilities that can help prototyping:

    • <Loader/>

v1.3.2

02 Sep 19:57
Compare
Choose a tag to compare

⭐ New

  • useProgress

v1.3.1

27 Aug 11:00
Compare
Choose a tag to compare

Changes

  • Abstraction/Line
    • Renamed linewidth prop to lineWidth (#97)
  • Text
    • Fixes Text not working with invalidateFrameLoop (#100)