@react-three/drei 10.7.7 → 10.8.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/README.md +49 -758
  2. package/_chunks/hls.mjs +3 -0
  3. package/_chunks/libs/@mediapipe/tasks-vision.mjs +4781 -0
  4. package/_chunks/libs/@monogrid/gainmap-js.mjs +1137 -0
  5. package/_chunks/libs/@use-gesture/core.mjs +1650 -0
  6. package/_chunks/libs/@use-gesture/react.mjs +207 -0
  7. package/_chunks/libs/camera-controls.mjs +2207 -0
  8. package/_chunks/libs/detect-gpu.mjs +515 -0
  9. package/_chunks/libs/hls.js.mjs +21925 -0
  10. package/_chunks/libs/maath.mjs +5200 -0
  11. package/_chunks/libs/stats-gl.mjs +301 -0
  12. package/_chunks/libs/stats.js.mjs +90 -0
  13. package/_chunks/libs/suspend-react.mjs +60 -0
  14. package/_chunks/libs/three.mjs +23169 -0
  15. package/_chunks/libs/tunnel-rat.mjs +458 -0
  16. package/_chunks/libs/zustand.mjs +104 -0
  17. package/_chunks/rolldown-runtime.mjs +47 -0
  18. package/_chunks/vision_bundle.mjs +3 -0
  19. package/core/_chunks/hls.mjs +3 -0
  20. package/core/_chunks/libs/@monogrid/gainmap-js.mjs +1137 -0
  21. package/core/_chunks/libs/@use-gesture/core.mjs +1650 -0
  22. package/core/_chunks/libs/@use-gesture/react.mjs +207 -0
  23. package/core/_chunks/libs/detect-gpu.mjs +515 -0
  24. package/core/_chunks/libs/hls.js.mjs +21925 -0
  25. package/core/_chunks/libs/maath.mjs +5200 -0
  26. package/core/_chunks/libs/stats-gl.mjs +301 -0
  27. package/core/_chunks/libs/stats.js.mjs +90 -0
  28. package/core/_chunks/libs/suspend-react.mjs +60 -0
  29. package/core/_chunks/libs/three.mjs +22457 -0
  30. package/core/_chunks/libs/tunnel-rat.mjs +458 -0
  31. package/core/_chunks/libs/zustand.mjs +104 -0
  32. package/core/_chunks/rolldown-runtime.mjs +47 -0
  33. package/core/core/index.d.mts +2232 -0
  34. package/core/core/index.mjs +11082 -0
  35. package/experimental/_chunks/libs/three.mjs +15386 -0
  36. package/experimental/experimental/index.d.mts +253 -0
  37. package/experimental/experimental/index.mjs +434 -0
  38. package/external/_chunks/hls.mjs +3 -0
  39. package/external/_chunks/libs/@mediapipe/tasks-vision.mjs +4781 -0
  40. package/external/_chunks/libs/camera-controls.mjs +2207 -0
  41. package/external/_chunks/libs/hls.js.mjs +21925 -0
  42. package/external/_chunks/libs/maath.mjs +5200 -0
  43. package/external/_chunks/libs/suspend-react.mjs +58 -0
  44. package/external/_chunks/libs/three.mjs +15387 -0
  45. package/external/_chunks/rolldown-runtime.mjs +32 -0
  46. package/external/_chunks/vision_bundle.mjs +3 -0
  47. package/external/external/index.d.mts +499 -0
  48. package/external/external/index.mjs +9422 -0
  49. package/index.d.mts +2567 -0
  50. package/index.mjs +20571 -0
  51. package/legacy/_chunks/hls.mjs +3 -0
  52. package/legacy/_chunks/libs/@monogrid/gainmap-js.mjs +1137 -0
  53. package/legacy/_chunks/libs/@use-gesture/core.mjs +1650 -0
  54. package/legacy/_chunks/libs/@use-gesture/react.mjs +207 -0
  55. package/legacy/_chunks/libs/bidi-js.mjs +675 -0
  56. package/legacy/_chunks/libs/detect-gpu.mjs +515 -0
  57. package/legacy/_chunks/libs/hls.js.mjs +21925 -0
  58. package/legacy/_chunks/libs/maath.mjs +5200 -0
  59. package/legacy/_chunks/libs/stats-gl.mjs +301 -0
  60. package/legacy/_chunks/libs/stats.js.mjs +90 -0
  61. package/legacy/_chunks/libs/suspend-react.mjs +60 -0
  62. package/legacy/_chunks/libs/three.mjs +26062 -0
  63. package/legacy/_chunks/libs/troika-three-text.mjs +6494 -0
  64. package/legacy/_chunks/libs/tunnel-rat.mjs +458 -0
  65. package/legacy/_chunks/libs/zustand.mjs +104 -0
  66. package/legacy/_chunks/rolldown-runtime.mjs +47 -0
  67. package/legacy/legacy/index.d.mts +2788 -0
  68. package/legacy/legacy/index.mjs +14984 -0
  69. package/native/_chunks/hls.mjs +3 -0
  70. package/native/_chunks/libs/@monogrid/gainmap-js.mjs +1137 -0
  71. package/native/_chunks/libs/@use-gesture/core.mjs +1650 -0
  72. package/native/_chunks/libs/@use-gesture/react.mjs +207 -0
  73. package/native/_chunks/libs/detect-gpu.mjs +515 -0
  74. package/native/_chunks/libs/hls.js.mjs +21925 -0
  75. package/native/_chunks/libs/maath.mjs +5200 -0
  76. package/native/_chunks/libs/stats-gl.mjs +301 -0
  77. package/native/_chunks/libs/stats.js.mjs +90 -0
  78. package/native/_chunks/libs/suspend-react.mjs +60 -0
  79. package/native/_chunks/libs/three.mjs +22592 -0
  80. package/native/_chunks/libs/tunnel-rat.mjs +458 -0
  81. package/native/_chunks/libs/zustand.mjs +104 -0
  82. package/native/_chunks/rolldown-runtime.mjs +47 -0
  83. package/native/native/index.d.mts +3168 -0
  84. package/native/native/index.mjs +14863 -0
  85. package/package.json +41 -10
  86. package/webgpu/_chunks/hls.mjs +3 -0
  87. package/webgpu/_chunks/libs/@monogrid/gainmap-js.mjs +1137 -0
  88. package/webgpu/_chunks/libs/@use-gesture/core.mjs +1650 -0
  89. package/webgpu/_chunks/libs/@use-gesture/react.mjs +207 -0
  90. package/webgpu/_chunks/libs/detect-gpu.mjs +515 -0
  91. package/webgpu/_chunks/libs/hls.js.mjs +21925 -0
  92. package/webgpu/_chunks/libs/maath.mjs +5200 -0
  93. package/webgpu/_chunks/libs/stats-gl.mjs +301 -0
  94. package/webgpu/_chunks/libs/stats.js.mjs +90 -0
  95. package/webgpu/_chunks/libs/suspend-react.mjs +60 -0
  96. package/webgpu/_chunks/libs/three.mjs +22592 -0
  97. package/webgpu/_chunks/libs/tunnel-rat.mjs +458 -0
  98. package/webgpu/_chunks/libs/zustand.mjs +104 -0
  99. package/webgpu/_chunks/rolldown-runtime.mjs +47 -0
  100. package/webgpu/webgpu/index.d.mts +3166 -0
  101. package/webgpu/webgpu/index.mjs +15015 -0
  102. package/core/AccumulativeShadows.cjs.js +0 -1
  103. package/core/AccumulativeShadows.d.ts +0 -59
  104. package/core/AccumulativeShadows.js +0 -310
  105. package/core/AdaptiveDpr.cjs.js +0 -1
  106. package/core/AdaptiveDpr.d.ts +0 -3
  107. package/core/AdaptiveDpr.js +0 -28
  108. package/core/AdaptiveEvents.cjs.js +0 -1
  109. package/core/AdaptiveEvents.d.ts +0 -1
  110. package/core/AdaptiveEvents.js +0 -20
  111. package/core/ArcballControls.cjs.js +0 -1
  112. package/core/ArcballControls.d.ts +0 -15
  113. package/core/ArcballControls.js +0 -67
  114. package/core/AsciiRenderer.cjs.js +0 -1
  115. package/core/AsciiRenderer.d.ts +0 -11
  116. package/core/AsciiRenderer.js +0 -66
  117. package/core/BBAnchor.cjs.js +0 -1
  118. package/core/BBAnchor.d.ts +0 -7
  119. package/core/BBAnchor.js +0 -37
  120. package/core/Backdrop.cjs.js +0 -1
  121. package/core/Backdrop.d.ts +0 -15
  122. package/core/Backdrop.js +0 -33
  123. package/core/BakeShadows.cjs.js +0 -1
  124. package/core/BakeShadows.d.ts +0 -1
  125. package/core/BakeShadows.js +0 -16
  126. package/core/Billboard.cjs.js +0 -1
  127. package/core/Billboard.d.ts +0 -10
  128. package/core/Billboard.js +0 -53
  129. package/core/Bounds.cjs.js +0 -1
  130. package/core/Bounds.d.ts +0 -36
  131. package/core/Bounds.js +0 -254
  132. package/core/Bvh.cjs.js +0 -1
  133. package/core/Bvh.d.ts +0 -19
  134. package/core/Bvh.js +0 -92
  135. package/core/CameraControls.cjs.js +0 -1
  136. package/core/CameraControls.d.ts +0 -48
  137. package/core/CameraControls.js +0 -151
  138. package/core/CameraShake.cjs.js +0 -1
  139. package/core/CameraShake.d.ts +0 -17
  140. package/core/CameraShake.js +0 -57
  141. package/core/CatmullRomLine.cjs.js +0 -1
  142. package/core/CatmullRomLine.d.ts +0 -10
  143. package/core/CatmullRomLine.js +0 -42
  144. package/core/Caustics.cjs.js +0 -1
  145. package/core/Caustics.d.ts +0 -32
  146. package/core/Caustics.js +0 -388
  147. package/core/Center.cjs.js +0 -1
  148. package/core/Center.d.ts +0 -33
  149. package/core/Center.js +0 -67
  150. package/core/Clone.cjs.js +0 -1
  151. package/core/Clone.d.ts +0 -15
  152. package/core/Clone.js +0 -100
  153. package/core/Cloud.cjs.js +0 -1
  154. package/core/Cloud.d.ts +0 -97
  155. package/core/Cloud.js +0 -231
  156. package/core/ComputedAttribute.cjs.js +0 -1
  157. package/core/ComputedAttribute.d.ts +0 -8
  158. package/core/ComputedAttribute.js +0 -33
  159. package/core/ContactShadows.cjs.js +0 -1
  160. package/core/ContactShadows.d.ts +0 -18
  161. package/core/ContactShadows.js +0 -114
  162. package/core/CubeCamera.cjs.js +0 -1
  163. package/core/CubeCamera.d.ts +0 -21
  164. package/core/CubeCamera.js +0 -86
  165. package/core/CubeTexture.cjs.js +0 -1
  166. package/core/CubeTexture.d.ts +0 -14
  167. package/core/CubeTexture.js +0 -25
  168. package/core/CubicBezierLine.cjs.js +0 -1
  169. package/core/CubicBezierLine.d.ts +0 -12
  170. package/core/CubicBezierLine.js +0 -28
  171. package/core/CurveModifier.cjs.js +0 -1
  172. package/core/CurveModifier.d.ts +0 -11
  173. package/core/CurveModifier.js +0 -27
  174. package/core/Decal.cjs.js +0 -1
  175. package/core/Decal.d.ts +0 -16
  176. package/core/Decal.js +0 -128
  177. package/core/Detailed.cjs.js +0 -1
  178. package/core/Detailed.d.ts +0 -10
  179. package/core/Detailed.js +0 -33
  180. package/core/DetectGPU.cjs.js +0 -1
  181. package/core/DetectGPU.d.ts +0 -7
  182. package/core/DetectGPU.js +0 -14
  183. package/core/DeviceOrientationControls.cjs.js +0 -1
  184. package/core/DeviceOrientationControls.d.ts +0 -10
  185. package/core/DeviceOrientationControls.js +0 -51
  186. package/core/Edges.cjs.js +0 -1
  187. package/core/Edges.d.ts +0 -13
  188. package/core/Edges.js +0 -38
  189. package/core/Effects.cjs.js +0 -1
  190. package/core/Effects.d.ts +0 -25
  191. package/core/Effects.js +0 -91
  192. package/core/Environment.cjs.js +0 -1
  193. package/core/Environment.d.ts +0 -37
  194. package/core/Environment.js +0 -189
  195. package/core/Example.cjs.js +0 -1
  196. package/core/Example.d.ts +0 -13
  197. package/core/Example.js +0 -46
  198. package/core/Fbo.cjs.js +0 -1
  199. package/core/Fbo.d.ts +0 -22
  200. package/core/Fbo.js +0 -63
  201. package/core/Fbx.cjs.js +0 -1
  202. package/core/Fbx.d.ts +0 -11
  203. package/core/Fbx.js +0 -23
  204. package/core/FirstPersonControls.cjs.js +0 -1
  205. package/core/FirstPersonControls.d.ts +0 -8
  206. package/core/FirstPersonControls.js +0 -38
  207. package/core/Fisheye.cjs.js +0 -1
  208. package/core/Fisheye.d.ts +0 -10
  209. package/core/Fisheye.js +0 -95
  210. package/core/Float.cjs.js +0 -1
  211. package/core/Float.d.ts +0 -14
  212. package/core/Float.js +0 -37
  213. package/core/FlyControls.cjs.js +0 -1
  214. package/core/FlyControls.d.ts +0 -10
  215. package/core/FlyControls.js +0 -55
  216. package/core/GizmoHelper.cjs.js +0 -1
  217. package/core/GizmoHelper.d.ts +0 -16
  218. package/core/GizmoHelper.js +0 -116
  219. package/core/GizmoViewcube.cjs.js +0 -1
  220. package/core/GizmoViewcube.d.ts +0 -14
  221. package/core/GizmoViewcube.js +0 -133
  222. package/core/GizmoViewport.cjs.js +0 -1
  223. package/core/GizmoViewport.d.ts +0 -16
  224. package/core/GizmoViewport.js +0 -140
  225. package/core/Gltf.cjs.js +0 -1
  226. package/core/Gltf.d.ts +0 -27
  227. package/core/Gltf.js +0 -52
  228. package/core/GradientTexture.cjs.js +0 -1
  229. package/core/GradientTexture.d.ts +0 -18
  230. package/core/GradientTexture.js +0 -54
  231. package/core/Grid.cjs.js +0 -1
  232. package/core/Grid.d.ts +0 -26
  233. package/core/Grid.js +0 -142
  234. package/core/Helper.cjs.js +0 -1
  235. package/core/Helper.d.ts +0 -16
  236. package/core/Helper.js +0 -47
  237. package/core/Hud.cjs.js +0 -1
  238. package/core/Hud.d.ts +0 -6
  239. package/core/Hud.js +0 -55
  240. package/core/Image.cjs.js +0 -1
  241. package/core/Image.d.ts +0 -38
  242. package/core/Image.js +0 -160
  243. package/core/Instances.cjs.js +0 -1
  244. package/core/Instances.d.ts +0 -64
  245. package/core/Instances.js +0 -313
  246. package/core/Ktx2.cjs.js +0 -1
  247. package/core/Ktx2.d.ts +0 -14
  248. package/core/Ktx2.js +0 -48
  249. package/core/Lightformer.cjs.js +0 -1
  250. package/core/Lightformer.d.ts +0 -15
  251. package/core/Lightformer.js +0 -63
  252. package/core/Line.cjs.js +0 -1
  253. package/core/Line.d.ts +0 -13
  254. package/core/Line.js +0 -73
  255. package/core/MapControls.cjs.js +0 -1
  256. package/core/MapControls.d.ts +0 -14
  257. package/core/MapControls.js +0 -63
  258. package/core/MarchingCubes.cjs.js +0 -1
  259. package/core/MarchingCubes.d.ts +0 -24
  260. package/core/MarchingCubes.js +0 -78
  261. package/core/Mask.cjs.js +0 -1
  262. package/core/Mask.d.ts +0 -17
  263. package/core/Mask.js +0 -42
  264. package/core/MatcapTexture.cjs.js +0 -1
  265. package/core/MatcapTexture.d.ts +0 -9
  266. package/core/MatcapTexture.js +0 -51
  267. package/core/MeshDiscardMaterial.cjs.js +0 -1
  268. package/core/MeshDiscardMaterial.d.ts +0 -10
  269. package/core/MeshDiscardMaterial.js +0 -15
  270. package/core/MeshDistortMaterial.cjs.js +0 -1
  271. package/core/MeshDistortMaterial.d.ts +0 -39
  272. package/core/MeshDistortMaterial.js +0 -72
  273. package/core/MeshPortalMaterial.cjs.js +0 -1
  274. package/core/MeshPortalMaterial.d.ts +0 -25
  275. package/core/MeshPortalMaterial.js +0 -467
  276. package/core/MeshReflectorMaterial.cjs.js +0 -1
  277. package/core/MeshReflectorMaterial.d.ts +0 -14
  278. package/core/MeshReflectorMaterial.js +0 -180
  279. package/core/MeshRefractionMaterial.cjs.js +0 -1
  280. package/core/MeshRefractionMaterial.d.ts +0 -19
  281. package/core/MeshRefractionMaterial.js +0 -73
  282. package/core/MeshTransmissionMaterial.cjs.js +0 -1
  283. package/core/MeshTransmissionMaterial.d.ts +0 -34
  284. package/core/MeshTransmissionMaterial.js +0 -402
  285. package/core/MeshWobbleMaterial.cjs.js +0 -1
  286. package/core/MeshWobbleMaterial.d.ts +0 -36
  287. package/core/MeshWobbleMaterial.js +0 -60
  288. package/core/MotionPathControls.cjs.js +0 -1
  289. package/core/MotionPathControls.d.ts +0 -33
  290. package/core/MotionPathControls.js +0 -121
  291. package/core/MultiMaterial.cjs.js +0 -1
  292. package/core/MultiMaterial.d.ts +0 -4
  293. package/core/MultiMaterial.js +0 -29
  294. package/core/NormalTexture.cjs.js +0 -1
  295. package/core/NormalTexture.d.ts +0 -14
  296. package/core/NormalTexture.js +0 -42
  297. package/core/OrbitControls.cjs.js +0 -1
  298. package/core/OrbitControls.d.ts +0 -22
  299. package/core/OrbitControls.js +0 -79
  300. package/core/OrthographicCamera.cjs.js +0 -1
  301. package/core/OrthographicCamera.d.ts +0 -14
  302. package/core/OrthographicCamera.js +0 -76
  303. package/core/Outlines.cjs.js +0 -1
  304. package/core/Outlines.d.ts +0 -17
  305. package/core/Outlines.js +0 -166
  306. package/core/PerformanceMonitor.cjs.js +0 -1
  307. package/core/PerformanceMonitor.d.ts +0 -36
  308. package/core/PerformanceMonitor.js +0 -116
  309. package/core/PerspectiveCamera.cjs.js +0 -1
  310. package/core/PerspectiveCamera.d.ts +0 -14
  311. package/core/PerspectiveCamera.js +0 -72
  312. package/core/PointMaterial.cjs.js +0 -1
  313. package/core/PointMaterial.d.ts +0 -8
  314. package/core/PointMaterial.js +0 -36
  315. package/core/PointerLockControls.cjs.js +0 -1
  316. package/core/PointerLockControls.d.ts +0 -15
  317. package/core/PointerLockControls.js +0 -89
  318. package/core/Points.cjs.js +0 -1
  319. package/core/Points.d.ts +0 -31
  320. package/core/Points.js +0 -202
  321. package/core/PositionalAudio.cjs.js +0 -1
  322. package/core/PositionalAudio.d.ts +0 -9
  323. package/core/PositionalAudio.js +0 -46
  324. package/core/Preload.cjs.js +0 -1
  325. package/core/Preload.d.ts +0 -7
  326. package/core/Preload.js +0 -44
  327. package/core/Progress.cjs.js +0 -1
  328. package/core/Progress.d.ts +0 -14
  329. package/core/Progress.js +0 -55
  330. package/core/QuadraticBezierLine.cjs.js +0 -1
  331. package/core/QuadraticBezierLine.d.ts +0 -14
  332. package/core/QuadraticBezierLine.js +0 -42
  333. package/core/RenderCubeTexture.cjs.js +0 -1
  334. package/core/RenderCubeTexture.d.ts +0 -30
  335. package/core/RenderCubeTexture.js +0 -96
  336. package/core/RenderTexture.cjs.js +0 -1
  337. package/core/RenderTexture.d.ts +0 -18
  338. package/core/RenderTexture.js +0 -105
  339. package/core/Resize.cjs.js +0 -1
  340. package/core/Resize.d.ts +0 -17
  341. package/core/Resize.js +0 -39
  342. package/core/RoundedBox.cjs.js +0 -1
  343. package/core/RoundedBox.d.ts +0 -14
  344. package/core/RoundedBox.js +0 -70
  345. package/core/Sampler.cjs.js +0 -1
  346. package/core/Sampler.d.ts +0 -28
  347. package/core/Sampler.js +0 -75
  348. package/core/ScreenQuad.cjs.js +0 -1
  349. package/core/ScreenQuad.d.ts +0 -5
  350. package/core/ScreenQuad.js +0 -25
  351. package/core/ScreenSizer.cjs.js +0 -1
  352. package/core/ScreenSizer.d.ts +0 -7
  353. package/core/ScreenSizer.js +0 -39
  354. package/core/ScreenSpace.cjs.js +0 -1
  355. package/core/ScreenSpace.d.ts +0 -7
  356. package/core/ScreenSpace.js +0 -25
  357. package/core/Segments.cjs.js +0 -1
  358. package/core/Segments.d.ts +0 -29
  359. package/core/Segments.js +0 -96
  360. package/core/Shadow.cjs.js +0 -1
  361. package/core/Shadow.d.ts +0 -12
  362. package/core/Shadow.js +0 -42
  363. package/core/ShadowAlpha.cjs.js +0 -1
  364. package/core/ShadowAlpha.d.ts +0 -7
  365. package/core/ShadowAlpha.js +0 -108
  366. package/core/Sky.cjs.js +0 -1
  367. package/core/Sky.d.ts +0 -16
  368. package/core/Sky.js +0 -39
  369. package/core/Sparkles.cjs.js +0 -1
  370. package/core/Sparkles.d.ts +0 -26
  371. package/core/Sparkles.js +0 -161
  372. package/core/Splat.cjs.js +0 -1
  373. package/core/Splat.d.ts +0 -56
  374. package/core/Splat.js +0 -506
  375. package/core/SpotLight.cjs.js +0 -1
  376. package/core/SpotLight.d.ts +0 -27
  377. package/core/SpotLight.js +0 -223
  378. package/core/SpriteAnimator.cjs.js +0 -1
  379. package/core/SpriteAnimator.d.ts +0 -88
  380. package/core/SpriteAnimator.js +0 -413
  381. package/core/Stage.cjs.js +0 -1
  382. package/core/Stage.d.ts +0 -27
  383. package/core/Stage.js +0 -133
  384. package/core/Stars.cjs.js +0 -1
  385. package/core/Stars.d.ts +0 -22
  386. package/core/Stars.js +0 -100
  387. package/core/Stats.cjs.js +0 -1
  388. package/core/Stats.d.ts +0 -7
  389. package/core/Stats.js +0 -32
  390. package/core/StatsGl.cjs.js +0 -1
  391. package/core/StatsGl.d.ts +0 -14
  392. package/core/StatsGl.js +0 -44
  393. package/core/Svg.cjs.js +0 -1
  394. package/core/Svg.d.ts +0 -13
  395. package/core/Svg.js +0 -62
  396. package/core/Text.cjs.js +0 -1
  397. package/core/Text.d.ts +0 -38
  398. package/core/Text.js +0 -57
  399. package/core/Text3D.cjs.js +0 -1
  400. package/core/Text3D.d.ts +0 -20
  401. package/core/Text3D.js +0 -74
  402. package/core/Texture.cjs.js +0 -1
  403. package/core/Texture.d.ts +0 -20
  404. package/core/Texture.js +0 -60
  405. package/core/TrackballControls.cjs.js +0 -1
  406. package/core/TrackballControls.d.ts +0 -15
  407. package/core/TrackballControls.js +0 -72
  408. package/core/Trail.cjs.js +0 -1
  409. package/core/Trail.d.ts +0 -21
  410. package/core/Trail.js +0 -150
  411. package/core/TrailTexture.cjs.js +0 -1
  412. package/core/TrailTexture.d.ts +0 -19
  413. package/core/TrailTexture.js +0 -159
  414. package/core/TransformControls.cjs.js +0 -1
  415. package/core/TransformControls.d.ts +0 -28
  416. package/core/TransformControls.js +0 -114
  417. package/core/VideoTexture.cjs.js +0 -1
  418. package/core/VideoTexture.d.ts +0 -26
  419. package/core/VideoTexture.js +0 -111
  420. package/core/Wireframe.cjs.js +0 -1
  421. package/core/Wireframe.d.ts +0 -15
  422. package/core/Wireframe.js +0 -157
  423. package/core/calculateScaleFactor.cjs.js +0 -1
  424. package/core/calculateScaleFactor.d.ts +0 -3
  425. package/core/calculateScaleFactor.js +0 -31
  426. package/core/index.cjs.js +0 -1
  427. package/core/index.d.ts +0 -122
  428. package/core/index.js +0 -150
  429. package/core/meshBounds.cjs.js +0 -1
  430. package/core/meshBounds.d.ts +0 -2
  431. package/core/meshBounds.js +0 -28
  432. package/core/shaderMaterial.cjs.js +0 -1
  433. package/core/shaderMaterial.d.ts +0 -9
  434. package/core/shaderMaterial.js +0 -29
  435. package/core/shapes.cjs.js +0 -1
  436. package/core/shapes.d.ts +0 -26
  437. package/core/shapes.js +0 -65
  438. package/core/softShadows.cjs.js +0 -1
  439. package/core/softShadows.d.ts +0 -6
  440. package/core/softShadows.js +0 -158
  441. package/core/useAnimations.cjs.js +0 -1
  442. package/core/useAnimations.d.ts +0 -13
  443. package/core/useAnimations.js +0 -52
  444. package/core/useAspect.cjs.js +0 -1
  445. package/core/useAspect.d.ts +0 -1
  446. package/core/useAspect.js +0 -10
  447. package/core/useBoxProjectedEnv.cjs.js +0 -1
  448. package/core/useBoxProjectedEnv.d.ts +0 -19
  449. package/core/useBoxProjectedEnv.js +0 -95
  450. package/core/useCamera.cjs.js +0 -1
  451. package/core/useCamera.d.ts +0 -3
  452. package/core/useCamera.js +0 -19
  453. package/core/useContextBridge.cjs.js +0 -1
  454. package/core/useContextBridge.d.ts +0 -4
  455. package/core/useContextBridge.js +0 -20
  456. package/core/useDepthBuffer.cjs.js +0 -1
  457. package/core/useDepthBuffer.d.ts +0 -6
  458. package/core/useDepthBuffer.js +0 -38
  459. package/core/useEnvironment.cjs.js +0 -1
  460. package/core/useEnvironment.d.ts +0 -17
  461. package/core/useEnvironment.js +0 -150
  462. package/core/useFont.cjs.js +0 -1
  463. package/core/useFont.d.ts +0 -24
  464. package/core/useFont.js +0 -24
  465. package/core/useIntersect.cjs.js +0 -1
  466. package/core/useIntersect.d.ts +0 -3
  467. package/core/useIntersect.js +0 -36
  468. package/core/useSpriteLoader.cjs.js +0 -1
  469. package/core/useSpriteLoader.d.ts +0 -57
  470. package/core/useSpriteLoader.js +0 -402
  471. package/helpers/constants.cjs.js +0 -1
  472. package/helpers/constants.d.ts +0 -1
  473. package/helpers/constants.js +0 -6
  474. package/helpers/deprecated.cjs.js +0 -1
  475. package/helpers/deprecated.d.ts +0 -5
  476. package/helpers/deprecated.js +0 -8
  477. package/helpers/environment-assets.cjs.js +0 -1
  478. package/helpers/environment-assets.d.ts +0 -13
  479. package/helpers/environment-assets.js +0 -14
  480. package/helpers/glsl/DefaultSpotlightShadowShadows.glsl.js +0 -3
  481. package/helpers/glsl/distort.vert.glsl.js +0 -3
  482. package/helpers/ts-utils.cjs.js +0 -1
  483. package/helpers/ts-utils.d.ts +0 -7
  484. package/helpers/ts-utils.js +0 -1
  485. package/helpers/useEffectfulState.cjs.js +0 -1
  486. package/helpers/useEffectfulState.d.ts +0 -4
  487. package/helpers/useEffectfulState.js +0 -17
  488. package/index.cjs.js +0 -1
  489. package/index.d.ts +0 -1
  490. package/index.js +0 -139
  491. package/materials/BlurPass.cjs.js +0 -1
  492. package/materials/BlurPass.d.ts +0 -23
  493. package/materials/BlurPass.js +0 -72
  494. package/materials/ConvolutionMaterial.cjs.js +0 -1
  495. package/materials/ConvolutionMaterial.d.ts +0 -7
  496. package/materials/ConvolutionMaterial.js +0 -97
  497. package/materials/DiscardMaterial.cjs.js +0 -1
  498. package/materials/DiscardMaterial.d.ts +0 -3
  499. package/materials/DiscardMaterial.js +0 -5
  500. package/materials/MeshReflectorMaterial.cjs.js +0 -1
  501. package/materials/MeshReflectorMaterial.d.ts +0 -50
  502. package/materials/MeshReflectorMaterial.js +0 -256
  503. package/materials/MeshRefractionMaterial.cjs.js +0 -1
  504. package/materials/MeshRefractionMaterial.d.ts +0 -18
  505. package/materials/MeshRefractionMaterial.js +0 -163
  506. package/materials/SpotLightMaterial.cjs.js +0 -1
  507. package/materials/SpotLightMaterial.d.ts +0 -4
  508. package/materials/SpotLightMaterial.js +0 -115
  509. package/materials/WireframeMaterial.cjs.js +0 -1
  510. package/materials/WireframeMaterial.d.ts +0 -64
  511. package/materials/WireframeMaterial.js +0 -217
  512. package/native/index.cjs.js +0 -1
  513. package/native/index.d.ts +0 -1
  514. package/native/index.js +0 -150
  515. package/web/CycleRaycast.cjs.js +0 -1
  516. package/web/CycleRaycast.d.ts +0 -10
  517. package/web/CycleRaycast.js +0 -93
  518. package/web/DragControls.cjs.js +0 -1
  519. package/web/DragControls.d.ts +0 -17
  520. package/web/DragControls.js +0 -127
  521. package/web/FaceControls.cjs.js +0 -1
  522. package/web/FaceControls.d.ts +0 -29
  523. package/web/FaceControls.js +0 -236
  524. package/web/FaceLandmarker.cjs.js +0 -1
  525. package/web/FaceLandmarker.d.ts +0 -14
  526. package/web/FaceLandmarker.js +0 -49
  527. package/web/Facemesh.cjs.js +0 -1
  528. package/web/Facemesh.d.ts +0 -118
  529. package/web/Facemesh.js +0 -4538
  530. package/web/Html.cjs.js +0 -1
  531. package/web/Html.d.ts +0 -34
  532. package/web/Html.js +0 -375
  533. package/web/KeyboardControls.cjs.js +0 -1
  534. package/web/KeyboardControls.d.ts +0 -37
  535. package/web/KeyboardControls.js +0 -104
  536. package/web/Loader.cjs.js +0 -1
  537. package/web/Loader.d.ts +0 -12
  538. package/web/Loader.js +0 -101
  539. package/web/PresentationControls.cjs.js +0 -1
  540. package/web/PresentationControls.d.ts +0 -16
  541. package/web/PresentationControls.js +0 -79
  542. package/web/ScreenVideoTexture.cjs.js +0 -1
  543. package/web/ScreenVideoTexture.d.ts +0 -17
  544. package/web/ScreenVideoTexture.js +0 -30
  545. package/web/ScrollControls.cjs.js +0 -1
  546. package/web/ScrollControls.d.ts +0 -45
  547. package/web/ScrollControls.js +0 -237
  548. package/web/Select.cjs.js +0 -1
  549. package/web/Select.d.ts +0 -14
  550. package/web/Select.js +0 -171
  551. package/web/View.cjs.js +0 -1
  552. package/web/View.d.ts +0 -34
  553. package/web/View.js +0 -259
  554. package/web/WebcamVideoTexture.cjs.js +0 -1
  555. package/web/WebcamVideoTexture.d.ts +0 -17
  556. package/web/WebcamVideoTexture.js +0 -33
  557. package/web/index.cjs.js +0 -1
  558. package/web/index.d.ts +0 -17
  559. package/web/index.js +0 -176
  560. package/web/pivotControls/AxisArrow.cjs.js +0 -1
  561. package/web/pivotControls/AxisArrow.d.ts +0 -7
  562. package/web/pivotControls/AxisArrow.js +0 -193
  563. package/web/pivotControls/AxisRotator.cjs.js +0 -1
  564. package/web/pivotControls/AxisRotator.d.ts +0 -7
  565. package/web/pivotControls/AxisRotator.js +0 -220
  566. package/web/pivotControls/PlaneSlider.cjs.js +0 -1
  567. package/web/pivotControls/PlaneSlider.d.ts +0 -7
  568. package/web/pivotControls/PlaneSlider.js +0 -202
  569. package/web/pivotControls/ScalingSphere.cjs.js +0 -1
  570. package/web/pivotControls/ScalingSphere.d.ts +0 -7
  571. package/web/pivotControls/ScalingSphere.js +0 -192
  572. package/web/pivotControls/context.cjs.js +0 -1
  573. package/web/pivotControls/context.d.ts +0 -33
  574. package/web/pivotControls/context.js +0 -5
  575. package/web/pivotControls/index.cjs.js +0 -1
  576. package/web/pivotControls/index.d.ts +0 -39
  577. package/web/pivotControls/index.js +0 -213
  578. package/web/useCursor.cjs.js +0 -1
  579. package/web/useCursor.d.ts +0 -1
  580. package/web/useCursor.js +0 -12
package/README.md CHANGED
@@ -6,6 +6,17 @@
6
6
 
7
7
  [![logo](docs/logo.jpg)](https://codesandbox.io/s/bfplr)
8
8
 
9
+ > [!WARNING] > **v11 Alpha** — This package is currently in **alpha** for v11. APIs, files, and features are **subject to change**.
10
+ >
11
+ > 📖 **[Migration Guide](./devDocs/MIGRATION_V10_TO_V11.md)** — Start here for upgrade instructions
12
+ >
13
+ > - 🐛 [Report an issue](https://github.com/pmndrs/drei/issues/new) — Found a bug? Let us know
14
+ > - 💬 [Join the discussion](https://github.com/pmndrs/drei/discussions) — Questions or ideas
15
+ > - 📋 [Track progress](https://github.com/pmndrs/drei/milestone/2) — See what's coming
16
+ >
17
+ > ⚠️ **This alpha bundles @react-three/fiber v10** until R3F v10 is published to NPM.
18
+ > Remove any existing `@react-three/fiber` from your dependencies before testing.
19
+
9
20
  A growing collection of useful helpers and fully functional, ready-made abstractions for [@react-three/fiber](https://github.com/pmndrs/react-three-fiber).
10
21
 
11
22
  If you make a component that is generic enough to be useful to others, think about [CONTRIBUTING](CONTRIBUTING.md)!
@@ -14,15 +25,50 @@ If you make a component that is generic enough to be useful to others, think abo
14
25
  npm install @react-three/drei
15
26
  ```
16
27
 
17
- > [!IMPORTANT]
18
- > this package is using the stand-alone [`three-stdlib`](https://github.com/pmndrs/three-stdlib) instead of [`three/examples/jsm`](https://github.com/mrdoob/three.js/tree/master/examples/jsm).
28
+ > [!IMPORTANT] > **v11 is ESM-only.** We no longer ship CommonJS bundles. This follows the ecosystem-wide shift to ESM as the standard — matching `@react-three/fiber`, Three.js, and [Storybook 10](https://storybook.js.org/blog/storybook-is-going-esm-only/). All modern bundlers handle ESM natively.
29
+
30
+ > [!NOTE] > ~~This package is using the stand-alone [`three-stdlib`](https://github.com/pmndrs/three-stdlib) instead of [`three/examples/jsm`](https://github.com/mrdoob/three.js/tree/master/examples/jsm).~~
31
+ > Reliance on STD-Lib has been removed with v11. The threejs repo and @types folks are doing a much better job and supporting/working with core on these common assets serves us better.
32
+
33
+ New scripts, components, shaders, can be addded here in this repo or in the upcoming market.
19
34
 
20
35
  ## Basic usage
21
36
 
37
+ ### Standard Import (Recommended)
38
+
39
+ ```jsx
40
+ import { PerspectiveCamera, OrbitControls, Environment } from '@react-three/drei'
41
+ ```
42
+
43
+ The root import includes renderer-agnostic components (core + external + experimental).
44
+
45
+ ### Entry Points (v11+)
46
+
47
+ Drei v11 introduces multiple entry points for better tree-shaking and renderer-specific code:
48
+
22
49
  ```jsx
23
- import { PerspectiveCamera, PositionalAudio, ... } from '@react-three/drei'
50
+ // Renderer-agnostic components (works with both WebGL and WebGPU)
51
+ import { OrbitControls, Environment } from '@react-three/drei' // All
52
+ import { OrbitControls } from '@react-three/drei/core' // Core only
53
+ import { Bvh } from '@react-three/drei/external' // External wrappers
54
+ import { MarchingCubes } from '@react-three/drei/experimental' // Experimental
55
+
56
+ // Platform-specific components
57
+ import { MeshDistortMaterial, Fbo } from '@react-three/drei/legacy' // WebGL only
58
+ import { MeshDistortMaterial, Fbo } from '@react-three/drei/webgpu' // WebGPU only
24
59
  ```
25
60
 
61
+ **When to use each:**
62
+
63
+ - **Root import**: Best for most projects, includes all renderer-agnostic components
64
+ - **/core**: Smallest bundle, production-ready components only
65
+ - **/external**: External library wrappers (Bvh, CameraControls, etc.)
66
+ - **/experimental**: Rough/experimental features
67
+ - **/legacy**: WebGL-specific implementations (GLSL materials, WebGLRenderTarget)
68
+ - **/webgpu**: WebGPU-specific implementations (TSL materials, WebGPU render targets)
69
+
70
+ See [MIGRATION_V10_TO_V11.md](MIGRATION_V10_TO_V11.md) for details.
71
+
26
72
  ## React-native
27
73
 
28
74
  ```jsx
@@ -42,761 +88,6 @@ https://pmndrs.github.io/drei
42
88
  > Below is an archive of the anchors links with their new respective locations to the documentation website.
43
89
  > Do not update the links below, they are for reference only.
44
90
 
45
- <!-- <table>
46
- <tr>
47
- <td valign="top">
48
- <ul>
49
- <li><a href="#cameras">Cameras</a></li>
50
- <ul>
51
- <li><a href="#perspectivecamera">PerspectiveCamera</a></li>
52
- <li><a href="#orthographiccamera">OrthographicCamera</a></li>
53
- <li><a href="#cubecamera">CubeCamera</a></li>
54
- </ul>
55
- <li><a href="#controls">Controls</a></li>
56
- <ul>
57
- <li><a href="#cameracontrols">CameraControls</a></li>
58
- <li><a href="#controls">FlyControls</a></li>
59
- <li><a href="#controls">MapControls</a></li>
60
- <li><a href="#controls">DeviceOrientationControls</a></li>
61
- <li><a href="#controls">TrackballControls</a></li>
62
- <li><a href="#controls">ArcballControls</a></li>
63
- <li><a href="#controls">PointerLockControls</a></li>
64
- <li><a href="#controls">FirstPersonControls</a></li>
65
- <li><a href="#scrollcontrols">ScrollControls</a></li>
66
- <li><a href="#presentationcontrols">PresentationControls</a></li>
67
- <li><a href="#keyboardcontrols">KeyboardControls</a></li>
68
- <li><a href="#FaceControls">FaceControls</a></li>
69
- <li><a href="#motionpathcontrols">MotionPathControls</a></li>
70
- </ul>
71
- <li><a href="#gizmos">Gizmos</a></li>
72
- <ul>
73
- <li><a href="#gizmohelper">GizmoHelper</a></li>
74
- <li><a href="#pivotcontrols">PivotControls</a></li>
75
- <li><a href="#dragcontrols">DragControls</a></li>
76
- <li><a href="#transformcontrols">TransformControls</a></li>
77
- <li><a href="#grid">Grid</a></li>
78
- <li><a href="#helper--usehelper">Helper / useHelper</a></li>
79
- <li><a href="#helper">Helper</a></li>
80
- </ul>
81
- <li><a href="#abstractions">Abstractions</a></li>
82
- <ul>
83
- <li><a href="#image">Image</a></li>
84
- <li><a href="#text">Text</a></li>
85
- <li><a href="#text3d">Text3D</a></li>
86
- <li><a href="#positionalaudio">PositionalAudio</a></li>
87
- <li><a href="#billboard">Billboard</a></li>
88
- <li><a href="#screenspace">ScreenSpace</a></li>
89
- <li><a href="#screensizer">ScreenSizer</a></li>
90
- <li><a href="#effects">Effects</a></li>
91
- <li><a href="#gradienttexture">GradientTexture</a></li>
92
- <li><a href="#edges">Edges</a></li>
93
- <li><a href="#outlines">Outlines</a></li>
94
- <li><a href="#trail">Trail</a></li>
95
- <li><a href="#sampler">Sampler</a></li>
96
- <li><a href="#computedattribute">ComputedAttribute</a></li>
97
- <li><a href="#clone">Clone</a></li>
98
- <li><a href="#useanimations">useAnimations</a></li>
99
- <li><a href="#marchingcubes">MarchingCubes</a></li>
100
- <li><a href="#decal">Decal</a></li>
101
- <li><a href="#svg">Svg</a></li>
102
- <li><a href="#gltf">Gltf</a></li>
103
- <li><a href="#asciirenderer">AsciiRenderer</a></li>
104
- <li><a href="#splat">Splat</a></li>
105
- </ul>
106
- <li><a href="#shaders">Shaders</a></li>
107
- <ul>
108
- <li><a href="#meshreflectormaterial">MeshReflectorMaterial</a></li>
109
- <li><a href="#meshwobblematerial">MeshWobbleMaterial</a></li>
110
- <li><a href="#meshdistortmaterial">MeshDistortMaterial</a></li>
111
- <li><a href="#meshrefractionmaterial">MeshRefractionMaterial</a></li>
112
- <li><a href="#meshtransmissionmaterial">MeshTransmissionMaterial</a></li>
113
- <li><a href="#meshdiscardmaterial">MeshDiscardMaterial</a></li>
114
- <li><a href="#pointmaterial">PointMaterial</a></li>
115
- <li><a href="#softshadows">SoftShadows</a></li>
116
- <li><a href="#shadermaterial">shaderMaterial</a></li>
117
- </ul>
118
- </ul>
119
- </td>
120
- <td valign="top">
121
- <ul>
122
- <li><a href="#misc">Misc</a></li>
123
- <ul>
124
- <li><a href="#example">Example</a></li>
125
- <li><a href="#html">Html</a></li>
126
- <li><a href="#cycleraycast">CycleRaycast</a></li>
127
- <li><a href="#select">Select</a></li>
128
- <li><a href="#sprite-animator">Sprite Animator</a></li>
129
- <li><a href="#stats">Stats</a></li>
130
- <li><a href="#stats-gl">StatsGl</a></li>
131
- <li><a href="#wireframe">Wireframe</a></li>
132
- <li><a href="#usedepthbuffer">useDepthBuffer</a></li>
133
- <li><a href="#usecontextbridge">useContextBridge</a></li>
134
- <li><a href="#fbo--usefbo">Fbo / useFBO</a></li>
135
- <li><a href="#usecamera">useCamera</a></li>
136
- <li><a href="#cubecamera--usecubecamera">CubeCamera / useCubeCamera</a></li>
137
- <li><a href="#detectgpu--usedetectgpu">DetectGPU / useDetectGPU</a></li>
138
- <li><a href="#useaspect">useAspect</a></li>
139
- <li><a href="#usecursor">useCursor</a></li>
140
- <li><a href="#useintersect">useIntersect</a></li>
141
- <li><a href="#useboxprojectedenv">useBoxProjectedEnv</a></li>
142
- <li><a href="#trail--useTrail">Trail / useTrail</a></li>
143
- <li><a href="#useSurfaceSampler">useSurfaceSampler</a></li>
144
- <li><a href="#facelandmarker">FaceLandmarker</a></li>
145
- </ul>
146
- <li><a href="#loading">Loaders</a></li>
147
- <ul>
148
- <li><a href="#loader">Loader</a></li>
149
- <li><a href="#progress--useprogress">Progress / useProgress</a></li>
150
- <li><a href="#gltf--usegltf">Gltf / useGLTF</a></li>
151
- <li><a href="#fbx--usefbx">FBX / useFBX</a></li>
152
- <li><a href="#texture--usetexture">Texture / useTexture</a></li>
153
- <li><a href="#ktx2--usektx2">Ktx2 / useKTX2</a></li>
154
- <li><a href="#cubetexture--usecubetexture">CubeTexture / useCubeTexture</a></li>
155
- <li><a href="#videotexture--usevideotexture">VideoTexture / useVideoTexture</a></li>
156
- <li><a href="#trailtexture--usetrailtexture">TrailTexture / useTrailTexture</a></li>
157
- <li><a href="#usefont">useFont</a></li>
158
- <li><a href="#usespriteloader">useSpriteLoader</a></li>
159
- </ul>
160
- <li><a href="#performance">Performance</a></li>
161
- <ul>
162
- <li><a href="#instances">Instances</a></li>
163
- <li><a href="#merged">Merged</a></li>
164
- <li><a href="#points">Points</a></li>
165
- <li><a href="#segments">Segments</a></li>
166
- <li><a href="#detailed">Detailed</a></li>
167
- <li><a href="#preload">Preload</a></li>
168
- <li><a href="#bakeshadows">BakeShadows</a></li>
169
- <li><a href="#meshbounds">meshBounds</a></li>
170
- <li><a href="#adaptivedpr">AdaptiveDpr</a></li>
171
- <li><a href="#adaptiveevents">AdaptiveEvents</a></li>
172
- <li><a href="#bvh">Bvh</a></li>
173
- <li><a href="#performancemonitor">PerformanceMonitor</a></li>
174
- </ul>
175
- <li><a href="#portals">Portals</a></li>
176
- <ul>
177
- <li><a href="#hud">Hud</a></li>
178
- <li><a href="#view">View</a></li>
179
- <li><a href="#rendertexture">RenderTexture</a></li>
180
- <li><a href="#rendercubetexture">RenderCubeTexture</a></li>
181
- <li><a href="#fisheye">Fisheye</a></li>
182
- <li><a href="#mask">Mask</a></li>
183
- <li><a href="#meshportalmaterial">MeshPortalMaterial</a></li>
184
- </ul>
185
- <li><a href="#modifiers">Modifiers</a></li>
186
- <ul>
187
- <li><a href="#curvemodifier">CurveModifier</a></li>
188
- </ul>
189
- </ul>
190
- </td>
191
- <td valign="top">
192
- <ul>
193
- <li><a href="#shapes">Shapes</a></li>
194
- <ul>
195
- <li><a href="#shapes">Plane</a></li>
196
- <li><a href="#shapes">Box</a></li>
197
- <li><a href="#shapes">Sphere</a></li>
198
- <li><a href="#shapes">Circle</a></li>
199
- <li><a href="#shapes">Cone</a></li>
200
- <li><a href="#shapes">Cylinder</a></li>
201
- <li><a href="#shapes">Tube</a></li>
202
- <li><a href="#shapes">Torus</a></li>
203
- <li><a href="#shapes">TorusKnot</a></li>
204
- <li><a href="#shapes">Ring</a></li>
205
- <li><a href="#shapes">Tetrahedron</a></li>
206
- <li><a href="#shapes">Polyhedron</a></li>
207
- <li><a href="#shapes">Icosahedron</a></li>
208
- <li><a href="#shapes">Octahedron</a></li>
209
- <li><a href="#shapes">Dodecahedron</a></li>
210
- <li><a href="#shapes">Extrude</a></li>
211
- <li><a href="#shapes">Lathe</a></li>
212
- <li><a href="#shapes">Shape</a></li>
213
- <li><a href="#roundedbox">RoundedBox</a></li>
214
- <li><a href="#screenquad">Screenquad</a></li>
215
- <li><a href="#line">Line</a></li>
216
- <li><a href="#quadraticbezierline">QuadraticBezierLine</a></li>
217
- <li><a href="#cubicbezierline">CubicBezierLine</a></li>
218
- <li><a href="#catmullromline">CatmullRomLine</a></li>
219
- <li><a href="#facemesh">Facemesh</a></li>
220
- </ul>
221
- <li><a href="#staging">Staging</a></li>
222
- <ul>
223
- <li><a href="#center">Center</a></li>
224
- <li><a href="#resize">Resize</a></li>
225
- <li><a href="#BBAnchor">BBAnchor</a></li>
226
- <li><a href="#bounds">Bounds</a></li>
227
- <li><a href="#camerashake">CameraShake</a></li>
228
- <li><a href="#float">Float</a></li>
229
- <li><a href="#stage">Stage</a></li>
230
- <li><a href="#backdrop">Backdrop</a></li>
231
- <li><a href="#environment">Environment</a></li>
232
- <li><a href="#lightformer">Lightformer</a></li>
233
- <li><a href="#spotlight">SpotLight</a></li>
234
- <li><a href="#spotlightshadow">SpotLightShadow</a></li>
235
- <li><a href="#shadow">Shadow</a></li>
236
- <li><a href="#caustics">Caustics</a></li>
237
- <li><a href="#contactshadows">ContactShadows</a></li>
238
- <li><a href="#randomizedlight">RandomizedLight</a></li>
239
- <li><a href="#accumulativeshadows">AccumulativeShadows</a></li>
240
- <li><a href="#sky">Sky</a></li>
241
- <li><a href="#stars">Stars</a></li>
242
- <li><a href="#sparkles">Sparkles</a></li>
243
- <li><a href="#cloud">Cloud</a></li>
244
- <li><a href="#useenvironment">useEnvironment</a></li>
245
- <li><a href="#matcaptexture--usematcaptexture">MatcapTexture / useMatcapTexture</a></li>
246
- <li><a href="#normaltexture--usenormaltexture">NormalTexture / useNormalTexture</a></li>
247
- <li><a href="#shadowalpha">ShadowAlpha</a></li>
248
- </ul>
249
- </ul>
250
- </td>
251
- </tr>
252
- </table> -->
253
-
254
- ### Cameras
255
-
256
- #### PerspectiveCamera
257
-
258
- [Documentation has moved here](https://pmndrs.github.io/drei/cameras/perspective-camera)
259
-
260
- #### OrthographicCamera
261
-
262
- [Documentation has moved here](https://pmndrs.github.io/drei/cameras/orthographic-camera)
263
-
264
- #### CubeCamera
265
-
266
- [Documentation has moved here](https://pmndrs.github.io/drei/cameras/cube-camera)
267
-
268
- ### Controls
269
-
270
- #### CameraControls
271
-
272
- [Documentation has moved here](https://pmndrs.github.io/drei/controls/camera-controls)
273
-
274
- #### ScrollControls
275
-
276
- [Documentation has moved here](https://pmndrs.github.io/drei/controls/scroll-controls)
277
-
278
- #### PresentationControls
279
-
280
- [Documentation has moved here](https://pmndrs.github.io/drei/controls/presentation-controls)
281
-
282
- #### KeyboardControls
283
-
284
- [Documentation has moved here](https://pmndrs.github.io/drei/controls/keyboard-controls)
285
-
286
- #### FaceControls
287
-
288
- [Documentation has moved here](https://pmndrs.github.io/drei/controls/face-controls)
289
-
290
- #### MotionPathControls
291
-
292
- [Documentation has moved here](https://pmndrs.github.io/drei/controls/motion-path-controls)
293
-
294
- ### Gizmos
295
-
296
- #### GizmoHelper
297
-
298
- [Documentation has moved here](https://pmndrs.github.io/drei/gizmos/gizmo-helper)
299
-
300
- #### PivotControls
301
-
302
- [Documentation has moved here](https://pmndrs.github.io/drei/gizmos/pivot-controls)
303
-
304
- #### DragControls
305
-
306
- [Documentation has moved here](https://pmndrs.github.io/drei/gizmos/drag-controls)
307
-
308
- #### TransformControls
309
-
310
- [Documentation has moved here](https://pmndrs.github.io/drei/gizmos/transform-controls)
311
-
312
- #### Grid
313
-
314
- [Documentation has moved here](https://pmndrs.github.io/drei/gizmos/grid)
315
-
316
- #### Helper / useHelper
317
-
318
- [Documentation has moved here](https://pmndrs.github.io/drei/gizmos/helper-use-helper)
319
-
320
- ### Shapes
321
-
322
- #### Plane, Box, Sphere, Circle, Cone, Cylinder, Tube, Torus, TorusKnot, Ring, Tetrahedron, Polyhedron, Icosahedron, Octahedron, Dodecahedron, Extrude, Lathe, Shape
323
-
324
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/mesh)
325
-
326
- #### RoundedBox
327
-
328
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/rounded-box)
329
-
330
- #### ScreenQuad
331
-
332
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/screen-quad)
333
-
334
- #### Line
335
-
336
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/line)
337
-
338
- #### QuadraticBezierLine
339
-
340
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/quadratic-bezier-line)
341
-
342
- #### CubicBezierLine
343
-
344
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/cubic-bezier-line)
345
-
346
- #### CatmullRomLine
347
-
348
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/catmull-rom-line)
349
-
350
- #### Facemesh
351
-
352
- [Documentation has moved here](https://pmndrs.github.io/drei/shapes/facemesh)
353
-
354
- ### Abstractions
355
-
356
- #### Image
357
-
358
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/image)
359
-
360
- #### Text
361
-
362
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/text)
363
-
364
- #### Text3D
365
-
366
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/text3d)
367
-
368
- #### Effects
369
-
370
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/effects)
371
-
372
- #### PositionalAudio
373
-
374
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/positional-audio)
375
-
376
- #### Billboard
377
-
378
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/billboard)
379
-
380
- #### ScreenSpace
381
-
382
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/screen-space)
383
-
384
- #### ScreenSizer
385
-
386
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/screen-sizer)
387
-
388
- #### GradientTexture
389
-
390
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/gradient-texture)
391
-
392
- #### Edges
393
-
394
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/edges)
395
-
396
- #### Outlines
397
-
398
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/outlines)
399
-
400
- #### Trail
401
-
402
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/trail)
403
-
404
- #### Sampler
405
-
406
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/sampler)
407
-
408
- #### ComputedAttribute
409
-
410
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/computed-attribute)
411
-
412
- #### Clone
413
-
414
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/clone)
415
-
416
- #### useAnimations
417
-
418
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/use-animations)
419
-
420
- #### MarchingCubes
421
-
422
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/marching-cubes)
423
-
424
- #### Decal
425
-
426
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/decal)
427
-
428
- #### Svg
429
-
430
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/svg)
431
-
432
- #### AsciiRenderer
433
-
434
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/ascii-renderer)
435
-
436
- #### Splat
437
-
438
- [Documentation has moved here](https://pmndrs.github.io/drei/abstractions/splat)
439
-
440
- ### Shaders
441
-
442
- #### MeshReflectorMaterial
443
-
444
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/mesh-reflector-material)
445
-
446
- #### MeshWobbleMaterial
447
-
448
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/mesh-wobble-material)
449
-
450
- #### MeshDistortMaterial
451
-
452
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/mesh-distort-material)
453
-
454
- #### MeshRefractionMaterial
455
-
456
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/mesh-refraction-material)
457
-
458
- #### MeshTransmissionMaterial
459
-
460
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/mesh-transmission-material)
461
-
462
- #### MeshDiscardMaterial
463
-
464
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/mesh-discard-material)
465
-
466
- #### PointMaterial
467
-
468
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/point-material)
469
-
470
- #### SoftShadows
471
-
472
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/soft-shadows)
473
-
474
- #### shaderMaterial
475
-
476
- [Documentation has moved here](https://pmndrs.github.io/drei/shaders/shader-material)
477
-
478
- ### Modifiers
479
-
480
- #### CurveModifier
481
-
482
- [Documentation has moved here](https://pmndrs.github.io/drei/modifiers/curve-modifier)
483
-
484
- ### Misc
485
-
486
- #### useContextBridge
487
-
488
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-context-bridge)
489
-
490
- #### Example
491
-
492
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/example)
493
-
494
- #### Html
495
-
496
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/html)
497
-
498
- #### CycleRaycast
499
-
500
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/cycle-raycast)
501
-
502
- #### Select
503
-
504
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/select)
505
-
506
- #### Sprite Animator
507
-
508
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/sprite-animator)
509
-
510
- #### Stats
511
-
512
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/stats)
513
-
514
- #### StatsGl
515
-
516
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/stats-gl)
517
-
518
- #### Wireframe
519
-
520
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/wireframe)
521
-
522
- #### useDepthBuffer
523
-
524
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-depth-buffer)
525
-
526
- #### Fbo / useFBO
527
-
528
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/fbo-use-fbo)
529
-
530
- #### useCamera
531
-
532
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-camera)
533
-
534
- #### CubeCamera / useCubeCamera
535
-
536
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/cube-camera-use-cube-camera)
537
-
538
- #### DetectGPU / useDetectGPU
539
-
540
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/detect-gpu-use-detect-gpu)
541
-
542
- #### useAspect
543
-
544
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-aspect)
545
-
546
- #### useCursor
547
-
548
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-cursor)
549
-
550
- #### useIntersect
551
-
552
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-intersect)
553
-
554
- #### useBoxProjectedEnv
555
-
556
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-box-projected-env)
557
-
558
- #### Trail / useTrail
559
-
560
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/trail-use-trail)
561
-
562
- #### useSurfaceSampler
563
-
564
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/use-surface-sampler)
565
-
566
- #### FaceLandmarker
567
-
568
- [Documentation has moved here](https://pmndrs.github.io/drei/misc/face-landmarker)
569
-
570
- ### Loading
571
-
572
- #### Loader
573
-
574
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/loader)
575
-
576
- #### Progress / useProgress
577
-
578
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/progress-use-progress)
579
-
580
- #### Gltf / useGLTF
581
-
582
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/gltf-use-gltf)
583
-
584
- #### Fbx / useFBX
585
-
586
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/fbx-use-fbx)
587
-
588
- #### Texture / useTexture
589
-
590
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/texture-use-texture)
591
-
592
- #### Ktx2 / useKTX2
593
-
594
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/ktx2-use-ktx2)
595
-
596
- #### CubeTexture / useCubeTexture
597
-
598
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/cube-texture-use-cube-texture)
599
-
600
- #### VideoTexture / useVideoTexture
601
-
602
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/video-texture-use-video-texture)
603
-
604
- #### TrailTexture / useTrailTexture
605
-
606
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/trail-texture-use-trail-texture)
607
-
608
- #### useFont
609
-
610
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/use-font)
611
-
612
- #### useSpriteLoader
613
-
614
- [Documentation has moved here](https://pmndrs.github.io/drei/loaders/use-sprite-loader)
615
-
616
- ### Performance
617
-
618
- #### Instances
619
-
620
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/instances)
621
-
622
- #### Merged
623
-
624
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/merged)
625
-
626
- #### Points
627
-
628
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/points)
629
-
630
- #### Segments
631
-
632
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/segments)
633
-
634
- #### Detailed
635
-
636
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/detailed)
637
-
638
- #### Preload
639
-
640
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/preload)
641
-
642
- #### BakeShadows
643
-
644
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/bake-shadows)
645
-
646
- #### meshBounds
647
-
648
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/mesh-bounds)
649
-
650
- #### AdaptiveDpr
651
-
652
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/adaptive-dpr)
653
-
654
- #### AdaptiveEvents
655
-
656
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/adaptive-events)
657
-
658
- #### Bvh
659
-
660
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/bvh)
661
-
662
- #### PerformanceMonitor
663
-
664
- [Documentation has moved here](https://pmndrs.github.io/drei/performances/performance-monitor)
665
-
666
- ### Portals
667
-
668
- #### Hud
669
-
670
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/hud)
671
-
672
- #### View
673
-
674
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/view)
675
-
676
- #### RenderTexture
677
-
678
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/render-texture)
679
-
680
- #### RenderCubeTexture
681
-
682
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/render-cube-texture)
683
-
684
- #### Fisheye
685
-
686
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/fisheye)
687
-
688
- #### Mask
689
-
690
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/mask)
691
-
692
- #### MeshPortalMaterial
693
-
694
- [Documentation has moved here](https://pmndrs.github.io/drei/portals/mesh-portal-material)
695
-
696
- ### Staging
697
-
698
- #### Center
699
-
700
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/center)
701
-
702
- #### Resize
703
-
704
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/resize)
705
-
706
- #### BBAnchor
707
-
708
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/bb-anchor)
709
-
710
- #### Bounds
711
-
712
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/bounds)
713
-
714
- #### CameraShake
715
-
716
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/camera-shake)
717
-
718
- #### Float
719
-
720
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/float)
721
-
722
- #### Stage
723
-
724
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/stage)
725
-
726
- #### Backdrop
727
-
728
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/backdrop)
729
-
730
- #### Shadow
731
-
732
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/shadow)
733
-
734
- #### Caustics
735
-
736
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/caustics)
737
-
738
- #### ContactShadows
739
-
740
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/contact-shadows)
741
-
742
- #### RandomizedLight
743
-
744
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/randomized-light)
745
-
746
- #### AccumulativeShadows
747
-
748
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/accumulative-shadows)
749
-
750
- #### SpotLight
751
-
752
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/spot-light)
753
-
754
- #### SpotLightShadow
755
-
756
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/spot-light-shadow)
757
-
758
- #### Environment
759
-
760
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/environment)
761
-
762
- #### Lightformer
763
-
764
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/lightformer)
765
-
766
- #### Sky
767
-
768
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/sky)
769
-
770
- #### Stars
771
-
772
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/stars)
773
-
774
- #### Sparkles
775
-
776
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/sparkles)
777
-
778
- #### Cloud
779
-
780
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/cloud)
781
-
782
- #### useEnvironment
783
-
784
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/use-environment)
785
-
786
- #### MatcapTexture / useMatcapTexture
787
-
788
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/matcap-texture-use-matcap-texture)
789
-
790
- #### NormalTexture / useNormalTexture
791
-
792
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/normal-texture-use-normal-texture)
793
-
794
- #### ShadowAlpha
795
-
796
- [Documentation has moved here](https://pmndrs.github.io/drei/staging/shadow-alpha)
797
-
798
- </details>
799
-
800
91
  ## Dev
801
92
 
802
93
  ### INSTALL