@types/three 0.161.2 → 0.163.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 (382) hide show
  1. three/README.md +2 -2
  2. three/build/three.d.cts +0 -1
  3. three/build/three.module.d.ts +0 -1
  4. three/build/three.module.min.d.ts +0 -1
  5. three/examples/jsm/animation/AnimationClipCreator.d.ts +1 -1
  6. three/examples/jsm/animation/CCDIKSolver.d.ts +1 -1
  7. three/examples/jsm/animation/MMDAnimationHelper.d.ts +1 -11
  8. three/examples/jsm/animation/MMDPhysics.d.ts +1 -1
  9. three/examples/jsm/cameras/CinematicCamera.d.ts +1 -8
  10. three/examples/jsm/controls/ArcballControls.d.ts +1 -1
  11. three/examples/jsm/controls/DragControls.d.ts +80 -10
  12. three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
  13. three/examples/jsm/controls/FlyControls.d.ts +1 -1
  14. three/examples/jsm/controls/MapControls.d.ts +1 -1
  15. three/examples/jsm/controls/OrbitControls.d.ts +2 -2
  16. three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
  17. three/examples/jsm/controls/TrackballControls.d.ts +1 -1
  18. three/examples/jsm/controls/TransformControls.d.ts +6 -1
  19. three/examples/jsm/csm/CSM.d.ts +1 -1
  20. three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
  21. three/examples/jsm/csm/CSMHelper.d.ts +1 -1
  22. three/examples/jsm/curves/CurveExtras.d.ts +1 -1
  23. three/examples/jsm/curves/NURBSCurve.d.ts +1 -1
  24. three/examples/jsm/curves/NURBSSurface.d.ts +1 -1
  25. three/examples/jsm/curves/NURBSUtils.d.ts +1 -1
  26. three/examples/jsm/curves/NURBSVolume.d.ts +1 -1
  27. three/examples/jsm/deprecated/Geometry.d.ts +1 -1
  28. three/examples/jsm/effects/AnaglyphEffect.d.ts +1 -1
  29. three/examples/jsm/effects/AsciiEffect.d.ts +1 -1
  30. three/examples/jsm/effects/OutlineEffect.d.ts +1 -9
  31. three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +1 -1
  32. three/examples/jsm/effects/PeppersGhostEffect.d.ts +1 -1
  33. three/examples/jsm/effects/StereoEffect.d.ts +1 -1
  34. three/examples/jsm/environments/DebugEnvironment.d.ts +1 -1
  35. three/examples/jsm/environments/RoomEnvironment.d.ts +1 -1
  36. three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
  37. three/examples/jsm/exporters/EXRExporter.d.ts +1 -1
  38. three/examples/jsm/exporters/GLTFExporter.d.ts +1 -1
  39. three/examples/jsm/exporters/KTX2Exporter.d.ts +1 -1
  40. three/examples/jsm/exporters/MMDExporter.d.ts +1 -1
  41. three/examples/jsm/exporters/OBJExporter.d.ts +1 -1
  42. three/examples/jsm/exporters/PLYExporter.d.ts +1 -1
  43. three/examples/jsm/exporters/STLExporter.d.ts +1 -1
  44. three/examples/jsm/exporters/USDZExporter.d.ts +1 -1
  45. three/examples/jsm/geometries/BoxLineGeometry.d.ts +1 -1
  46. three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
  47. three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
  48. three/examples/jsm/geometries/ParametricGeometries.d.ts +1 -1
  49. three/examples/jsm/geometries/ParametricGeometry.d.ts +1 -1
  50. three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +1 -1
  51. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +1 -1
  52. three/examples/jsm/geometries/TeapotGeometry.d.ts +1 -1
  53. three/examples/jsm/geometries/TextGeometry.d.ts +9 -1
  54. three/examples/jsm/helpers/LightProbeHelper.d.ts +1 -1
  55. three/examples/jsm/helpers/OctreeHelper.d.ts +1 -1
  56. three/examples/jsm/helpers/PositionalAudioHelper.d.ts +1 -1
  57. three/examples/jsm/helpers/RectAreaLightHelper.d.ts +1 -1
  58. three/examples/jsm/helpers/TextureHelper.d.ts +1 -1
  59. three/examples/jsm/helpers/VertexNormalsHelper.d.ts +1 -1
  60. three/examples/jsm/helpers/VertexTangentsHelper.d.ts +1 -1
  61. three/examples/jsm/helpers/ViewHelper.d.ts +1 -1
  62. three/examples/jsm/interactive/InteractiveGroup.d.ts +4 -2
  63. three/examples/jsm/interactive/SelectionBox.d.ts +1 -1
  64. three/examples/jsm/interactive/SelectionHelper.d.ts +1 -1
  65. three/examples/jsm/libs/tween.module.d.ts +2 -219
  66. three/examples/jsm/lights/LightProbeGenerator.d.ts +1 -1
  67. three/examples/jsm/lines/LineGeometry.d.ts +1 -1
  68. three/examples/jsm/lines/LineMaterial.d.ts +1 -1
  69. three/examples/jsm/lines/LineSegments2.d.ts +1 -1
  70. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +1 -8
  71. three/examples/jsm/lines/Wireframe.d.ts +1 -1
  72. three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
  73. three/examples/jsm/loaders/3DMLoader.d.ts +1 -1
  74. three/examples/jsm/loaders/3MFLoader.d.ts +1 -1
  75. three/examples/jsm/loaders/AMFLoader.d.ts +1 -1
  76. three/examples/jsm/loaders/BVHLoader.d.ts +1 -1
  77. three/examples/jsm/loaders/ColladaLoader.d.ts +1 -1
  78. three/examples/jsm/loaders/DDSLoader.d.ts +1 -1
  79. three/examples/jsm/loaders/DRACOLoader.d.ts +1 -1
  80. three/examples/jsm/loaders/EXRLoader.d.ts +2 -8
  81. three/examples/jsm/loaders/FBXLoader.d.ts +1 -1
  82. three/examples/jsm/loaders/FontLoader.d.ts +19 -5
  83. three/examples/jsm/loaders/GCodeLoader.d.ts +1 -1
  84. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
  85. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +1 -1
  86. three/examples/jsm/loaders/KMZLoader.d.ts +1 -1
  87. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
  88. three/examples/jsm/loaders/KTXLoader.d.ts +1 -1
  89. three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
  90. three/examples/jsm/loaders/LUT3dlLoader.d.ts +1 -2
  91. three/examples/jsm/loaders/LUTCubeLoader.d.ts +1 -10
  92. three/examples/jsm/loaders/LWOLoader.d.ts +1 -1
  93. three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
  94. three/examples/jsm/loaders/LottieLoader.d.ts +1 -1
  95. three/examples/jsm/loaders/MD2Loader.d.ts +1 -1
  96. three/examples/jsm/loaders/MDDLoader.d.ts +1 -1
  97. three/examples/jsm/loaders/MMDLoader.d.ts +1 -1
  98. three/examples/jsm/loaders/MTLLoader.d.ts +1 -11
  99. three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -1
  100. three/examples/jsm/loaders/NRRDLoader.d.ts +1 -1
  101. three/examples/jsm/loaders/OBJLoader.d.ts +1 -1
  102. three/examples/jsm/loaders/PCDLoader.d.ts +1 -1
  103. three/examples/jsm/loaders/PDBLoader.d.ts +1 -1
  104. three/examples/jsm/loaders/PLYLoader.d.ts +1 -1
  105. three/examples/jsm/loaders/PVRLoader.d.ts +1 -1
  106. three/examples/jsm/loaders/RGBELoader.d.ts +1 -1
  107. three/examples/jsm/loaders/RGBMLoader.d.ts +6 -1
  108. three/examples/jsm/loaders/STLLoader.d.ts +1 -1
  109. three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
  110. three/examples/jsm/loaders/TDSLoader.d.ts +1 -1
  111. three/examples/jsm/loaders/TGALoader.d.ts +1 -1
  112. three/examples/jsm/loaders/TTFLoader.d.ts +6 -4
  113. three/examples/jsm/loaders/TiltLoader.d.ts +1 -1
  114. three/examples/jsm/loaders/USDZLoader.d.ts +2 -2
  115. three/examples/jsm/loaders/VOXLoader.d.ts +1 -1
  116. three/examples/jsm/loaders/VRMLLoader.d.ts +1 -1
  117. three/examples/jsm/loaders/VTKLoader.d.ts +1 -1
  118. three/examples/jsm/loaders/XYZLoader.d.ts +1 -1
  119. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +1 -1
  120. three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +1 -1
  121. three/examples/jsm/math/Capsule.d.ts +1 -1
  122. three/examples/jsm/math/ColorConverter.d.ts +1 -1
  123. three/examples/jsm/math/ConvexHull.d.ts +1 -1
  124. three/examples/jsm/math/Lut.d.ts +1 -1
  125. three/examples/jsm/math/MeshSurfaceSampler.d.ts +1 -1
  126. three/examples/jsm/math/OBB.d.ts +1 -1
  127. three/examples/jsm/math/Octree.d.ts +1 -1
  128. three/examples/jsm/misc/ConvexObjectBreaker.d.ts +1 -1
  129. three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -1
  130. three/examples/jsm/misc/Gyroscope.d.ts +1 -1
  131. three/examples/jsm/misc/MD2Character.d.ts +1 -1
  132. three/examples/jsm/misc/MD2CharacterComplex.d.ts +1 -1
  133. three/examples/jsm/misc/MorphAnimMesh.d.ts +1 -1
  134. three/examples/jsm/misc/MorphBlendMesh.d.ts +1 -1
  135. three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -1
  136. three/examples/jsm/misc/RollerCoaster.d.ts +1 -1
  137. three/examples/jsm/misc/Timer.d.ts +28 -28
  138. three/examples/jsm/misc/TubePainter.d.ts +1 -1
  139. three/examples/jsm/misc/Volume.d.ts +1 -1
  140. three/examples/jsm/misc/VolumeSlice.d.ts +1 -1
  141. three/examples/jsm/modifiers/CurveModifier.d.ts +1 -10
  142. three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +1 -1
  143. three/examples/jsm/modifiers/SimplifyModifier.d.ts +1 -1
  144. three/examples/jsm/modifiers/TessellateModifier.d.ts +1 -1
  145. three/examples/jsm/nodes/Nodes.d.ts +25 -7
  146. three/examples/jsm/nodes/accessors/AccessorsUtils.d.ts +7 -0
  147. three/examples/jsm/nodes/accessors/BatchNode.d.ts +14 -0
  148. three/examples/jsm/nodes/accessors/BufferNode.d.ts +7 -3
  149. three/examples/jsm/nodes/accessors/CameraNode.d.ts +1 -9
  150. three/examples/jsm/nodes/accessors/ClippingNode.d.ts +16 -0
  151. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +1 -1
  152. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -2
  153. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
  154. three/examples/jsm/nodes/accessors/ModelNode.d.ts +2 -2
  155. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +10 -10
  156. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +16 -4
  157. three/examples/jsm/nodes/accessors/RendererReferenceNode.d.ts +16 -0
  158. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +7 -3
  159. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +14 -1
  160. three/examples/jsm/nodes/accessors/TextureNode.d.ts +9 -2
  161. three/examples/jsm/nodes/accessors/UniformsNode.d.ts +25 -0
  162. three/examples/jsm/nodes/core/AssignNode.d.ts +2 -1
  163. three/examples/jsm/nodes/core/Node.d.ts +9 -3
  164. three/examples/jsm/nodes/core/NodeBuilder.d.ts +1 -10
  165. three/examples/jsm/nodes/core/NodeFrame.d.ts +1 -1
  166. three/examples/jsm/nodes/core/NodeUtils.d.ts +2 -2
  167. three/examples/jsm/nodes/core/TempNode.d.ts +1 -1
  168. three/examples/jsm/nodes/display/AnamorphicNode.d.ts +5 -6
  169. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +1 -1
  170. three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +1 -1
  171. three/examples/jsm/nodes/display/NormalMapNode.d.ts +1 -3
  172. three/examples/jsm/nodes/display/PassNode.d.ts +3 -1
  173. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +13 -1
  174. three/examples/jsm/nodes/display/ViewportDepthTextureNode.d.ts +12 -0
  175. three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +1 -1
  176. three/examples/jsm/nodes/fog/FogNode.d.ts +10 -5
  177. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +9 -5
  178. three/examples/jsm/nodes/geometry/RangeNode.d.ts +1 -1
  179. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +1 -1
  180. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +1 -1
  181. three/examples/jsm/nodes/lighting/LightsNode.d.ts +1 -1
  182. three/examples/jsm/nodes/lighting/PointLightNode.d.ts +1 -1
  183. three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +1 -1
  184. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +1 -1
  185. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
  186. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +1 -1
  187. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +13 -3
  188. three/examples/jsm/nodes/materials/Materials.d.ts +1 -0
  189. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +23 -3
  190. three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.d.ts +23 -0
  191. three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +41 -5
  192. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +58 -18
  193. three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +9 -9
  194. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +40 -6
  195. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +48 -15
  196. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +14 -4
  197. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +17 -6
  198. three/examples/jsm/nodes/math/MathNode.d.ts +11 -0
  199. three/examples/jsm/nodes/pmrem/PMREMNode.d.ts +20 -0
  200. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +1 -1
  201. three/examples/jsm/nodes/utils/ReflectorNode.d.ts +1 -1
  202. three/examples/jsm/nodes/utils/StoargeArrayElementNode.d.ts +25 -0
  203. three/examples/jsm/objects/GroundedSkybox.d.ts +1 -1
  204. three/examples/jsm/objects/Lensflare.d.ts +1 -1
  205. three/examples/jsm/objects/MarchingCubes.d.ts +1 -1
  206. three/examples/jsm/objects/QuadMesh.d.ts +5 -8
  207. three/examples/jsm/objects/Reflector.d.ts +7 -15
  208. three/examples/jsm/objects/ReflectorForSSRPass.d.ts +1 -1
  209. three/examples/jsm/objects/Refractor.d.ts +7 -16
  210. three/examples/jsm/objects/ShadowMesh.d.ts +1 -1
  211. three/examples/jsm/objects/Sky.d.ts +1 -1
  212. three/examples/jsm/objects/Water.d.ts +1 -9
  213. three/examples/jsm/objects/Water2.d.ts +13 -22
  214. three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
  215. three/examples/jsm/physics/RapierPhysics.d.ts +1 -1
  216. three/examples/jsm/postprocessing/AfterimagePass.d.ts +1 -1
  217. three/examples/jsm/postprocessing/BloomPass.d.ts +1 -1
  218. three/examples/jsm/postprocessing/BokehPass.d.ts +1 -1
  219. three/examples/jsm/postprocessing/ClearPass.d.ts +1 -1
  220. three/examples/jsm/postprocessing/CubeTexturePass.d.ts +1 -1
  221. three/examples/jsm/postprocessing/DotScreenPass.d.ts +1 -1
  222. three/examples/jsm/postprocessing/EffectComposer.d.ts +1 -1
  223. three/examples/jsm/postprocessing/FilmPass.d.ts +1 -1
  224. three/examples/jsm/postprocessing/GTAOPass.d.ts +1 -1
  225. three/examples/jsm/postprocessing/GlitchPass.d.ts +1 -1
  226. three/examples/jsm/postprocessing/HalftonePass.d.ts +1 -1
  227. three/examples/jsm/postprocessing/LUTPass.d.ts +1 -1
  228. three/examples/jsm/postprocessing/MaskPass.d.ts +1 -1
  229. three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
  230. three/examples/jsm/postprocessing/OutputPass.d.ts +1 -1
  231. three/examples/jsm/postprocessing/Pass.d.ts +1 -1
  232. three/examples/jsm/postprocessing/RenderPass.d.ts +1 -1
  233. three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +1 -1
  234. three/examples/jsm/postprocessing/SAOPass.d.ts +1 -1
  235. three/examples/jsm/postprocessing/SMAAPass.d.ts +1 -1
  236. three/examples/jsm/postprocessing/SSAARenderPass.d.ts +1 -1
  237. three/examples/jsm/postprocessing/SSAOPass.d.ts +1 -1
  238. three/examples/jsm/postprocessing/SSRPass.d.ts +1 -1
  239. three/examples/jsm/postprocessing/SavePass.d.ts +1 -1
  240. three/examples/jsm/postprocessing/ShaderPass.d.ts +1 -1
  241. three/examples/jsm/postprocessing/TAARenderPass.d.ts +1 -1
  242. three/examples/jsm/postprocessing/TexturePass.d.ts +1 -1
  243. three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +1 -1
  244. three/examples/jsm/renderers/CSS2DRenderer.d.ts +1 -1
  245. three/examples/jsm/renderers/CSS3DRenderer.d.ts +1 -1
  246. three/examples/jsm/renderers/Projector.d.ts +1 -1
  247. three/examples/jsm/renderers/SVGRenderer.d.ts +1 -1
  248. three/examples/jsm/renderers/common/Backend.d.ts +1 -1
  249. three/examples/jsm/renderers/common/Color4.d.ts +1 -1
  250. three/examples/jsm/renderers/common/Info.d.ts +4 -8
  251. three/examples/jsm/renderers/common/PostProcessing.d.ts +3 -1
  252. three/examples/jsm/renderers/common/Renderer.d.ts +30 -16
  253. three/examples/jsm/renderers/common/StorageTexture.d.ts +1 -1
  254. three/examples/jsm/renderers/common/extras/PMREMGenerator.d.ts +8 -0
  255. three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +5 -1
  256. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +1 -1
  257. three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +1 -1
  258. three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
  259. three/examples/jsm/shaders/AfterimageShader.d.ts +1 -1
  260. three/examples/jsm/shaders/BleachBypassShader.d.ts +1 -1
  261. three/examples/jsm/shaders/BlendShader.d.ts +1 -1
  262. three/examples/jsm/shaders/BokehShader.d.ts +1 -1
  263. three/examples/jsm/shaders/BokehShader2.d.ts +1 -1
  264. three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -1
  265. three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -1
  266. three/examples/jsm/shaders/ColorifyShader.d.ts +1 -1
  267. three/examples/jsm/shaders/ConvolutionShader.d.ts +1 -1
  268. three/examples/jsm/shaders/CopyShader.d.ts +1 -1
  269. three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -1
  270. three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -1
  271. three/examples/jsm/shaders/DigitalGlitch.d.ts +1 -1
  272. three/examples/jsm/shaders/DotScreenShader.d.ts +1 -1
  273. three/examples/jsm/shaders/ExposureShader.d.ts +1 -1
  274. three/examples/jsm/shaders/FXAAShader.d.ts +1 -1
  275. three/examples/jsm/shaders/FilmShader.d.ts +1 -1
  276. three/examples/jsm/shaders/FocusShader.d.ts +1 -1
  277. three/examples/jsm/shaders/FreiChenShader.d.ts +1 -1
  278. three/examples/jsm/shaders/GTAOShader.d.ts +1 -1
  279. three/examples/jsm/shaders/GammaCorrectionShader.d.ts +1 -1
  280. three/examples/jsm/shaders/GodRaysShader.d.ts +1 -1
  281. three/examples/jsm/shaders/HalftoneShader.d.ts +1 -1
  282. three/examples/jsm/shaders/HorizontalBlurShader.d.ts +1 -1
  283. three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -1
  284. three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -1
  285. three/examples/jsm/shaders/KaleidoShader.d.ts +1 -1
  286. three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -1
  287. three/examples/jsm/shaders/LuminosityShader.d.ts +1 -1
  288. three/examples/jsm/shaders/MMDToonShader.d.ts +1 -1
  289. three/examples/jsm/shaders/MirrorShader.d.ts +1 -1
  290. three/examples/jsm/shaders/NormalMapShader.d.ts +1 -1
  291. three/examples/jsm/shaders/OutputShader.d.ts +1 -1
  292. three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +1 -1
  293. three/examples/jsm/shaders/RGBShiftShader.d.ts +1 -1
  294. three/examples/jsm/shaders/SAOShader.d.ts +1 -1
  295. three/examples/jsm/shaders/SMAAShader.d.ts +1 -1
  296. three/examples/jsm/shaders/SSAOShader.d.ts +1 -1
  297. three/examples/jsm/shaders/SSRShader.d.ts +1 -1
  298. three/examples/jsm/shaders/SepiaShader.d.ts +1 -1
  299. three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -1
  300. three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -1
  301. three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -1
  302. three/examples/jsm/shaders/ToonShader.d.ts +1 -1
  303. three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -1
  304. three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -1
  305. three/examples/jsm/shaders/VelocityShader.d.ts +1 -1
  306. three/examples/jsm/shaders/VerticalBlurShader.d.ts +1 -1
  307. three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -1
  308. three/examples/jsm/shaders/VignetteShader.d.ts +1 -1
  309. three/examples/jsm/shaders/VolumeShader.d.ts +1 -1
  310. three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -1
  311. three/examples/jsm/utils/BufferGeometryUtils.d.ts +1 -1
  312. three/examples/jsm/utils/CameraUtils.d.ts +1 -1
  313. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +1 -1
  314. three/examples/jsm/utils/GeometryUtils.d.ts +1 -1
  315. three/examples/jsm/utils/LDrawUtils.d.ts +1 -1
  316. three/examples/jsm/utils/PackedPhongMaterial.d.ts +1 -1
  317. three/examples/jsm/utils/SceneUtils.d.ts +1 -1
  318. three/examples/jsm/utils/ShadowMapViewer.d.ts +1 -1
  319. three/examples/jsm/utils/SkeletonUtils.d.ts +1 -1
  320. three/examples/jsm/utils/UVsDebug.d.ts +1 -1
  321. three/examples/jsm/webxr/ARButton.d.ts +1 -1
  322. three/examples/jsm/webxr/OculusHandModel.d.ts +1 -1
  323. three/examples/jsm/webxr/OculusHandPointerModel.d.ts +1 -1
  324. three/examples/jsm/webxr/Text2D.d.ts +1 -1
  325. three/examples/jsm/webxr/VRButton.d.ts +3 -3
  326. three/examples/jsm/webxr/XRButton.d.ts +1 -2
  327. three/examples/jsm/webxr/XRControllerModelFactory.d.ts +6 -5
  328. three/examples/jsm/webxr/XREstimatedLight.d.ts +1 -1
  329. three/examples/jsm/webxr/XRHandMeshModel.d.ts +1 -1
  330. three/examples/jsm/webxr/XRHandModelFactory.d.ts +6 -5
  331. three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +1 -1
  332. three/examples/jsm/webxr/XRPlanes.d.ts +2 -2
  333. three/index.d.ts +1 -3
  334. three/package.json +5 -4
  335. three/src/Three.Legacy.d.ts +20 -1
  336. three/src/Three.d.ts +0 -2
  337. three/src/cameras/Camera.d.ts +3 -0
  338. three/src/constants.d.ts +13 -55
  339. three/src/core/BufferAttribute.d.ts +0 -32
  340. three/src/core/BufferGeometry.d.ts +6 -4
  341. three/src/core/InstancedBufferAttribute.d.ts +7 -0
  342. three/src/core/Object3D.d.ts +17 -0
  343. three/src/core/Raycaster.d.ts +7 -0
  344. three/src/core/RenderTarget.d.ts +8 -7
  345. three/src/extras/PMREMGenerator.d.ts +5 -4
  346. three/src/helpers/SkeletonHelper.d.ts +1 -1
  347. three/src/lights/LightShadow.d.ts +2 -2
  348. three/src/materials/Material.d.ts +46 -23
  349. three/src/materials/MeshBasicMaterial.d.ts +8 -0
  350. three/src/materials/MeshLambertMaterial.d.ts +8 -1
  351. three/src/materials/MeshPhongMaterial.d.ts +7 -0
  352. three/src/materials/MeshStandardMaterial.d.ts +7 -0
  353. three/src/materials/ShaderMaterial.d.ts +2 -17
  354. three/src/objects/BatchedMesh.d.ts +0 -3
  355. three/src/objects/InstancedMesh.d.ts +29 -5
  356. three/src/objects/SkinnedMesh.d.ts +6 -11
  357. three/src/renderers/WebGL3DRenderTarget.d.ts +6 -7
  358. three/src/renderers/WebGLArrayRenderTarget.d.ts +6 -7
  359. three/src/renderers/WebGLCubeRenderTarget.d.ts +7 -3
  360. three/src/renderers/WebGLRenderTarget.d.ts +1 -4
  361. three/src/renderers/WebGLRenderer.d.ts +5 -20
  362. three/src/renderers/shaders/UniformsLib.d.ts +1 -0
  363. three/src/renderers/webgl/WebGLAttributes.d.ts +1 -2
  364. three/src/renderers/webgl/WebGLBindingStates.d.ts +1 -8
  365. three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -3
  366. three/src/renderers/webgl/WebGLCapabilities.d.ts +8 -6
  367. three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +2 -1
  368. three/src/renderers/webgl/WebGLExtensions.d.ts +1 -3
  369. three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +1 -1
  370. three/src/renderers/webgl/WebGLLights.d.ts +1 -2
  371. three/src/renderers/webgl/WebGLPrograms.d.ts +1 -9
  372. three/src/renderers/webgl/WebGLState.d.ts +1 -3
  373. three/src/renderers/webgl/WebGLUtils.d.ts +7 -3
  374. three/src/scenes/Scene.d.ts +20 -1
  375. three/src/textures/Data3DTexture.d.ts +0 -1
  376. three/src/textures/DataArrayTexture.d.ts +0 -1
  377. three/src/textures/DepthTexture.d.ts +0 -3
  378. three/src/textures/Texture.d.ts +13 -22
  379. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
  380. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -12
  381. three/src/renderers/WebGL1Renderer.d.ts +0 -6
  382. three/src/renderers/WebGLMultipleRenderTargets.d.ts +0 -15
@@ -6,6 +6,7 @@ import { Box3 } from "../math/Box3.js";
6
6
  import { Color } from "../math/Color.js";
7
7
  import { Matrix4 } from "../math/Matrix4.js";
8
8
  import { Sphere } from "../math/Sphere.js";
9
+ import { DataTexture } from "../textures/DataTexture.js";
9
10
  import { Mesh } from "./Mesh.js";
10
11
 
11
12
  export interface InstancedMeshEventMap extends Object3DEventMap {
@@ -83,14 +84,22 @@ export class InstancedMesh<
83
84
  instanceMatrix: InstancedBufferAttribute;
84
85
 
85
86
  /**
86
- * Computes bounding box of the all instances, updating {@link boundingBox | .boundingBox} attribute.
87
- * @remarks Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are `null`.
87
+ * Represents the morph target weights of all instances. You have to set its {@link .needsUpdate} flag to true if
88
+ * you modify instanced data via {@link .setMorphAt}.
89
+ */
90
+ morphTexture: DataTexture | null;
91
+
92
+ /**
93
+ * Computes the bounding box of the instanced mesh, and updates the {@link .boundingBox} attribute. The bounding box
94
+ * is not computed by the engine; it must be computed by your app. You may need to recompute the bounding box if an
95
+ * instance is transformed via {@link .setMatrixAt()}.
88
96
  */
89
97
  computeBoundingBox(): void;
90
98
 
91
99
  /**
92
- * Computes bounding sphere of the all instances, updating {@link boundingSphere | .boundingSphere} attribute.
93
- * @remarks bounding spheres aren't computed by default. They need to be explicitly computed, otherwise they are `null`.
100
+ * Computes the bounding sphere of the instanced mesh, and updates the {@link .boundingSphere} attribute. The engine
101
+ * automatically computes the bounding sphere when it is needed, e.g., for ray casting or view frustum culling. You
102
+ * may need to recompute the bounding sphere if an instance is transformed via [page:.setMatrixAt]().
94
103
  */
95
104
  computeBoundingSphere(): void;
96
105
 
@@ -117,6 +126,13 @@ export class InstancedMesh<
117
126
  */
118
127
  getMatrixAt(index: number, matrix: Matrix4): void;
119
128
 
129
+ /**
130
+ * Get the morph target weights of the defined instance.
131
+ * @param index The index of an instance. Values have to be in the range [0, count].
132
+ * @param mesh The {@link .morphTargetInfluences} property of this mesh will be filled with the morph target weights of the defined instance.
133
+ */
134
+ getMorphAt(index: number, mesh: Mesh): void;
135
+
120
136
  /**
121
137
  * Sets the given local transformation matrix to the defined instance.
122
138
  * @remarks
@@ -126,6 +142,14 @@ export class InstancedMesh<
126
142
  */
127
143
  setMatrixAt(index: number, matrix: Matrix4): void;
128
144
 
145
+ /**
146
+ * Sets the morph target weights to the defined instance. Make sure you set {@link .morphTexture}{@link .needsUpdate}
147
+ * to true after updating all the influences.
148
+ * @param index The index of an instance. Values have to be in the range [0, count].
149
+ * @param mesh A mesh with {@link .morphTargetInfluences} property containing the morph target weights of a single instance.
150
+ */
151
+ setMorphAt(index: number, mesh: Mesh): void;
152
+
129
153
  /**
130
154
  * No effect in {@link InstancedMesh}.
131
155
  * @ignore
@@ -138,5 +162,5 @@ export class InstancedMesh<
138
162
  * @remarks
139
163
  * Call this method whenever this instance is no longer used in your app.
140
164
  */
141
- dispose(): void;
165
+ dispose(): this;
142
166
  }
@@ -11,8 +11,6 @@ import { Skeleton } from "./Skeleton.js";
11
11
 
12
12
  /**
13
13
  * A mesh that has a {@link THREE.Skeleton | Skeleton} with {@link Bone | bones} that can then be used to animate the vertices of the geometry.
14
- * @remarks
15
- * {@link SkinnedMesh} can only be used with WebGL 2.
16
14
  * @example
17
15
  * ```typescript
18
16
  * const geometry = new THREE.CylinderGeometry(5, 5, 5, 5, 15, 5, 30);
@@ -117,19 +115,16 @@ export class SkinnedMesh<
117
115
  bind(skeleton: Skeleton, bindMatrix?: Matrix4): void;
118
116
 
119
117
  /**
120
- * Computes the bounding box, updating {@link boundingBox | .boundingBox} attribute.
121
- * @remarks
122
- * Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are `null`. If an
123
- * instance of SkinnedMesh is animated, this method should be called per frame to compute a correct bounding box.
118
+ * Computes the bounding box of the skinned mesh, and updates the {@link .boundingBox} attribute. The bounding box
119
+ * is not computed by the engine; it must be computed by your app. If the skinned mesh is animated, the bounding box
120
+ * should be recomputed per frame.
124
121
  */
125
122
  computeBoundingBox(): void;
126
123
 
127
124
  /**
128
- * Computes the bounding sphere, updating {@link boundingSphere | .boundingSphere} attribute.
129
- * @remarks
130
- * Bounding spheres aren't computed by default. They need to be explicitly computed, otherwise they are `null`. If
131
- * an instance of SkinnedMesh is animated, this method should be called per frame to compute a correct bounding
132
- * sphere.
125
+ * Computes the bounding sphere of the skinned mesh, and updates the {@link .boundingSphere} attribute. The bounding
126
+ * sphere is automatically computed by the engine when it is needed, e.g., for ray casting and view frustum culling.
127
+ * If the skinned mesh is animated, the bounding sphere should be recomputed per frame.
133
128
  */
134
129
  computeBoundingSphere(): void;
135
130
 
@@ -1,5 +1,6 @@
1
+ import { RenderTargetOptions } from "../core/RenderTarget.js";
1
2
  import { Data3DTexture } from "../textures/Data3DTexture.js";
2
- import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
3
+ import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
3
4
 
4
5
  /**
5
6
  * Represents a three-dimensional render target.
@@ -14,17 +15,15 @@ export class WebGL3DRenderTarget extends WebGLRenderTarget {
14
15
  * @param options optional object that holds texture parameters for an auto-generated target texture and
15
16
  * depthBuffer/stencilBuffer booleans. See {@link WebGLRenderTarget} for details.
16
17
  */
17
- constructor(width?: number, height?: number, depth?: number, options?: WebGLRenderTargetOptions);
18
+ constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
18
19
 
19
- /**
20
- * The depth of the render target.
21
- */
22
- depth: number;
20
+ textures: Data3DTexture[];
23
21
 
24
22
  /**
25
23
  * The texture property is overwritten with an instance of {@link Data3DTexture}.
26
24
  */
27
- texture: Data3DTexture;
25
+ get texture(): Data3DTexture;
26
+ set texture(value: Data3DTexture);
28
27
 
29
28
  readonly isWebGL3DRenderTarget: true;
30
29
  }
@@ -1,5 +1,6 @@
1
+ import { RenderTargetOptions } from "../core/RenderTarget.js";
1
2
  import { DataArrayTexture } from "../textures/DataArrayTexture.js";
2
- import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
3
+ import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
3
4
 
4
5
  /**
5
6
  * This type of render target represents an array of textures.
@@ -14,17 +15,15 @@ export class WebGLArrayRenderTarget extends WebGLRenderTarget {
14
15
  * @param options optional object that holds texture parameters for an auto-generated target texture and
15
16
  * depthBuffer/stencilBuffer booleans. See {@link WebGLRenderTarget} for details.
16
17
  */
17
- constructor(width?: number, height?: number, depth?: number, options?: WebGLRenderTargetOptions);
18
+ constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
18
19
 
19
- /**
20
- * The depth of the render target.
21
- */
22
- depth: number;
20
+ textures: DataArrayTexture[];
23
21
 
24
22
  /**
25
23
  * The texture property is overwritten with an instance of {@link DataArrayTexture}.
26
24
  */
27
- texture: DataArrayTexture;
25
+ get texture(): DataArrayTexture;
26
+ set texture(value: DataArrayTexture);
28
27
 
29
28
  readonly isWebGLArrayRenderTarget: true;
30
29
  }
@@ -1,12 +1,16 @@
1
+ import { RenderTargetOptions } from "../core/RenderTarget.js";
1
2
  import { CubeTexture } from "../textures/CubeTexture.js";
2
3
  import { Texture } from "../textures/Texture.js";
3
4
  import { WebGLRenderer } from "./WebGLRenderer.js";
4
- import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
5
+ import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
5
6
 
6
7
  export class WebGLCubeRenderTarget extends WebGLRenderTarget {
7
- constructor(size?: number, options?: WebGLRenderTargetOptions);
8
+ constructor(size?: number, options?: RenderTargetOptions);
8
9
 
9
- texture: CubeTexture;
10
+ textures: CubeTexture[];
11
+
12
+ get texture(): CubeTexture;
13
+ set texture(value: CubeTexture);
10
14
 
11
15
  fromEquirectangularTexture(renderer: WebGLRenderer, texture: Texture): this;
12
16
 
@@ -1,11 +1,8 @@
1
1
  import { RenderTarget, RenderTargetOptions } from "../core/RenderTarget.js";
2
2
  import { Texture } from "../textures/Texture.js";
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
5
- export interface WebGLRenderTargetOptions extends RenderTargetOptions {}
6
-
7
4
  export class WebGLRenderTarget<TTexture extends Texture | Texture[] = Texture> extends RenderTarget<TTexture> {
8
- constructor(width?: number, height?: number, options?: WebGLRenderTargetOptions);
5
+ constructor(width?: number, height?: number, options?: RenderTargetOptions);
9
6
 
10
7
  readonly isWebGLRenderTarget: true;
11
8
  }
@@ -1,12 +1,5 @@
1
1
  import { Camera } from "../cameras/Camera.js";
2
- import {
3
- ColorSpace,
4
- CullFace,
5
- ShadowMapType,
6
- TextureEncoding,
7
- ToneMapping,
8
- WebGLCoordinateSystem,
9
- } from "../constants.js";
2
+ import { ColorSpace, CullFace, ShadowMapType, ToneMapping, WebGLCoordinateSystem } from "../constants.js";
10
3
  import { BufferGeometry } from "../core/BufferGeometry.js";
11
4
  import { Object3D } from "../core/Object3D.js";
12
5
  import { Material } from "../materials/Material.js";
@@ -28,7 +21,6 @@ import { WebGLProperties } from "./webgl/WebGLProperties.js";
28
21
  import { WebGLRenderLists } from "./webgl/WebGLRenderLists.js";
29
22
  import { WebGLShadowMap } from "./webgl/WebGLShadowMap.js";
30
23
  import { WebGLState } from "./webgl/WebGLState.js";
31
- import { WebGLMultipleRenderTargets } from "./WebGLMultipleRenderTargets.js";
32
24
  import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
33
25
  import { WebXRManager } from "./webxr/WebXRManager.js";
34
26
 
@@ -73,7 +65,7 @@ export interface WebGLRendererParameters {
73
65
  antialias?: boolean | undefined;
74
66
 
75
67
  /**
76
- * default is true.
68
+ * default is false.
77
69
  */
78
70
  stencil?: boolean | undefined;
79
71
 
@@ -185,7 +177,7 @@ export class WebGLRenderer implements Renderer {
185
177
  /**
186
178
  * @default []
187
179
  */
188
- clippingPlanes: readonly Plane[];
180
+ clippingPlanes: Plane[];
189
181
 
190
182
  /**
191
183
  * @default false
@@ -194,13 +186,6 @@ export class WebGLRenderer implements Renderer {
194
186
 
195
187
  extensions: WebGLExtensions;
196
188
 
197
- /**
198
- * Default is LinearEncoding.
199
- * @default THREE.LinearEncoding
200
- * @deprecated Use {@link WebGLRenderer.outputColorSpace .outputColorSpace} in three.js r152+.
201
- */
202
- outputEncoding: TextureEncoding;
203
-
204
189
  /**
205
190
  * Color space used for output to HTMLCanvasElement. Supported values are
206
191
  * {@link SRGBColorSpace} and {@link LinearSRGBColorSpace}.
@@ -425,13 +410,13 @@ export class WebGLRenderer implements Renderer {
425
410
  * @param activeMipmapLevel Specifies the active mipmap level.
426
411
  */
427
412
  setRenderTarget(
428
- renderTarget: WebGLRenderTarget | WebGLMultipleRenderTargets | null,
413
+ renderTarget: WebGLRenderTarget | WebGLRenderTarget<Texture[]> | null,
429
414
  activeCubeFace?: number,
430
415
  activeMipmapLevel?: number,
431
416
  ): void;
432
417
 
433
418
  readRenderTargetPixels(
434
- renderTarget: WebGLRenderTarget | WebGLMultipleRenderTargets,
419
+ renderTarget: WebGLRenderTarget | WebGLRenderTarget<Texture[]>,
435
420
  x: number,
436
421
  y: number,
437
422
  width: number,
@@ -23,6 +23,7 @@ export const UniformsLib: {
23
23
  };
24
24
  envmap: {
25
25
  envMap: IUniform<unknown>;
26
+ envMapRotation: IUniform<Matrix3>;
26
27
  flipEnvMap: IUniform<number>;
27
28
  reflectivity: IUniform<number>;
28
29
  ior: IUniform<number>;
@@ -1,10 +1,9 @@
1
1
  import { BufferAttribute } from "../../core/BufferAttribute.js";
2
2
  import { GLBufferAttribute } from "../../core/GLBufferAttribute.js";
3
3
  import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
4
- import { WebGLCapabilities } from "./WebGLCapabilities.js";
5
4
 
6
5
  export class WebGLAttributes {
7
- constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, capabilities: WebGLCapabilities);
6
+ constructor(gl: WebGLRenderingContext | WebGL2RenderingContext);
8
7
 
9
8
  get(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute):
10
9
  | {
@@ -3,17 +3,10 @@ import { BufferGeometry } from "../../core/BufferGeometry.js";
3
3
  import { Object3D } from "../../core/Object3D.js";
4
4
  import { Material } from "../../materials/Material.js";
5
5
  import { WebGLAttributes } from "./WebGLAttributes.js";
6
- import { WebGLCapabilities } from "./WebGLCapabilities.js";
7
- import { WebGLExtensions } from "./WebGLExtensions.js";
8
6
  import { WebGLProgram } from "./WebGLProgram.js";
9
7
 
10
8
  export class WebGLBindingStates {
11
- constructor(
12
- gl: WebGLRenderingContext,
13
- extensions: WebGLExtensions,
14
- attributes: WebGLAttributes,
15
- capabilities: WebGLCapabilities,
16
- );
9
+ constructor(gl: WebGLRenderingContext, attributes: WebGLAttributes);
17
10
 
18
11
  setup(
19
12
  object: Object3D,
@@ -1,5 +1,3 @@
1
- // Renderers / WebGL /////////////////////////////////////////////////////////////////////
2
- import { WebGLCapabilities } from "./WebGLCapabilities.js";
3
1
  import { WebGLExtensions } from "./WebGLExtensions.js";
4
2
  import { WebGLInfo } from "./WebGLInfo.js";
5
3
 
@@ -8,7 +6,6 @@ export class WebGLBufferRenderer {
8
6
  gl: WebGLRenderingContext,
9
7
  extensions: WebGLExtensions,
10
8
  info: WebGLInfo,
11
- capabilities: WebGLCapabilities,
12
9
  );
13
10
 
14
11
  setMode: (value: any) => void;
@@ -7,22 +7,24 @@ export class WebGLCapabilities {
7
7
  constructor(gl: WebGLRenderingContext, extensions: any, parameters: WebGLCapabilitiesParameters);
8
8
 
9
9
  readonly isWebGL2: boolean;
10
- readonly drawBuffers: boolean;
10
+
11
+ getMaxAnisotropy: () => number;
12
+ getMaxPrecision: (precision: string) => string;
13
+
11
14
  precision: string;
12
15
  logarithmicDepthBuffer: boolean;
16
+
13
17
  maxTextures: number;
14
18
  maxVertexTextures: number;
15
19
  maxTextureSize: number;
16
20
  maxCubemapSize: number;
21
+
17
22
  maxAttributes: number;
18
23
  maxVertexUniforms: number;
19
24
  maxVaryings: number;
20
25
  maxFragmentUniforms: number;
26
+
21
27
  vertexTextures: boolean;
22
- floatFragmentTextures: boolean;
23
- floatVertexTextures: boolean;
24
- maxSamples: number;
25
28
 
26
- getMaxAnisotropy(): number;
27
- getMaxPrecision(precision: string): string;
29
+ maxSamples: number;
28
30
  }
@@ -1,4 +1,5 @@
1
- import { Texture, WebGLRenderer } from "../../Three.js";
1
+ import { Texture } from "../../textures/Texture.js";
2
+ import { WebGLRenderer } from "../WebGLRenderer.js";
2
3
 
3
4
  export class WebGLCubeUVMaps {
4
5
  constructor(renderer: WebGLRenderer);
@@ -1,9 +1,7 @@
1
- import { WebGLCapabilities } from "./WebGLCapabilities.js";
2
-
3
1
  export class WebGLExtensions {
4
2
  constructor(gl: WebGLRenderingContext);
5
3
 
6
4
  has(name: string): boolean;
7
- init(capabilities: WebGLCapabilities): void;
5
+ init(): void;
8
6
  get(name: string): any;
9
7
  }
@@ -1,5 +1,5 @@
1
1
  export class WebGLIndexedBufferRenderer {
2
- constructor(gl: WebGLRenderingContext, extensions: any, info: any, capabilities: any);
2
+ constructor(gl: WebGLRenderingContext, extensions: any, info: any);
3
3
 
4
4
  setMode: (value: any) => void;
5
5
  setIndex: (index: any) => void;
@@ -1,4 +1,3 @@
1
- import { WebGLCapabilities } from "./WebGLCapabilities.js";
2
1
  import { WebGLExtensions } from "./WebGLExtensions.js";
3
2
 
4
3
  export interface WebGLLightsState {
@@ -40,7 +39,7 @@ export interface WebGLLightsState {
40
39
  }
41
40
 
42
41
  export class WebGLLights {
43
- constructor(extensions: WebGLExtensions, capabilities: WebGLCapabilities);
42
+ constructor(extensions: WebGLExtensions);
44
43
 
45
44
  state: WebGLLightsState;
46
45
 
@@ -22,8 +22,6 @@ import { WebGLLightsState } from "./WebGLLights.js";
22
22
  import { WebGLProgram } from "./WebGLProgram.js";
23
23
 
24
24
  export interface WebGLProgramParameters {
25
- isWebGL2: boolean;
26
-
27
25
  shaderID: string;
28
26
  shaderType: string;
29
27
  shaderName: string;
@@ -43,6 +41,7 @@ export interface WebGLProgramParameters {
43
41
  batching: boolean;
44
42
  instancing: boolean;
45
43
  instancingColor: boolean;
44
+ instancingMorph: boolean;
46
45
 
47
46
  supportsVertexTextures: boolean;
48
47
  outputColorSpace: ColorSpace;
@@ -199,16 +198,9 @@ export interface WebGLProgramParameters {
199
198
 
200
199
  index0AttributeName: string | undefined;
201
200
 
202
- extensionDerivatives: boolean;
203
- extensionFragDepth: boolean;
204
- extensionDrawBuffers: boolean;
205
- extensionShaderTextureLOD: boolean;
206
201
  extensionClipCullDistance: boolean;
207
202
  extensionMultiDraw: boolean;
208
203
 
209
- rendererExtensionFragDepth: boolean;
210
- rendererExtensionDrawBuffers: boolean;
211
- rendererExtensionShaderTextureLod: boolean;
212
204
  rendererExtensionParallelShaderCompile: boolean;
213
205
 
214
206
  customProgramCacheKey: string;
@@ -9,8 +9,6 @@ import {
9
9
  import { Material } from "../../materials/Material.js";
10
10
  import { Vector4 } from "../../math/Vector4.js";
11
11
  import { WebGLRenderTarget } from "../WebGLRenderTarget.js";
12
- import { WebGLCapabilities } from "./WebGLCapabilities.js";
13
- import { WebGLExtensions } from "./WebGLExtensions.js";
14
12
 
15
13
  export class WebGLColorBuffer {
16
14
  constructor();
@@ -45,7 +43,7 @@ export class WebGLStencilBuffer {
45
43
  }
46
44
 
47
45
  export class WebGLState {
48
- constructor(gl: WebGLRenderingContext, extensions: WebGLExtensions, capabilities: WebGLCapabilities);
46
+ constructor(gl: WebGLRenderingContext);
49
47
 
50
48
  buffers: {
51
49
  color: WebGLColorBuffer;
@@ -1,7 +1,11 @@
1
- import { CompressedPixelFormat, PixelFormat, TextureDataType, TextureEncoding } from "../../constants.js";
1
+ import { ColorSpace, CompressedPixelFormat, PixelFormat, TextureDataType } from "../../constants.js";
2
+ import { WebGLExtensions } from "./WebGLExtensions.js";
2
3
 
3
4
  export class WebGLUtils {
4
- constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, extensions: any, capabilities: any);
5
+ constructor(
6
+ gl: WebGLRenderingContext | WebGL2RenderingContext,
7
+ extensions: WebGLExtensions,
8
+ );
5
9
 
6
- convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, encoding?: TextureEncoding | null): number | null;
10
+ convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, colorSpace?: ColorSpace): number | null;
7
11
  }
@@ -1,8 +1,9 @@
1
1
  import { Object3D } from "../core/Object3D.js";
2
2
  import { Material } from "../materials/Material.js";
3
3
  import { Color } from "../math/Color.js";
4
+ import { Euler } from "../math/Euler.js";
5
+ import { CubeTexture } from "../textures/CubeTexture.js";
4
6
  import { Texture } from "../textures/Texture.js";
5
- import { CubeTexture } from "../Three.js";
6
7
  import { FogBase } from "./Fog.js";
7
8
 
8
9
  /**
@@ -68,6 +69,12 @@ export class Scene extends Object3D {
68
69
  */
69
70
  background: Color | Texture | CubeTexture | null;
70
71
 
72
+ /**
73
+ * The rotation of the background in radians. Only influences environment maps assigned to {@link .background}.
74
+ * Default is `(0,0,0)`.
75
+ */
76
+ backgroundRotation: Euler;
77
+
71
78
  /**
72
79
  * Sets the environment map for all physical materials in the scene.
73
80
  * However, it's not possible to overwrite an existing texture assigned to {@link THREE.MeshStandardMaterial.envMap | MeshStandardMaterial.envMap}.
@@ -75,6 +82,18 @@ export class Scene extends Object3D {
75
82
  */
76
83
  environment: Texture | null;
77
84
 
85
+ /**
86
+ * Attenuates the color of the environment. Only influences environment maps assigned to {@link Scene.environment}.
87
+ * @default 1
88
+ */
89
+ environmentIntensity: number;
90
+
91
+ /**
92
+ * The rotation of the environment map in radians. Only influences physical materials in the scene when
93
+ * {@link .environment} is used. Default is `(0,0,0)`.
94
+ */
95
+ environmentRotation: Euler;
96
+
78
97
  /**
79
98
  * Convert the {@link Scene} to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
80
99
  * @param meta Object containing metadata such as textures or images for the scene.
@@ -4,7 +4,6 @@ import { Texture3DImageData } from "./types.js";
4
4
 
5
5
  /**
6
6
  * Creates a three-dimensional texture from raw data, with parameters to divide it into width, height, and depth
7
- * @remarks Compatible only with {@link WebGL2RenderingContext | WebGL 2 Rendering Context}.
8
7
  * @example
9
8
  * ```typescript
10
9
  * This creates a[name] with repeating data, 0 to 255
@@ -4,7 +4,6 @@ import { Texture3DImageData } from "./types.js";
4
4
 
5
5
  /**
6
6
  * Creates an array of textures directly from raw data, width and height and depth
7
- * @remarks Compatible only with {@link WebGL2RenderingContext | WebGL 2 Rendering Context}.
8
7
  * @example
9
8
  * ```typescript
10
9
  * This creates a[name] where each texture has a different color.
@@ -11,9 +11,6 @@ import { Texture } from "./Texture.js";
11
11
 
12
12
  /**
13
13
  * This class can be used to automatically save the depth information of a rendering into a texture
14
- * @remarks
15
- * When using a **WebGL1** rendering context, {@link DepthTexture} requires support for the
16
- * {@link https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ | WEBGL_depth_texture} extension.
17
14
  * @see Example: {@link https://threejs.org/examples/#webgl_depth_texture | depth / texture}
18
15
  * @see {@link https://threejs.org/docs/index.html#api/en/textures/DepthTexture | Official Documentation}
19
16
  * @see {@link https://github.com/mrdoob/three.js/blob/master/src/textures/DepthTexture.js | Source}
@@ -8,7 +8,6 @@ import {
8
8
  PixelFormat,
9
9
  PixelFormatGPU,
10
10
  TextureDataType,
11
- TextureEncoding,
12
11
  Wrapping,
13
12
  } from "../constants.js";
14
13
  import { EventDispatcher } from "../core/EventDispatcher.js";
@@ -78,7 +77,6 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
78
77
  format: PixelFormat,
79
78
  type: TextureDataType,
80
79
  anisotropy: number,
81
- encoding: TextureEncoding,
82
80
  );
83
81
 
84
82
  /**
@@ -324,19 +322,6 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
324
322
  */
325
323
  unpackAlignment: number; // TODO Fix typing to only allow the expected values.
326
324
 
327
- /**
328
- * The {@link Textures | {@link Texture} constants} page for details of other formats.
329
- * @remarks
330
- * Values of {@link encoding} !== {@link THREE.LinearEncoding} are only supported on _map_, _envMap_ and _emissiveMap_.
331
- * @remarks
332
- * Note that if this value is changed on a texture after the material has been used, it is necessary to trigger a {@link THREE.Material.needsUpdate} for this value to be realized in the shader.
333
- * @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
334
- * @see {@link THREE.TextureDataType}
335
- * @defaultValue {@link THREE.LinearEncoding}
336
- * @deprecated Use {@link Texture.colorSpace .colorSpace} in three.js r152+.
337
- */
338
- encoding: TextureEncoding;
339
-
340
325
  /**
341
326
  * The {@link Textures | {@link Texture} constants} page for details of other color spaces.
342
327
  * @remarks
@@ -354,13 +339,6 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
354
339
  */
355
340
  isRenderTargetTexture: boolean;
356
341
 
357
- /**
358
- * Indicates whether this texture should be processed by {@link THREE.PMREMGenerator} or not.
359
- * @remarks Only relevant for render target textures.
360
- * @defaultValue `false`
361
- */
362
- needsPMREMUpdate: boolean;
363
-
364
342
  /**
365
343
  * An object that can be used to store custom data about the texture.
366
344
  * @remarks It should not hold references to functions as these will not be cloned.
@@ -375,11 +353,24 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
375
353
  */
376
354
  version: number;
377
355
 
356
+ /**
357
+ * Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target
358
+ * textures)
359
+ */
360
+ pmremVersion: number;
361
+
378
362
  /**
379
363
  * Set this to `true` to trigger an update next time the texture is used. Particularly important for setting the wrap mode.
380
364
  */
381
365
  set needsUpdate(value: boolean);
382
366
 
367
+ /**
368
+ * Indicates whether this texture should be processed by {@link THREE.PMREMGenerator} or not.
369
+ * @remarks Only relevant for render target textures.
370
+ * @defaultValue `false`
371
+ */
372
+ set needsPMREMUpdate(value: boolean);
373
+
383
374
  /**
384
375
  * The Global default value for {@link anisotropy | .anisotropy}.
385
376
  * @defaultValue `1`.
@@ -1,8 +0,0 @@
1
- import Node from "./Node.js";
2
- import UniformNode from "./UniformNode.js";
3
-
4
- export default class ArrayUniformNode extends UniformNode<undefined> {
5
- isArrayUniformNode: true;
6
- nodes: Node[];
7
- constructor(nodes?: Node[]);
8
- }
@@ -1,12 +0,0 @@
1
- import TextureNode from "../accessors/TextureNode.js";
2
- import Node from "../core/Node.js";
3
- import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
-
5
- export default class SpecularMIPLevelNode extends Node {
6
- textureNode: TextureNode;
7
- roughnessNode: Node | null;
8
-
9
- constructor(textureNode: TextureNode, roughnessNode?: Node | null);
10
- }
11
-
12
- export const specularMIPLevel: () => ShaderNodeObject<SpecularMIPLevelNode>;
@@ -1,6 +0,0 @@
1
- import { WebGLRenderer, WebGLRendererParameters } from "./WebGLRenderer.js";
2
-
3
- export class WebGL1Renderer extends WebGLRenderer {
4
- constructor(parameters?: WebGLRendererParameters);
5
- readonly isWebGL1Renderer: true;
6
- }