@types/three 0.126.1 → 0.128.0

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 (561) hide show
  1. three/LICENSE +0 -0
  2. three/README.md +1 -1
  3. three/examples/jsm/WebGL.d.ts +0 -0
  4. three/examples/jsm/animation/AnimationClipCreator.d.ts +0 -0
  5. three/examples/jsm/animation/CCDIKSolver.d.ts +2 -8
  6. three/examples/jsm/animation/MMDAnimationHelper.d.ts +27 -2
  7. three/examples/jsm/animation/MMDPhysics.d.ts +0 -0
  8. three/examples/jsm/cameras/CinematicCamera.d.ts +0 -0
  9. three/examples/jsm/controls/DeviceOrientationControls.d.ts +0 -0
  10. three/examples/jsm/controls/DragControls.d.ts +0 -0
  11. three/examples/jsm/controls/FirstPersonControls.d.ts +0 -0
  12. three/examples/jsm/controls/FlyControls.d.ts +0 -0
  13. three/examples/jsm/controls/OrbitControls.d.ts +1 -1
  14. three/examples/jsm/controls/PointerLockControls.d.ts +0 -0
  15. three/examples/jsm/controls/TrackballControls.d.ts +1 -1
  16. three/examples/jsm/controls/TransformControls.d.ts +0 -0
  17. three/examples/jsm/csm/CSM.d.ts +0 -0
  18. three/examples/jsm/csm/CSMHelper.d.ts +0 -0
  19. three/examples/jsm/csm/Frustum.d.ts +0 -0
  20. three/examples/jsm/csm/Shader.d.ts +0 -0
  21. three/examples/jsm/curves/CurveExtras.d.ts +0 -0
  22. three/examples/jsm/curves/NURBSCurve.d.ts +0 -0
  23. three/examples/jsm/curves/NURBSSurface.d.ts +0 -0
  24. three/examples/jsm/curves/NURBSUtils.d.ts +0 -0
  25. three/examples/jsm/deprecated/Geometry.d.ts +1 -1
  26. three/examples/jsm/effects/AnaglyphEffect.d.ts +0 -0
  27. three/examples/jsm/effects/AsciiEffect.d.ts +0 -0
  28. three/examples/jsm/effects/OutlineEffect.d.ts +1 -1
  29. three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +0 -0
  30. three/examples/jsm/effects/PeppersGhostEffect.d.ts +0 -0
  31. three/examples/jsm/effects/StereoEffect.d.ts +0 -0
  32. three/examples/jsm/environments/RoomEnvironment.d.ts +0 -0
  33. three/examples/jsm/exporters/ColladaExporter.d.ts +0 -0
  34. three/examples/jsm/exporters/DRACOExporter.d.ts +0 -0
  35. three/examples/jsm/exporters/GLTFExporter.d.ts +0 -0
  36. three/examples/jsm/exporters/MMDExporter.d.ts +0 -0
  37. three/examples/jsm/exporters/OBJExporter.d.ts +0 -0
  38. three/examples/jsm/exporters/PLYExporter.d.ts +0 -0
  39. three/examples/jsm/exporters/STLExporter.d.ts +0 -0
  40. three/examples/jsm/exporters/USDZExporter.d.ts +1 -1
  41. three/examples/jsm/geometries/BoxLineGeometry.d.ts +0 -0
  42. three/examples/jsm/geometries/ConvexGeometry.d.ts +0 -0
  43. three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
  44. three/examples/jsm/geometries/LightningStrike.d.ts +1 -1
  45. three/examples/jsm/geometries/ParametricGeometries.d.ts +0 -0
  46. three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +0 -0
  47. three/examples/jsm/geometries/TeapotGeometry.d.ts +0 -0
  48. three/examples/jsm/helpers/LightProbeHelper.d.ts +0 -0
  49. three/examples/jsm/helpers/PositionalAudioHelper.d.ts +0 -0
  50. three/examples/jsm/helpers/RectAreaLightHelper.d.ts +0 -1
  51. three/examples/jsm/helpers/VertexNormalsHelper.d.ts +0 -0
  52. three/examples/jsm/helpers/VertexTangentsHelper.d.ts +0 -0
  53. three/examples/jsm/interactive/HTMLMesh.d.ts +5 -0
  54. three/examples/jsm/interactive/InteractiveGroup.d.ts +5 -0
  55. three/examples/jsm/interactive/SelectionBox.d.ts +0 -0
  56. three/examples/jsm/interactive/SelectionHelper.d.ts +0 -0
  57. three/examples/jsm/libs/fflate.module.min.d.ts +0 -0
  58. three/examples/jsm/libs/stats.module.d.ts +0 -0
  59. three/examples/jsm/lights/LightProbeGenerator.d.ts +0 -0
  60. three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +0 -0
  61. three/examples/jsm/lines/Line2.d.ts +0 -0
  62. three/examples/jsm/lines/LineGeometry.d.ts +0 -0
  63. three/examples/jsm/lines/LineMaterial.d.ts +1 -0
  64. three/examples/jsm/lines/LineSegments2.d.ts +0 -0
  65. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +0 -0
  66. three/examples/jsm/lines/Wireframe.d.ts +0 -0
  67. three/examples/jsm/lines/WireframeGeometry2.d.ts +0 -0
  68. three/examples/jsm/loaders/3DMLoader.d.ts +0 -0
  69. three/examples/jsm/loaders/3MFLoader.d.ts +0 -0
  70. three/examples/jsm/loaders/AMFLoader.d.ts +0 -0
  71. three/examples/jsm/loaders/BVHLoader.d.ts +0 -0
  72. three/examples/jsm/loaders/BasisTextureLoader.d.ts +0 -0
  73. three/examples/jsm/loaders/ColladaLoader.d.ts +0 -0
  74. three/examples/jsm/loaders/DDSLoader.d.ts +0 -0
  75. three/examples/jsm/loaders/DRACOLoader.d.ts +0 -0
  76. three/examples/jsm/loaders/EXRLoader.d.ts +0 -0
  77. three/examples/jsm/loaders/FBXLoader.d.ts +0 -0
  78. three/examples/jsm/loaders/GCodeLoader.d.ts +0 -0
  79. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -0
  80. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +0 -0
  81. three/examples/jsm/loaders/IFCLoader.d.ts +18 -0
  82. three/examples/jsm/loaders/KMZLoader.d.ts +0 -0
  83. three/examples/jsm/loaders/KTX2Loader.d.ts +0 -0
  84. three/examples/jsm/loaders/KTXLoader.d.ts +0 -0
  85. three/examples/jsm/loaders/LDrawLoader.d.ts +0 -0
  86. three/examples/jsm/loaders/LUT3dlLoader.d.ts +0 -0
  87. three/examples/jsm/loaders/LUTCubeLoader.d.ts +0 -0
  88. three/examples/jsm/loaders/LWOLoader.d.ts +0 -0
  89. three/examples/jsm/loaders/LottieLoader.d.ts +0 -0
  90. three/examples/jsm/loaders/MD2Loader.d.ts +0 -0
  91. three/examples/jsm/loaders/MDDLoader.d.ts +0 -0
  92. three/examples/jsm/loaders/MMDLoader.d.ts +0 -0
  93. three/examples/jsm/loaders/MTLLoader.d.ts +0 -0
  94. three/examples/jsm/loaders/NRRDLoader.d.ts +0 -0
  95. three/examples/jsm/loaders/OBJLoader.d.ts +0 -0
  96. three/examples/jsm/loaders/PCDLoader.d.ts +0 -0
  97. three/examples/jsm/loaders/PDBLoader.d.ts +0 -0
  98. three/examples/jsm/loaders/PLYLoader.d.ts +0 -0
  99. three/examples/jsm/loaders/PRWMLoader.d.ts +0 -0
  100. three/examples/jsm/loaders/PVRLoader.d.ts +0 -0
  101. three/examples/jsm/loaders/RGBELoader.d.ts +0 -0
  102. three/examples/jsm/loaders/RGBMLoader.d.ts +0 -0
  103. three/examples/jsm/loaders/STLLoader.d.ts +0 -0
  104. three/examples/jsm/loaders/SVGLoader.d.ts +2 -1
  105. three/examples/jsm/loaders/TDSLoader.d.ts +0 -0
  106. three/examples/jsm/loaders/TGALoader.d.ts +6 -6
  107. three/examples/jsm/loaders/TTFLoader.d.ts +0 -0
  108. three/examples/jsm/loaders/TiltLoader.d.ts +0 -0
  109. three/examples/jsm/loaders/VOXLoader.d.ts +0 -0
  110. three/examples/jsm/loaders/VRMLLoader.d.ts +0 -0
  111. three/examples/jsm/loaders/VRMLoader.d.ts +0 -0
  112. three/examples/jsm/loaders/VTKLoader.d.ts +0 -0
  113. three/examples/jsm/loaders/XYZLoader.d.ts +0 -0
  114. three/examples/jsm/math/Capsule.d.ts +0 -0
  115. three/examples/jsm/math/ColorConverter.d.ts +0 -0
  116. three/examples/jsm/math/ConvexHull.d.ts +0 -0
  117. three/examples/jsm/math/ImprovedNoise.d.ts +0 -0
  118. three/examples/jsm/math/Lut.d.ts +0 -0
  119. three/examples/jsm/math/MeshSurfaceSampler.d.ts +0 -0
  120. three/examples/jsm/math/OBB.d.ts +1 -1
  121. three/examples/jsm/math/Octree.d.ts +0 -0
  122. three/examples/jsm/math/SimplexNoise.d.ts +0 -0
  123. three/examples/jsm/misc/ConvexObjectBreaker.d.ts +0 -0
  124. three/examples/jsm/misc/GPUComputationRenderer.d.ts +0 -0
  125. three/examples/jsm/misc/Gyroscope.d.ts +0 -0
  126. three/examples/jsm/misc/MD2Character.d.ts +0 -0
  127. three/examples/jsm/misc/MD2CharacterComplex.d.ts +0 -0
  128. three/examples/jsm/misc/MorphAnimMesh.d.ts +0 -0
  129. three/examples/jsm/misc/MorphBlendMesh.d.ts +0 -0
  130. three/examples/jsm/misc/ProgressiveLightMap.d.ts +61 -0
  131. three/examples/jsm/misc/RollerCoaster.d.ts +0 -0
  132. three/examples/jsm/misc/TubePainter.d.ts +0 -0
  133. three/examples/jsm/misc/Volume.d.ts +0 -0
  134. three/examples/jsm/misc/VolumeSlice.d.ts +0 -0
  135. three/examples/jsm/modifiers/CurveModifier.d.ts +0 -0
  136. three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +0 -0
  137. three/examples/jsm/modifiers/SimplifyModifier.d.ts +0 -0
  138. three/examples/jsm/modifiers/TessellateModifier.d.ts +0 -0
  139. three/examples/jsm/nodes/Nodes.d.ts +0 -0
  140. three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -0
  141. three/examples/jsm/nodes/accessors/ColorsNode.d.ts +0 -0
  142. three/examples/jsm/nodes/accessors/LightNode.d.ts +0 -0
  143. three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -0
  144. three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -0
  145. three/examples/jsm/nodes/accessors/ReflectNode.d.ts +0 -0
  146. three/examples/jsm/nodes/accessors/ResolutionNode.d.ts +0 -0
  147. three/examples/jsm/nodes/accessors/ScreenUVNode.d.ts +0 -0
  148. three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -0
  149. three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -0
  150. three/examples/jsm/nodes/core/ConstNode.d.ts +0 -0
  151. three/examples/jsm/nodes/core/ExpressionNode.d.ts +0 -0
  152. three/examples/jsm/nodes/core/FunctionCallNode.d.ts +0 -0
  153. three/examples/jsm/nodes/core/FunctionNode.d.ts +0 -0
  154. three/examples/jsm/nodes/core/InputNode.d.ts +0 -0
  155. three/examples/jsm/nodes/core/Node.d.ts +0 -0
  156. three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -0
  157. three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -0
  158. three/examples/jsm/nodes/core/NodeLib.d.ts +0 -0
  159. three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -0
  160. three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -0
  161. three/examples/jsm/nodes/core/StructNode.d.ts +0 -0
  162. three/examples/jsm/nodes/core/TempNode.d.ts +0 -0
  163. three/examples/jsm/nodes/core/VarNode.d.ts +0 -0
  164. three/examples/jsm/nodes/effects/BlurNode.d.ts +0 -0
  165. three/examples/jsm/nodes/effects/ColorAdjustmentNode.d.ts +0 -0
  166. three/examples/jsm/nodes/effects/LuminanceNode.d.ts +0 -0
  167. three/examples/jsm/nodes/inputs/BoolNode.d.ts +0 -0
  168. three/examples/jsm/nodes/inputs/ColorNode.d.ts +0 -0
  169. three/examples/jsm/nodes/inputs/CubeTextureNode.d.ts +0 -0
  170. three/examples/jsm/nodes/inputs/FloatNode.d.ts +0 -0
  171. three/examples/jsm/nodes/inputs/IntNode.d.ts +0 -0
  172. three/examples/jsm/nodes/inputs/Matrix3Node.d.ts +0 -0
  173. three/examples/jsm/nodes/inputs/Matrix4Node.d.ts +0 -0
  174. three/examples/jsm/nodes/inputs/PropertyNode.d.ts +0 -0
  175. three/examples/jsm/nodes/inputs/RTTNode.d.ts +0 -0
  176. three/examples/jsm/nodes/inputs/ReflectorNode.d.ts +0 -0
  177. three/examples/jsm/nodes/inputs/ScreenNode.d.ts +0 -0
  178. three/examples/jsm/nodes/inputs/TextureNode.d.ts +0 -0
  179. three/examples/jsm/nodes/inputs/Vector2Node.d.ts +0 -0
  180. three/examples/jsm/nodes/inputs/Vector3Node.d.ts +0 -0
  181. three/examples/jsm/nodes/inputs/Vector4Node.d.ts +0 -0
  182. three/examples/jsm/nodes/materials/BasicNodeMaterial.d.ts +0 -0
  183. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -0
  184. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -0
  185. three/examples/jsm/nodes/materials/PhongNodeMaterial.d.ts +0 -0
  186. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -0
  187. three/examples/jsm/nodes/materials/StandardNodeMaterial.d.ts +0 -0
  188. three/examples/jsm/nodes/materials/nodes/BasicNode.d.ts +0 -0
  189. three/examples/jsm/nodes/materials/nodes/MeshStandardNode.d.ts +0 -0
  190. three/examples/jsm/nodes/materials/nodes/PhongNode.d.ts +0 -0
  191. three/examples/jsm/nodes/materials/nodes/RawNode.d.ts +0 -0
  192. three/examples/jsm/nodes/materials/nodes/SpriteNode.d.ts +0 -0
  193. three/examples/jsm/nodes/materials/nodes/StandardNode.d.ts +0 -0
  194. three/examples/jsm/nodes/math/CondNode.d.ts +0 -0
  195. three/examples/jsm/nodes/math/MathNode.d.ts +0 -0
  196. three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -0
  197. three/examples/jsm/nodes/misc/BumpMapNode.d.ts +0 -0
  198. three/examples/jsm/nodes/misc/NormalMapNode.d.ts +0 -0
  199. three/examples/jsm/nodes/misc/TextureCubeNode.d.ts +0 -0
  200. three/examples/jsm/nodes/misc/TextureCubeUVNode.d.ts +0 -0
  201. three/examples/jsm/nodes/postprocessing/NodePass.d.ts +0 -0
  202. three/examples/jsm/nodes/postprocessing/NodePostProcessing.d.ts +0 -0
  203. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -0
  204. three/examples/jsm/nodes/procedural/NoiseNode.d.ts +0 -0
  205. three/examples/jsm/nodes/utils/BypassNode.d.ts +0 -0
  206. three/examples/jsm/nodes/utils/ColorSpaceNode.d.ts +0 -0
  207. three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -0
  208. three/examples/jsm/nodes/utils/MaxMIPLevelNode.d.ts +0 -0
  209. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -0
  210. three/examples/jsm/nodes/utils/SubSlot.d.ts +0 -0
  211. three/examples/jsm/nodes/utils/SwitchNode.d.ts +0 -0
  212. three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -0
  213. three/examples/jsm/nodes/utils/UVTransformNode.d.ts +0 -0
  214. three/examples/jsm/nodes/utils/VelocityNode.d.ts +0 -0
  215. three/examples/jsm/objects/Lensflare.d.ts +0 -0
  216. three/examples/jsm/objects/LightningStorm.d.ts +1 -1
  217. three/examples/jsm/objects/MarchingCubes.d.ts +0 -0
  218. three/examples/jsm/objects/Reflector.d.ts +0 -0
  219. three/examples/jsm/objects/ReflectorForSSRPass.d.ts +7 -7
  220. three/examples/jsm/objects/ReflectorRTT.d.ts +0 -0
  221. three/examples/jsm/objects/Refractor.d.ts +0 -0
  222. three/examples/jsm/objects/ShadowMesh.d.ts +0 -0
  223. three/examples/jsm/objects/Sky.d.ts +0 -0
  224. three/examples/jsm/objects/Water.d.ts +0 -0
  225. three/examples/jsm/objects/Water2.d.ts +0 -0
  226. three/examples/jsm/physics/AmmoPhysics.d.ts +0 -0
  227. three/examples/jsm/postprocessing/AdaptiveToneMappingPass.d.ts +0 -0
  228. three/examples/jsm/postprocessing/AfterimagePass.d.ts +0 -0
  229. three/examples/jsm/postprocessing/BloomPass.d.ts +0 -0
  230. three/examples/jsm/postprocessing/BokehPass.d.ts +0 -0
  231. three/examples/jsm/postprocessing/ClearPass.d.ts +0 -0
  232. three/examples/jsm/postprocessing/CubeTexturePass.d.ts +0 -0
  233. three/examples/jsm/postprocessing/DotScreenPass.d.ts +0 -0
  234. three/examples/jsm/postprocessing/EffectComposer.d.ts +0 -0
  235. three/examples/jsm/postprocessing/FilmPass.d.ts +0 -0
  236. three/examples/jsm/postprocessing/GlitchPass.d.ts +0 -0
  237. three/examples/jsm/postprocessing/HalftonePass.d.ts +0 -0
  238. three/examples/jsm/postprocessing/LUTPass.d.ts +0 -0
  239. three/examples/jsm/postprocessing/MaskPass.d.ts +0 -0
  240. three/examples/jsm/postprocessing/OutlinePass.d.ts +0 -0
  241. three/examples/jsm/postprocessing/Pass.d.ts +0 -0
  242. three/examples/jsm/postprocessing/RenderPass.d.ts +0 -0
  243. three/examples/jsm/postprocessing/SAOPass.d.ts +1 -1
  244. three/examples/jsm/postprocessing/SMAAPass.d.ts +0 -0
  245. three/examples/jsm/postprocessing/SSAARenderPass.d.ts +0 -0
  246. three/examples/jsm/postprocessing/SSAOPass.d.ts +0 -0
  247. three/examples/jsm/postprocessing/SSRPass.d.ts +3 -3
  248. three/examples/jsm/postprocessing/SSRrPass.d.ts +138 -0
  249. three/examples/jsm/postprocessing/SavePass.d.ts +0 -0
  250. three/examples/jsm/postprocessing/ShaderPass.d.ts +0 -0
  251. three/examples/jsm/postprocessing/TAARenderPass.d.ts +0 -0
  252. three/examples/jsm/postprocessing/TexturePass.d.ts +0 -0
  253. three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +0 -0
  254. three/examples/jsm/renderers/CSS2DRenderer.d.ts +0 -0
  255. three/examples/jsm/renderers/CSS3DRenderer.d.ts +0 -0
  256. three/examples/jsm/renderers/Projector.d.ts +0 -0
  257. three/examples/jsm/renderers/SVGRenderer.d.ts +0 -0
  258. three/examples/jsm/shaders/AfterimageShader.d.ts +0 -0
  259. three/examples/jsm/shaders/BasicShader.d.ts +0 -0
  260. three/examples/jsm/shaders/BleachBypassShader.d.ts +0 -0
  261. three/examples/jsm/shaders/BlendShader.d.ts +0 -0
  262. three/examples/jsm/shaders/BokehShader.d.ts +0 -0
  263. three/examples/jsm/shaders/BokehShader2.d.ts +0 -0
  264. three/examples/jsm/shaders/BrightnessContrastShader.d.ts +0 -0
  265. three/examples/jsm/shaders/ColorCorrectionShader.d.ts +0 -0
  266. three/examples/jsm/shaders/ColorifyShader.d.ts +0 -0
  267. three/examples/jsm/shaders/ConvolutionShader.d.ts +0 -0
  268. three/examples/jsm/shaders/CopyShader.d.ts +0 -0
  269. three/examples/jsm/shaders/DOFMipMapShader.d.ts +0 -0
  270. three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +0 -0
  271. three/examples/jsm/shaders/DigitalGlitch.d.ts +0 -0
  272. three/examples/jsm/shaders/DotScreenShader.d.ts +0 -0
  273. three/examples/jsm/shaders/FXAAShader.d.ts +0 -0
  274. three/examples/jsm/shaders/FilmShader.d.ts +0 -0
  275. three/examples/jsm/shaders/FocusShader.d.ts +0 -0
  276. three/examples/jsm/shaders/FreiChenShader.d.ts +0 -0
  277. three/examples/jsm/shaders/FresnelShader.d.ts +0 -0
  278. three/examples/jsm/shaders/GammaCorrectionShader.d.ts +0 -0
  279. three/examples/jsm/shaders/GodRaysShader.d.ts +0 -0
  280. three/examples/jsm/shaders/HalftoneShader.d.ts +0 -0
  281. three/examples/jsm/shaders/HorizontalBlurShader.d.ts +0 -0
  282. three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +0 -0
  283. three/examples/jsm/shaders/HueSaturationShader.d.ts +0 -0
  284. three/examples/jsm/shaders/KaleidoShader.d.ts +0 -0
  285. three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +0 -0
  286. three/examples/jsm/shaders/LuminosityShader.d.ts +0 -0
  287. three/examples/jsm/shaders/MirrorShader.d.ts +0 -0
  288. three/examples/jsm/shaders/NormalMapShader.d.ts +0 -0
  289. three/examples/jsm/shaders/ParallaxShader.d.ts +0 -0
  290. three/examples/jsm/shaders/PixelShader.d.ts +0 -0
  291. three/examples/jsm/shaders/RGBShiftShader.d.ts +0 -0
  292. three/examples/jsm/shaders/SAOShader.d.ts +0 -0
  293. three/examples/jsm/shaders/SMAAShader.d.ts +0 -0
  294. three/examples/jsm/shaders/SSAOShader.d.ts +0 -0
  295. three/examples/jsm/shaders/SSRShader.d.ts +1 -2
  296. three/examples/jsm/shaders/SSRrShader.d.ts +48 -0
  297. three/examples/jsm/shaders/SepiaShader.d.ts +0 -0
  298. three/examples/jsm/shaders/SobelOperatorShader.d.ts +0 -0
  299. three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +0 -0
  300. three/examples/jsm/shaders/TechnicolorShader.d.ts +0 -0
  301. three/examples/jsm/shaders/ToneMapShader.d.ts +0 -0
  302. three/examples/jsm/shaders/ToonShader.d.ts +0 -0
  303. three/examples/jsm/shaders/TriangleBlurShader.d.ts +0 -0
  304. three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +0 -0
  305. three/examples/jsm/shaders/VerticalBlurShader.d.ts +0 -0
  306. three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +0 -0
  307. three/examples/jsm/shaders/VignetteShader.d.ts +0 -0
  308. three/examples/jsm/shaders/VolumeShader.d.ts +0 -0
  309. three/examples/jsm/shaders/WaterRefractionShader.d.ts +0 -0
  310. three/examples/jsm/utils/BufferGeometryUtils.d.ts +0 -0
  311. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +0 -0
  312. three/examples/jsm/utils/GeometryUtils.d.ts +0 -0
  313. three/examples/jsm/utils/RoughnessMipmapper.d.ts +0 -0
  314. three/examples/jsm/utils/SceneUtils.d.ts +0 -0
  315. three/examples/jsm/utils/ShadowMapViewer.d.ts +0 -0
  316. three/examples/jsm/utils/SkeletonUtils.d.ts +0 -0
  317. three/examples/jsm/utils/UVsDebug.d.ts +0 -0
  318. three/examples/jsm/webxr/ARButton.d.ts +0 -0
  319. three/examples/jsm/webxr/VRButton.d.ts +0 -0
  320. three/examples/jsm/webxr/XRControllerModelFactory.d.ts +0 -0
  321. three/examples/jsm/webxr/XREstimatedLight.d.ts +0 -0
  322. three/examples/jsm/webxr/XRHandModelFactory.d.ts +0 -0
  323. three/examples/jsm/webxr/XRHandOculusMeshModel.d.ts +0 -0
  324. three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +0 -0
  325. three/index.d.ts +1 -1
  326. three/package.json +2 -2
  327. three/src/Three.Legacy.d.ts +0 -0
  328. three/src/Three.d.ts +0 -0
  329. three/src/animation/AnimationAction.d.ts +0 -0
  330. three/src/animation/AnimationClip.d.ts +1 -1
  331. three/src/animation/AnimationMixer.d.ts +0 -0
  332. three/src/animation/AnimationObjectGroup.d.ts +0 -0
  333. three/src/animation/AnimationUtils.d.ts +0 -0
  334. three/src/animation/KeyframeTrack.d.ts +1 -1
  335. three/src/animation/PropertyBinding.d.ts +0 -0
  336. three/src/animation/PropertyMixer.d.ts +0 -0
  337. three/src/animation/tracks/BooleanKeyframeTrack.d.ts +0 -0
  338. three/src/animation/tracks/ColorKeyframeTrack.d.ts +0 -0
  339. three/src/animation/tracks/NumberKeyframeTrack.d.ts +0 -0
  340. three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +0 -0
  341. three/src/animation/tracks/StringKeyframeTrack.d.ts +0 -0
  342. three/src/animation/tracks/VectorKeyframeTrack.d.ts +0 -0
  343. three/src/audio/Audio.d.ts +5 -5
  344. three/src/audio/AudioAnalyser.d.ts +0 -0
  345. three/src/audio/AudioContext.d.ts +0 -0
  346. three/src/audio/AudioListener.d.ts +0 -0
  347. three/src/audio/PositionalAudio.d.ts +0 -0
  348. three/src/cameras/ArrayCamera.d.ts +0 -0
  349. three/src/cameras/Camera.d.ts +0 -0
  350. three/src/cameras/CubeCamera.d.ts +0 -0
  351. three/src/cameras/OrthographicCamera.d.ts +0 -0
  352. three/src/cameras/PerspectiveCamera.d.ts +0 -0
  353. three/src/cameras/StereoCamera.d.ts +0 -0
  354. three/src/constants.d.ts +21 -0
  355. three/src/core/BufferAttribute.d.ts +1 -1
  356. three/src/core/BufferGeometry.d.ts +8 -4
  357. three/src/core/Clock.d.ts +0 -0
  358. three/src/core/EventDispatcher.d.ts +0 -0
  359. three/src/core/GLBufferAttribute.d.ts +0 -0
  360. three/src/core/InstancedBufferAttribute.d.ts +0 -0
  361. three/src/core/InstancedBufferGeometry.d.ts +0 -0
  362. three/src/core/InstancedInterleavedBuffer.d.ts +0 -0
  363. three/src/core/InterleavedBuffer.d.ts +0 -0
  364. three/src/core/InterleavedBufferAttribute.d.ts +10 -7
  365. three/src/core/Layers.d.ts +0 -0
  366. three/src/core/Object3D.d.ts +1 -1
  367. three/src/core/Raycaster.d.ts +0 -0
  368. three/src/core/Uniform.d.ts +0 -0
  369. three/src/extras/DataUtils.d.ts +0 -0
  370. three/src/extras/ImageUtils.d.ts +0 -0
  371. three/src/extras/PMREMGenerator.d.ts +0 -0
  372. three/src/extras/ShapeUtils.d.ts +0 -0
  373. three/src/extras/core/Curve.d.ts +1 -1
  374. three/src/extras/core/CurvePath.d.ts +0 -0
  375. three/src/extras/core/Font.d.ts +0 -0
  376. three/src/extras/core/Path.d.ts +0 -0
  377. three/src/extras/core/Shape.d.ts +0 -0
  378. three/src/extras/core/ShapePath.d.ts +0 -0
  379. three/src/extras/curves/ArcCurve.d.ts +0 -0
  380. three/src/extras/curves/CatmullRomCurve3.d.ts +0 -0
  381. three/src/extras/curves/CubicBezierCurve.d.ts +0 -0
  382. three/src/extras/curves/CubicBezierCurve3.d.ts +0 -0
  383. three/src/extras/curves/Curves.d.ts +0 -0
  384. three/src/extras/curves/EllipseCurve.d.ts +0 -0
  385. three/src/extras/curves/LineCurve.d.ts +0 -0
  386. three/src/extras/curves/LineCurve3.d.ts +0 -0
  387. three/src/extras/curves/QuadraticBezierCurve.d.ts +0 -0
  388. three/src/extras/curves/QuadraticBezierCurve3.d.ts +0 -0
  389. three/src/extras/curves/SplineCurve.d.ts +0 -0
  390. three/src/extras/objects/ImmediateRenderObject.d.ts +0 -0
  391. three/src/geometries/BoxGeometry.d.ts +0 -0
  392. three/src/geometries/CircleGeometry.d.ts +0 -0
  393. three/src/geometries/ConeGeometry.d.ts +0 -0
  394. three/src/geometries/CylinderGeometry.d.ts +0 -0
  395. three/src/geometries/DodecahedronGeometry.d.ts +0 -0
  396. three/src/geometries/EdgesGeometry.d.ts +0 -0
  397. three/src/geometries/ExtrudeGeometry.d.ts +0 -0
  398. three/src/geometries/Geometries.d.ts +0 -0
  399. three/src/geometries/IcosahedronGeometry.d.ts +0 -0
  400. three/src/geometries/LatheGeometry.d.ts +0 -0
  401. three/src/geometries/OctahedronGeometry.d.ts +0 -0
  402. three/src/geometries/ParametricGeometry.d.ts +0 -0
  403. three/src/geometries/PlaneGeometry.d.ts +0 -0
  404. three/src/geometries/PolyhedronGeometry.d.ts +0 -0
  405. three/src/geometries/RingGeometry.d.ts +0 -0
  406. three/src/geometries/ShapeGeometry.d.ts +0 -0
  407. three/src/geometries/SphereGeometry.d.ts +0 -0
  408. three/src/geometries/TetrahedronGeometry.d.ts +0 -0
  409. three/src/geometries/TextGeometry.d.ts +0 -0
  410. three/src/geometries/TorusGeometry.d.ts +0 -0
  411. three/src/geometries/TorusKnotGeometry.d.ts +0 -0
  412. three/src/geometries/TubeGeometry.d.ts +0 -0
  413. three/src/geometries/WireframeGeometry.d.ts +0 -0
  414. three/src/helpers/ArrowHelper.d.ts +0 -0
  415. three/src/helpers/AxesHelper.d.ts +0 -0
  416. three/src/helpers/Box3Helper.d.ts +0 -0
  417. three/src/helpers/BoxHelper.d.ts +0 -0
  418. three/src/helpers/CameraHelper.d.ts +0 -0
  419. three/src/helpers/DirectionalLightHelper.d.ts +0 -0
  420. three/src/helpers/GridHelper.d.ts +0 -0
  421. three/src/helpers/HemisphereLightHelper.d.ts +0 -0
  422. three/src/helpers/PlaneHelper.d.ts +0 -0
  423. three/src/helpers/PointLightHelper.d.ts +0 -0
  424. three/src/helpers/PolarGridHelper.d.ts +6 -6
  425. three/src/helpers/SkeletonHelper.d.ts +0 -0
  426. three/src/helpers/SpotLightHelper.d.ts +0 -0
  427. three/src/lights/AmbientLight.d.ts +0 -0
  428. three/src/lights/AmbientLightProbe.d.ts +0 -0
  429. three/src/lights/DirectionalLight.d.ts +0 -0
  430. three/src/lights/DirectionalLightShadow.d.ts +0 -0
  431. three/src/lights/HemisphereLight.d.ts +0 -0
  432. three/src/lights/HemisphereLightProbe.d.ts +0 -0
  433. three/src/lights/Light.d.ts +0 -0
  434. three/src/lights/LightProbe.d.ts +0 -0
  435. three/src/lights/LightShadow.d.ts +1 -1
  436. three/src/lights/PointLight.d.ts +0 -0
  437. three/src/lights/PointLightShadow.d.ts +0 -0
  438. three/src/lights/RectAreaLight.d.ts +0 -0
  439. three/src/lights/SpotLight.d.ts +0 -0
  440. three/src/lights/SpotLightShadow.d.ts +0 -0
  441. three/src/loaders/AnimationLoader.d.ts +0 -0
  442. three/src/loaders/AudioLoader.d.ts +0 -0
  443. three/src/loaders/BufferGeometryLoader.d.ts +0 -0
  444. three/src/loaders/Cache.d.ts +0 -0
  445. three/src/loaders/CompressedTextureLoader.d.ts +0 -0
  446. three/src/loaders/CubeTextureLoader.d.ts +0 -0
  447. three/src/loaders/DataTextureLoader.d.ts +1 -1
  448. three/src/loaders/FileLoader.d.ts +0 -0
  449. three/src/loaders/FontLoader.d.ts +0 -0
  450. three/src/loaders/ImageBitmapLoader.d.ts +0 -0
  451. three/src/loaders/ImageLoader.d.ts +0 -0
  452. three/src/loaders/Loader.d.ts +0 -0
  453. three/src/loaders/LoaderUtils.d.ts +0 -0
  454. three/src/loaders/LoadingManager.d.ts +0 -0
  455. three/src/loaders/MaterialLoader.d.ts +0 -0
  456. three/src/loaders/ObjectLoader.d.ts +0 -0
  457. three/src/loaders/TextureLoader.d.ts +0 -0
  458. three/src/materials/LineBasicMaterial.d.ts +0 -0
  459. three/src/materials/LineDashedMaterial.d.ts +0 -0
  460. three/src/materials/Material.d.ts +8 -1
  461. three/src/materials/Materials.d.ts +0 -0
  462. three/src/materials/MeshBasicMaterial.d.ts +0 -0
  463. three/src/materials/MeshDepthMaterial.d.ts +0 -0
  464. three/src/materials/MeshDistanceMaterial.d.ts +0 -0
  465. three/src/materials/MeshLambertMaterial.d.ts +0 -0
  466. three/src/materials/MeshMatcapMaterial.d.ts +0 -0
  467. three/src/materials/MeshNormalMaterial.d.ts +0 -0
  468. three/src/materials/MeshPhongMaterial.d.ts +0 -0
  469. three/src/materials/MeshPhysicalMaterial.d.ts +0 -0
  470. three/src/materials/MeshStandardMaterial.d.ts +0 -0
  471. three/src/materials/MeshToonMaterial.d.ts +0 -0
  472. three/src/materials/PointsMaterial.d.ts +0 -0
  473. three/src/materials/RawShaderMaterial.d.ts +0 -0
  474. three/src/materials/ShaderMaterial.d.ts +0 -0
  475. three/src/materials/ShadowMaterial.d.ts +0 -0
  476. three/src/materials/SpriteMaterial.d.ts +0 -0
  477. three/src/math/Box2.d.ts +1 -1
  478. three/src/math/Box3.d.ts +1 -1
  479. three/src/math/Color.d.ts +1 -1
  480. three/src/math/Cylindrical.d.ts +1 -1
  481. three/src/math/Euler.d.ts +3 -3
  482. three/src/math/Frustum.d.ts +1 -1
  483. three/src/math/Interpolant.d.ts +0 -0
  484. three/src/math/Line3.d.ts +1 -1
  485. three/src/math/MathUtils.d.ts +2 -0
  486. three/src/math/Matrix3.d.ts +1 -1
  487. three/src/math/Matrix4.d.ts +11 -1
  488. three/src/math/Plane.d.ts +2 -2
  489. three/src/math/Quaternion.d.ts +3 -7
  490. three/src/math/Ray.d.ts +1 -1
  491. three/src/math/Sphere.d.ts +3 -1
  492. three/src/math/Spherical.d.ts +1 -1
  493. three/src/math/SphericalHarmonics3.d.ts +1 -1
  494. three/src/math/Triangle.d.ts +1 -1
  495. three/src/math/Vector2.d.ts +1 -1
  496. three/src/math/Vector3.d.ts +1 -1
  497. three/src/math/Vector4.d.ts +1 -1
  498. three/src/math/interpolants/CubicInterpolant.d.ts +0 -0
  499. three/src/math/interpolants/DiscreteInterpolant.d.ts +0 -0
  500. three/src/math/interpolants/LinearInterpolant.d.ts +0 -0
  501. three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +0 -0
  502. three/src/objects/Bone.d.ts +0 -0
  503. three/src/objects/Group.d.ts +0 -0
  504. three/src/objects/InstancedMesh.d.ts +0 -0
  505. three/src/objects/LOD.d.ts +0 -0
  506. three/src/objects/Line.d.ts +0 -0
  507. three/src/objects/LineLoop.d.ts +0 -0
  508. three/src/objects/LineSegments.d.ts +0 -0
  509. three/src/objects/Mesh.d.ts +0 -0
  510. three/src/objects/Points.d.ts +0 -0
  511. three/src/objects/Skeleton.d.ts +0 -0
  512. three/src/objects/SkinnedMesh.d.ts +2 -0
  513. three/src/objects/Sprite.d.ts +0 -0
  514. three/src/renderers/WebGL1Renderer.d.ts +0 -0
  515. three/src/renderers/WebGLCubeRenderTarget.d.ts +0 -0
  516. three/src/renderers/WebGLMultisampleRenderTarget.d.ts +0 -0
  517. three/src/renderers/WebGLRenderTarget.d.ts +1 -1
  518. three/src/renderers/WebGLRenderer.d.ts +0 -18
  519. three/src/renderers/shaders/ShaderChunk.d.ts +0 -0
  520. three/src/renderers/shaders/ShaderLib.d.ts +0 -0
  521. three/src/renderers/shaders/UniformsLib.d.ts +0 -0
  522. three/src/renderers/shaders/UniformsUtils.d.ts +0 -0
  523. three/src/renderers/webgl/WebGLAttributes.d.ts +0 -0
  524. three/src/renderers/webgl/WebGLBindingStates.d.ts +0 -0
  525. three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -0
  526. three/src/renderers/webgl/WebGLCapabilities.d.ts +0 -0
  527. three/src/renderers/webgl/WebGLClipping.d.ts +0 -0
  528. three/src/renderers/webgl/WebGLCubeMaps.d.ts +0 -0
  529. three/src/renderers/webgl/WebGLExtensions.d.ts +0 -0
  530. three/src/renderers/webgl/WebGLGeometries.d.ts +0 -0
  531. three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +0 -0
  532. three/src/renderers/webgl/WebGLInfo.d.ts +0 -0
  533. three/src/renderers/webgl/WebGLLights.d.ts +0 -0
  534. three/src/renderers/webgl/WebGLObjects.d.ts +0 -0
  535. three/src/renderers/webgl/WebGLProgram.d.ts +0 -0
  536. three/src/renderers/webgl/WebGLPrograms.d.ts +0 -0
  537. three/src/renderers/webgl/WebGLProperties.d.ts +0 -0
  538. three/src/renderers/webgl/WebGLRenderLists.d.ts +0 -0
  539. three/src/renderers/webgl/WebGLShader.d.ts +0 -0
  540. three/src/renderers/webgl/WebGLShadowMap.d.ts +2 -1
  541. three/src/renderers/webgl/WebGLState.d.ts +2 -0
  542. three/src/renderers/webgl/WebGLTextures.d.ts +0 -0
  543. three/src/renderers/webgl/WebGLUniforms.d.ts +0 -0
  544. three/src/renderers/webgl/WebGLUtils.d.ts +0 -0
  545. three/src/renderers/webxr/WebXR.d.ts +11 -1
  546. three/src/renderers/webxr/WebXRController.d.ts +0 -0
  547. three/src/renderers/webxr/WebXRManager.d.ts +0 -0
  548. three/src/scenes/Fog.d.ts +0 -0
  549. three/src/scenes/FogExp2.d.ts +0 -0
  550. three/src/scenes/Scene.d.ts +1 -3
  551. three/src/textures/CanvasTexture.d.ts +0 -0
  552. three/src/textures/CompressedTexture.d.ts +0 -0
  553. three/src/textures/CubeTexture.d.ts +0 -0
  554. three/src/textures/DataTexture.d.ts +0 -0
  555. three/src/textures/DataTexture2DArray.d.ts +0 -0
  556. three/src/textures/DataTexture3D.d.ts +0 -0
  557. three/src/textures/DepthTexture.d.ts +0 -0
  558. three/src/textures/Texture.d.ts +1 -1
  559. three/src/textures/VideoTexture.d.ts +0 -0
  560. three/examples/jsm/loaders/AssimpLoader.d.ts +0 -19
  561. three/examples/jsm/loaders/XLoader.d.ts +0 -19
File without changes
File without changes
@@ -7,7 +7,7 @@ export class DataTextureLoader extends Loader {
7
7
 
8
8
  load(
9
9
  url: string,
10
- onLoad: (dataTexture: DataTexture) => void,
10
+ onLoad: (dataTexture: DataTexture, texData: object) => void,
11
11
  onProgress?: (event: ProgressEvent) => void,
12
12
  onError?: (event: ErrorEvent) => void,
13
13
  ): DataTexture;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -15,6 +15,7 @@ import {
15
15
 
16
16
  export interface MaterialParameters {
17
17
  alphaTest?: number;
18
+ alphaToCoverage?: boolean;
18
19
  blendDst?: BlendingDstFactor;
19
20
  blendDstAlpha?: number;
20
21
  blendEquation?: BlendingEquation;
@@ -68,6 +69,12 @@ export class Material extends EventDispatcher {
68
69
  */
69
70
  alphaTest: number;
70
71
 
72
+ /**
73
+ * Enables alpha to coverage. Can only be used with MSAA-enabled rendering contexts.
74
+ * @default false
75
+ */
76
+ alphaToCoverage: boolean;
77
+
71
78
  /**
72
79
  * Blending destination. It's one of the blending mode constants defined in Three.js. Default is {@link OneMinusSrcAlphaFactor}.
73
80
  * @default THREE.OneMinusSrcAlphaFactor
@@ -354,7 +361,7 @@ export class Material extends EventDispatcher {
354
361
  /**
355
362
  * Return a new material with the same parameters as this material.
356
363
  */
357
- clone(): Material;
364
+ clone(): this;
358
365
 
359
366
  /**
360
367
  * Copy the parameters from the passed material into this material.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
three/src/math/Box2.d.ts CHANGED
@@ -18,7 +18,7 @@ export class Box2 {
18
18
  set(min: Vector2, max: Vector2): Box2;
19
19
  setFromPoints(points: Vector2[]): Box2;
20
20
  setFromCenterAndSize(center: Vector2, size: Vector2): Box2;
21
- clone(): Box2;
21
+ clone(): this;
22
22
  copy(box: Box2): this;
23
23
  makeEmpty(): Box2;
24
24
  isEmpty(): boolean;
three/src/math/Box3.d.ts CHANGED
@@ -26,7 +26,7 @@ export class Box3 {
26
26
  setFromPoints(points: Vector3[]): this;
27
27
  setFromCenterAndSize(center: Vector3, size: Vector3): this;
28
28
  setFromObject(object: Object3D): this;
29
- clone(): Box3;
29
+ clone(): this;
30
30
  copy(box: Box3): this;
31
31
  makeEmpty(): this;
32
32
  isEmpty(): boolean;
three/src/math/Color.d.ts CHANGED
@@ -76,7 +76,7 @@ export class Color {
76
76
  /**
77
77
  * Clones this color.
78
78
  */
79
- clone(): Color;
79
+ clone(): this;
80
80
 
81
81
  /**
82
82
  * Copies given color.
@@ -18,7 +18,7 @@ export class Cylindrical {
18
18
  */
19
19
  y: number;
20
20
 
21
- clone(): Cylindrical;
21
+ clone(): this;
22
22
  copy(other: Cylindrical): this;
23
23
  set(radius: number, theta: number, y: number): this;
24
24
  setFromVector3(vec3: Vector3): this;
three/src/math/Euler.d.ts CHANGED
@@ -29,10 +29,10 @@ export class Euler {
29
29
  _onChangeCallback: () => void;
30
30
 
31
31
  set(x: number, y: number, z: number, order?: string): Euler;
32
- clone(): Euler;
32
+ clone(): this;
33
33
  copy(euler: Euler): this;
34
- setFromRotationMatrix(m: Matrix4, order?: string): Euler;
35
- setFromQuaternion(q: Quaternion, order?: string): Euler;
34
+ setFromRotationMatrix(m: Matrix4, order?: string, update?: boolean): Euler;
35
+ setFromQuaternion(q: Quaternion, order?: string, update?: boolean): Euler;
36
36
  setFromVector3(v: Vector3, order?: string): Euler;
37
37
  reorder(newOrder: string): Euler;
38
38
  equals(euler: Euler): boolean;
@@ -18,7 +18,7 @@ export class Frustum {
18
18
  planes: Plane[];
19
19
 
20
20
  set(p0: Plane, p1: Plane, p2: Plane, p3: Plane, p4: Plane, p5: Plane): Frustum;
21
- clone(): Frustum;
21
+ clone(): this;
22
22
  copy(frustum: Frustum): this;
23
23
  setFromProjectionMatrix(m: Matrix4): this;
24
24
  intersectsObject(object: Object3D): boolean;
File without changes
three/src/math/Line3.d.ts CHANGED
@@ -15,7 +15,7 @@ export class Line3 {
15
15
  end: Vector3;
16
16
 
17
17
  set(start?: Vector3, end?: Vector3): Line3;
18
- clone(): Line3;
18
+ clone(): this;
19
19
  copy(line: Line3): this;
20
20
  getCenter(target: Vector3): Vector3;
21
21
  delta(target: Vector3): Vector3;
@@ -68,6 +68,8 @@ export namespace MathUtils {
68
68
 
69
69
  function isPowerOfTwo(value: number): boolean;
70
70
 
71
+ function inverseLerp(x: number, y: number, t: number): number;
72
+
71
73
  /**
72
74
  * Returns a value linearly interpolated from two known points based
73
75
  * on the given interval - t = 0 will return x and t = 1 will return y.
@@ -72,7 +72,7 @@ export class Matrix3 implements Matrix {
72
72
  n33: number,
73
73
  ): Matrix3;
74
74
  identity(): Matrix3;
75
- clone(): Matrix3;
75
+ clone(): this;
76
76
  copy(m: Matrix3): this;
77
77
  extractBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): Matrix3;
78
78
  setFromMatrix4(m: Matrix4): Matrix3;
@@ -1,7 +1,7 @@
1
1
  import { Vector3 } from './Vector3';
2
2
  import { Euler } from './Euler';
3
3
  import { Quaternion } from './Quaternion';
4
- import { Matrix } from './Matrix3';
4
+ import { Matrix, Matrix3 } from './Matrix3';
5
5
 
6
6
  export type Matrix4Tuple = [
7
7
  number,
@@ -184,6 +184,11 @@ export class Matrix4 implements Matrix {
184
184
  */
185
185
  makeScale(x: number, y: number, z: number): Matrix4;
186
186
 
187
+ /**
188
+ * Sets this matrix as shear transform.
189
+ */
190
+ makeShear(x: number, y: number, z: number): Matrix4;
191
+
187
192
  /**
188
193
  * Sets this matrix to the transformation composed of translation, rotation and scale.
189
194
  */
@@ -234,6 +239,11 @@ export class Matrix4 implements Matrix {
234
239
  */
235
240
  toArray(array?: ArrayLike<number>, offset?: number): ArrayLike<number>;
236
241
 
242
+ /**
243
+ * Set the upper 3x3 elements of this matrix to the values of the Matrix3 m.
244
+ */
245
+ setFromMatrix3(m: Matrix3): Matrix4;
246
+
237
247
  /**
238
248
  * @deprecated Use {@link Matrix4#copyPosition .copyPosition()} instead.
239
249
  */
three/src/math/Plane.d.ts CHANGED
@@ -24,7 +24,7 @@ export class Plane {
24
24
  setComponents(x: number, y: number, z: number, w: number): Plane;
25
25
  setFromNormalAndCoplanarPoint(normal: Vector3, point: Vector3): Plane;
26
26
  setFromCoplanarPoints(a: Vector3, b: Vector3, c: Vector3): Plane;
27
- clone(): Plane;
27
+ clone(): this;
28
28
  copy(plane: Plane): this;
29
29
  normalize(): Plane;
30
30
  negate(): Plane;
@@ -32,7 +32,7 @@ export class Plane {
32
32
  distanceToSphere(sphere: Sphere): number;
33
33
  projectPoint(point: Vector3, target: Vector3): Vector3;
34
34
  orthoPoint(point: Vector3, target: Vector3): Vector3;
35
- intersectLine(line: Line3, target: Vector3): Vector3 | undefined;
35
+ intersectLine(line: Line3, target: Vector3): Vector3 | null;
36
36
  intersectsLine(line: Line3): boolean;
37
37
  intersectsBox(box: Box3): boolean;
38
38
  intersectsSphere(sphere: Sphere): boolean;
@@ -49,7 +49,7 @@ export class Quaternion {
49
49
  /**
50
50
  * Clones this quaternion.
51
51
  */
52
- clone(): Quaternion;
52
+ clone(): this;
53
53
 
54
54
  /**
55
55
  * Copies values of q to this quaternion.
@@ -59,7 +59,7 @@ export class Quaternion {
59
59
  /**
60
60
  * Sets this quaternion from rotation specified by Euler angles.
61
61
  */
62
- setFromEuler(euler: Euler): Quaternion;
62
+ setFromEuler(euler: Euler, update?: boolean): Quaternion;
63
63
 
64
64
  /**
65
65
  * Sets this quaternion from rotation specified by axis and angle.
@@ -110,6 +110,7 @@ export class Quaternion {
110
110
  multiplyQuaternions(a: Quaternion, b: Quaternion): Quaternion;
111
111
 
112
112
  slerp(qb: Quaternion, t: number): Quaternion;
113
+ slerpQuaternions(qa: Quaternion, qb: Quaternion, t: number): Quaternion;
113
114
  equals(v: Quaternion): boolean;
114
115
 
115
116
  /**
@@ -138,11 +139,6 @@ export class Quaternion {
138
139
  _onChange(callback: () => void): Quaternion;
139
140
  _onChangeCallback: () => void;
140
141
 
141
- /**
142
- * Adapted from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/.
143
- */
144
- static slerp(qa: Quaternion, qb: Quaternion, qm: Quaternion, t: number): Quaternion;
145
-
146
142
  static slerpFlat(
147
143
  dst: number[],
148
144
  dstOffset: number,
three/src/math/Ray.d.ts CHANGED
@@ -18,7 +18,7 @@ export class Ray {
18
18
  direction: Vector3;
19
19
 
20
20
  set(origin: Vector3, direction: Vector3): Ray;
21
- clone(): Ray;
21
+ clone(): this;
22
22
  copy(ray: Ray): this;
23
23
  at(t: number, target: Vector3): Vector3;
24
24
  lookAt(v: Vector3): Ray;
@@ -18,8 +18,9 @@ export class Sphere {
18
18
 
19
19
  set(center: Vector3, radius: number): Sphere;
20
20
  setFromPoints(points: Vector3[], optionalCenter?: Vector3): Sphere;
21
- clone(): Sphere;
21
+ clone(): this;
22
22
  copy(sphere: Sphere): this;
23
+ expandByPoint(point: Vector3): this;
23
24
  isEmpty(): boolean;
24
25
  makeEmpty(): this;
25
26
  containsPoint(point: Vector3): boolean;
@@ -32,6 +33,7 @@ export class Sphere {
32
33
  applyMatrix4(matrix: Matrix4): Sphere;
33
34
  translate(offset: Vector3): Sphere;
34
35
  equals(sphere: Sphere): boolean;
36
+ union(sphere: Sphere): this;
35
37
 
36
38
  /**
37
39
  * @deprecated Use {@link Sphere#isEmpty .isEmpty()} instead.
@@ -19,7 +19,7 @@ export class Spherical {
19
19
  theta: number;
20
20
 
21
21
  set(radius: number, phi: number, theta: number): this;
22
- clone(): Spherical;
22
+ clone(): this;
23
23
  copy(other: Spherical): this;
24
24
  makeSafe(): this;
25
25
  setFromVector3(v: Vector3): this;
@@ -18,7 +18,7 @@ export class SphericalHarmonics3 {
18
18
  lerp(sh: SphericalHarmonics3, alpha: number): SphericalHarmonics3;
19
19
  equals(sh: SphericalHarmonics3): boolean;
20
20
  copy(sh: SphericalHarmonics3): SphericalHarmonics3;
21
- clone(): SphericalHarmonics3;
21
+ clone(): this;
22
22
 
23
23
  /**
24
24
  * Sets the values of this spherical harmonics from the provided array or array-like.
@@ -23,7 +23,7 @@ export class Triangle {
23
23
 
24
24
  set(a: Vector3, b: Vector3, c: Vector3): Triangle;
25
25
  setFromPointsAndIndices(points: Vector3[], i0: number, i1: number, i2: number): Triangle;
26
- clone(): Triangle;
26
+ clone(): this;
27
27
  copy(triangle: Triangle): this;
28
28
  getArea(): number;
29
29
  getMidpoint(target: Vector3): Vector3;
@@ -185,7 +185,7 @@ export class Vector2 implements Vector {
185
185
  /**
186
186
  * Returns a new Vector2 instance with the same `x` and `y` values.
187
187
  */
188
- clone(): Vector2;
188
+ clone(): this;
189
189
 
190
190
  /**
191
191
  * Copies value of v to this vector.
@@ -73,7 +73,7 @@ export class Vector3 implements Vector {
73
73
  /**
74
74
  * Clones this vector.
75
75
  */
76
- clone(): Vector3;
76
+ clone(): this;
77
77
 
78
78
  /**
79
79
  * Copies value of v to this vector.
@@ -74,7 +74,7 @@ export class Vector4 implements Vector {
74
74
  /**
75
75
  * Clones this vector.
76
76
  */
77
- clone(): Vector4;
77
+ clone(): this;
78
78
 
79
79
  /**
80
80
  * Copies value of v to this vector.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,6 @@
1
1
  import { Material } from './../materials/Material';
2
2
  import { Matrix4 } from './../math/Matrix4';
3
+ import { Vector3 } from './../math/Vector3';
3
4
  import { Skeleton } from './Skeleton';
4
5
  import { Mesh } from './Mesh';
5
6
  import { BufferGeometry } from '../core/BufferGeometry';
@@ -20,4 +21,5 @@ export class SkinnedMesh<
20
21
  pose(): void;
21
22
  normalizeSkinWeights(): void;
22
23
  updateMatrixWorld(force?: boolean): void;
24
+ boneTransform(index: number, target: Vector3): Vector3;
23
25
  }
File without changes
File without changes
File without changes
File without changes
@@ -93,7 +93,7 @@ export class WebGLRenderTarget extends EventDispatcher {
93
93
 
94
94
  setTexture(texture: Texture): void;
95
95
  setSize(width: number, height: number, depth?: number): void;
96
- clone(): WebGLRenderTarget;
96
+ clone(): this;
97
97
  copy(source: WebGLRenderTarget): this;
98
98
  dispose(): void;
99
99
  }
@@ -197,16 +197,6 @@ export class WebGLRenderer implements Renderer {
197
197
  */
198
198
  toneMappingExposure: number;
199
199
 
200
- /**
201
- * @default 8
202
- */
203
- maxMorphTargets: number;
204
-
205
- /**
206
- * @default 4
207
- */
208
- maxMorphNormals: number;
209
-
210
200
  info: WebGLInfo;
211
201
 
212
202
  shadowMap: WebGLShadowMap;
@@ -377,14 +367,6 @@ export class WebGLRenderer implements Renderer {
377
367
  */
378
368
  getActiveMipmapLevel(): number;
379
369
 
380
- /**
381
- * Sets the given WebGLFramebuffer. This method can only be used if no render target is set via
382
- * {@link WebGLRenderer#setRenderTarget .setRenderTarget}.
383
- *
384
- * @param value The WebGLFramebuffer.
385
- */
386
- setFramebuffer(value: WebGLFramebuffer): void;
387
-
388
370
  /**
389
371
  * Returns the current render target. If no render target is set, null is returned.
390
372
  */
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ import { WebGLCapabilities } from './WebGLCapabilities';
1
2
  import { Scene } from './../../scenes/Scene';
2
3
  import { Camera } from './../../cameras/Camera';
3
4
  import { WebGLRenderer } from '../WebGLRenderer';
@@ -6,7 +7,7 @@ import { WebGLObjects } from './WebGLObjects';
6
7
  import { Light } from '../../lights/Light';
7
8
 
8
9
  export class WebGLShadowMap {
9
- constructor(_renderer: WebGLRenderer, _objects: WebGLObjects, maxTextureSize: number);
10
+ constructor(_renderer: WebGLRenderer, _objects: WebGLObjects, _capabilities: WebGLCapabilities);
10
11
 
11
12
  /**
12
13
  * @default false
@@ -66,6 +66,8 @@ export class WebGLState {
66
66
  ): void;
67
67
  enable(id: number): void;
68
68
  disable(id: number): void;
69
+ bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): void;
70
+ bindXRFramebuffer(framebuffer: WebGLFramebuffer | null): void;
69
71
  useProgram(program: any): boolean;
70
72
  setBlending(
71
73
  blending: Blending,
File without changes
File without changes
File without changes
@@ -78,13 +78,23 @@ export interface XRRenderStateInit {
78
78
  baseLayer?: XRWebGLLayer;
79
79
  }
80
80
 
81
+ export interface XRGamepad {
82
+ readonly id: string;
83
+ readonly index: number; // long
84
+ readonly connected: boolean;
85
+ readonly timestamp: DOMHighResTimeStamp;
86
+ readonly mapping: GamepadMappingType;
87
+ readonly axes: Float32Array; // FrozenArray<double>;
88
+ readonly buttons: GamepadButton[]; // FrozenArray<GamepadButton>;
89
+ }
90
+
81
91
  export interface XRInputSource {
82
92
  readonly handedness: XRHandedness;
83
93
  readonly targetRayMode: XRTargetRayMode;
84
94
  readonly targetRaySpace: EventTarget;
85
95
  readonly gripSpace?: EventTarget;
86
96
  readonly profiles: string[];
87
- readonly gamepad: Gamepad;
97
+ readonly gamepad: XRGamepad;
88
98
  readonly hand?: XRHand;
89
99
  }
90
100
 
File without changes
File without changes
three/src/scenes/Fog.d.ts CHANGED
File without changes
File without changes