A growing collection of useful helpers and fully functional, ready-made abstractions for @react-three/fiber .
If you make a component that is generic enough to be useful to others, think about CONTRIBUTING !
npm install @react-three/drei
[!IMPORTANT]
this package is using the stand-alone three-stdlib
instead of three/examples/jsm
.
Basic usageimport { PerspectiveCamera, PositionalAudio, ... } from '@react-three/drei' React-nativeimport { PerspectiveCamera, PositionalAudio, ... } from '@react-three/drei/native' The native
route of the library does not export Html
or Loader
. The default export of the library is web
which does export Html
and Loader
.
Documentationhttps://pmndrs.github.io/drei
[!WARNING]
Below is an archive of the anchors links with their new respective locations to the documentation website.
Do not update the links below, they are for reference only.
Cameras PerspectiveCameraDocumentation has moved here
OrthographicCameraDocumentation has moved here
CubeCameraDocumentation has moved here
Controls CameraControlsDocumentation has moved here
Documentation has moved here
PresentationControlsDocumentation has moved here
KeyboardControlsDocumentation has moved here
FaceControlsDocumentation has moved here
MotionPathControlsDocumentation has moved here
Gizmos GizmoHelperDocumentation has moved here
PivotControlsDocumentation has moved here
DragControlsDocumentation has moved here
Documentation has moved here
GridDocumentation has moved here
Helper / useHelperDocumentation has moved here
Shapes Plane, Box, Sphere, Circle, Cone, Cylinder, Tube, Torus, TorusKnot, Ring, Tetrahedron, Polyhedron, Icosahedron, Octahedron, Dodecahedron, Extrude, Lathe, ShapeDocumentation has moved here
RoundedBoxDocumentation has moved here
ScreenQuadDocumentation has moved here
LineDocumentation has moved here
QuadraticBezierLineDocumentation has moved here
CubicBezierLineDocumentation has moved here
CatmullRomLineDocumentation has moved here
FacemeshDocumentation has moved here
Abstractions ImageDocumentation has moved here
TextDocumentation has moved here
Text3DDocumentation has moved here
EffectsDocumentation has moved here
PositionalAudioDocumentation has moved here
BillboardDocumentation has moved here
ScreenSpaceDocumentation has moved here
ScreenSizerDocumentation has moved here
GradientTextureDocumentation has moved here
EdgesDocumentation has moved here
OutlinesDocumentation has moved here
TrailDocumentation has moved here
SamplerDocumentation has moved here
ComputedAttributeDocumentation has moved here
CloneDocumentation has moved here
useAnimationsDocumentation has moved here
MarchingCubesDocumentation has moved here
DecalDocumentation has moved here
SvgDocumentation has moved here
AsciiRendererDocumentation has moved here
SplatDocumentation has moved here
Shaders MeshReflectorMaterialDocumentation has moved here
MeshWobbleMaterialDocumentation has moved here
MeshDistortMaterialDocumentation has moved here
MeshRefractionMaterialDocumentation has moved here
MeshTransmissionMaterialDocumentation has moved here
MeshDiscardMaterialDocumentation has moved here
PointMaterialDocumentation has moved here
SoftShadowsDocumentation has moved here
shaderMaterialDocumentation has moved here
Modifiers CurveModifierDocumentation has moved here
Misc useContextBridgeDocumentation has moved here
ExampleDocumentation has moved here
HtmlDocumentation has moved here
CycleRaycastDocumentation has moved here
SelectDocumentation has moved here
Sprite AnimatorDocumentation has moved here
StatsDocumentation has moved here
StatsGlDocumentation has moved here
WireframeDocumentation has moved here
useDepthBufferDocumentation has moved here
Fbo / useFBODocumentation has moved here
useCameraDocumentation has moved here
CubeCamera / useCubeCameraDocumentation has moved here
DetectGPU / useDetectGPUDocumentation has moved here
useAspectDocumentation has moved here
useCursorDocumentation has moved here
useIntersectDocumentation has moved here
useBoxProjectedEnvDocumentation has moved here
Trail / useTrailDocumentation has moved here
useSurfaceSamplerDocumentation has moved here
FaceLandmarkerDocumentation has moved here
Loading LoaderDocumentation has moved here
Progress / useProgressDocumentation has moved here
Gltf / useGLTFDocumentation has moved here
Fbx / useFBXDocumentation has moved here
Texture / useTextureDocumentation has moved here
Ktx2 / useKTX2Documentation has moved here
CubeTexture / useCubeTextureDocumentation has moved here
VideoTexture / useVideoTextureDocumentation has moved here
TrailTexture / useTrailTextureDocumentation has moved here
useFontDocumentation has moved here
useSpriteLoaderDocumentation has moved here
InstancesDocumentation has moved here
MergedDocumentation has moved here
PointsDocumentation has moved here
SegmentsDocumentation has moved here
DetailedDocumentation has moved here
PreloadDocumentation has moved here
BakeShadowsDocumentation has moved here
meshBoundsDocumentation has moved here
AdaptiveDprDocumentation has moved here
AdaptiveEventsDocumentation has moved here
BvhDocumentation has moved here
Documentation has moved here
Portals HudDocumentation has moved here
ViewDocumentation has moved here
RenderTextureDocumentation has moved here
RenderCubeTextureDocumentation has moved here
FisheyeDocumentation has moved here
MaskDocumentation has moved here
MeshPortalMaterialDocumentation has moved here
Staging CenterDocumentation has moved here
ResizeDocumentation has moved here
BBAnchorDocumentation has moved here
BoundsDocumentation has moved here
CameraShakeDocumentation has moved here
FloatDocumentation has moved here
StageDocumentation has moved here
BackdropDocumentation has moved here
ShadowDocumentation has moved here
CausticsDocumentation has moved here
Documentation has moved here
RandomizedLightDocumentation has moved here
AccumulativeShadowsDocumentation has moved here
SpotLightDocumentation has moved here
SpotLightShadowDocumentation has moved here
EnvironmentDocumentation has moved here
Documentation has moved here
SkyDocumentation has moved here
StarsDocumentation has moved here
SparklesDocumentation has moved here
CloudDocumentation has moved here
useEnvironmentDocumentation has moved here
MatcapTexture / useMatcapTextureDocumentation has moved here
NormalTexture / useNormalTextureDocumentation has moved here
ShadowAlphaDocumentation has moved here