Skip to content

Releases: pmndrs/drei

v2.2.18

18 Jan 09:31
Compare
Choose a tag to compare

Added

  • <Center /> component with story

v2.2.17

16 Jan 15:47
Compare
Choose a tag to compare
2.2.17

v2.2.16

15 Jan 10:09
Compare
Choose a tag to compare

Overview

We've moved storybook stories to TS, this is a great step in drei as we can now safely spot our TS errors earlier than in release.

Added

#220

Fixed

#176
#219
#226
#230

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)