@types/three 0.160.0 → 0.161.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (653) hide show
  1. three/README.md +1 -1
  2. three/build/three.d.cts +1 -1
  3. three/build/three.module.d.ts +1 -1
  4. three/build/three.module.min.d.ts +1 -1
  5. three/examples/jsm/Addons.d.ts +269 -265
  6. three/examples/jsm/animation/AnimationClipCreator.d.ts +1 -1
  7. three/examples/jsm/animation/CCDIKSolver.d.ts +1 -1
  8. three/examples/jsm/animation/MMDAnimationHelper.d.ts +5 -5
  9. three/examples/jsm/animation/MMDPhysics.d.ts +1 -1
  10. three/examples/jsm/cameras/CinematicCamera.d.ts +4 -4
  11. three/examples/jsm/capabilities/WebGPU.d.ts +2 -0
  12. three/examples/jsm/controls/ArcballControls.d.ts +8 -8
  13. three/examples/jsm/controls/DragControls.d.ts +1 -1
  14. three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
  15. three/examples/jsm/controls/FlyControls.d.ts +1 -1
  16. three/examples/jsm/controls/MapControls.d.ts +2 -2
  17. three/examples/jsm/controls/OrbitControls.d.ts +1 -1
  18. three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
  19. three/examples/jsm/controls/TrackballControls.d.ts +1 -1
  20. three/examples/jsm/controls/TransformControls.d.ts +37 -37
  21. three/examples/jsm/csm/CSM.d.ts +3 -3
  22. three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
  23. three/examples/jsm/csm/CSMHelper.d.ts +2 -2
  24. three/examples/jsm/curves/CurveExtras.d.ts +1 -1
  25. three/examples/jsm/curves/NURBSCurve.d.ts +1 -1
  26. three/examples/jsm/curves/NURBSSurface.d.ts +1 -1
  27. three/examples/jsm/curves/NURBSUtils.d.ts +137 -11
  28. three/examples/jsm/curves/NURBSVolume.d.ts +23 -0
  29. three/examples/jsm/deprecated/Geometry.d.ts +10 -11
  30. three/examples/jsm/effects/AnaglyphEffect.d.ts +1 -1
  31. three/examples/jsm/effects/AsciiEffect.d.ts +1 -1
  32. three/examples/jsm/effects/OutlineEffect.d.ts +1 -1
  33. three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +1 -1
  34. three/examples/jsm/effects/PeppersGhostEffect.d.ts +1 -1
  35. three/examples/jsm/effects/StereoEffect.d.ts +1 -1
  36. three/examples/jsm/environments/DebugEnvironment.d.ts +1 -1
  37. three/examples/jsm/environments/RoomEnvironment.d.ts +1 -1
  38. three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
  39. three/examples/jsm/exporters/EXRExporter.d.ts +1 -1
  40. three/examples/jsm/exporters/GLTFExporter.d.ts +1 -1
  41. three/examples/jsm/exporters/KTX2Exporter.d.ts +1 -1
  42. three/examples/jsm/exporters/MMDExporter.d.ts +1 -1
  43. three/examples/jsm/exporters/OBJExporter.d.ts +1 -1
  44. three/examples/jsm/exporters/PLYExporter.d.ts +1 -1
  45. three/examples/jsm/exporters/STLExporter.d.ts +1 -1
  46. three/examples/jsm/exporters/USDZExporter.d.ts +2 -1
  47. three/examples/jsm/geometries/BoxLineGeometry.d.ts +1 -1
  48. three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
  49. three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
  50. three/examples/jsm/geometries/ParametricGeometries.d.ts +2 -2
  51. three/examples/jsm/geometries/ParametricGeometry.d.ts +1 -1
  52. three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +1 -1
  53. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +1 -1
  54. three/examples/jsm/geometries/TeapotGeometry.d.ts +1 -1
  55. three/examples/jsm/geometries/TextGeometry.d.ts +3 -3
  56. three/examples/jsm/helpers/LightProbeHelper.d.ts +1 -1
  57. three/examples/jsm/helpers/OctreeHelper.d.ts +3 -3
  58. three/examples/jsm/helpers/PositionalAudioHelper.d.ts +1 -1
  59. three/examples/jsm/helpers/RectAreaLightHelper.d.ts +1 -1
  60. three/examples/jsm/helpers/TextureHelper.d.ts +2 -2
  61. three/examples/jsm/helpers/VertexNormalsHelper.d.ts +1 -1
  62. three/examples/jsm/helpers/VertexTangentsHelper.d.ts +1 -1
  63. three/examples/jsm/helpers/ViewHelper.d.ts +1 -1
  64. three/examples/jsm/interactive/HTMLMesh.d.ts +1 -1
  65. three/examples/jsm/interactive/InteractiveGroup.d.ts +1 -1
  66. three/examples/jsm/interactive/SelectionBox.d.ts +1 -1
  67. three/examples/jsm/interactive/SelectionHelper.d.ts +1 -1
  68. three/examples/jsm/libs/fflate.module.d.ts +1 -1
  69. three/examples/jsm/libs/lil-gui.module.min.d.ts +26 -27
  70. three/examples/jsm/libs/meshopt_decoder.module.d.ts +1 -1
  71. three/examples/jsm/libs/stats.module.d.ts +1 -1
  72. three/examples/jsm/libs/tween.module.d.ts +7 -7
  73. three/examples/jsm/lights/IESSpotLight.d.ts +1 -1
  74. three/examples/jsm/lights/LightProbeGenerator.d.ts +1 -1
  75. three/examples/jsm/lines/Line2.d.ts +3 -3
  76. three/examples/jsm/lines/LineGeometry.d.ts +2 -2
  77. three/examples/jsm/lines/LineMaterial.d.ts +1 -1
  78. three/examples/jsm/lines/LineSegments2.d.ts +3 -3
  79. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +1 -1
  80. three/examples/jsm/lines/Wireframe.d.ts +3 -3
  81. three/examples/jsm/lines/WireframeGeometry2.d.ts +2 -2
  82. three/examples/jsm/loaders/3DMLoader.d.ts +1 -1
  83. three/examples/jsm/loaders/3MFLoader.d.ts +1 -1
  84. three/examples/jsm/loaders/AMFLoader.d.ts +1 -1
  85. three/examples/jsm/loaders/BVHLoader.d.ts +1 -1
  86. three/examples/jsm/loaders/ColladaLoader.d.ts +1 -1
  87. three/examples/jsm/loaders/DDSLoader.d.ts +1 -1
  88. three/examples/jsm/loaders/DRACOLoader.d.ts +1 -1
  89. three/examples/jsm/loaders/EXRLoader.d.ts +1 -1
  90. three/examples/jsm/loaders/FBXLoader.d.ts +1 -1
  91. three/examples/jsm/loaders/FontLoader.d.ts +1 -1
  92. three/examples/jsm/loaders/GCodeLoader.d.ts +1 -1
  93. three/examples/jsm/loaders/GLTFLoader.d.ts +9 -8
  94. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +2 -2
  95. three/examples/jsm/loaders/IESLoader.d.ts +1 -1
  96. three/examples/jsm/loaders/KMZLoader.d.ts +2 -2
  97. three/examples/jsm/loaders/KTX2Loader.d.ts +46 -6
  98. three/examples/jsm/loaders/KTXLoader.d.ts +1 -1
  99. three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
  100. three/examples/jsm/loaders/LUT3dlLoader.d.ts +29 -2
  101. three/examples/jsm/loaders/LUTCubeLoader.d.ts +37 -2
  102. three/examples/jsm/loaders/LWOLoader.d.ts +1 -1
  103. three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
  104. three/examples/jsm/loaders/LottieLoader.d.ts +1 -1
  105. three/examples/jsm/loaders/MD2Loader.d.ts +1 -1
  106. three/examples/jsm/loaders/MDDLoader.d.ts +1 -1
  107. three/examples/jsm/loaders/MMDLoader.d.ts +1 -1
  108. three/examples/jsm/loaders/MTLLoader.d.ts +4 -4
  109. three/examples/jsm/loaders/MaterialXLoader.d.ts +2 -2
  110. three/examples/jsm/loaders/NRRDLoader.d.ts +2 -2
  111. three/examples/jsm/loaders/OBJLoader.d.ts +2 -2
  112. three/examples/jsm/loaders/PCDLoader.d.ts +1 -1
  113. three/examples/jsm/loaders/PDBLoader.d.ts +1 -1
  114. three/examples/jsm/loaders/PLYLoader.d.ts +1 -1
  115. three/examples/jsm/loaders/PVRLoader.d.ts +1 -1
  116. three/examples/jsm/loaders/RGBELoader.d.ts +1 -1
  117. three/examples/jsm/loaders/RGBMLoader.d.ts +1 -1
  118. three/examples/jsm/loaders/STLLoader.d.ts +1 -1
  119. three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
  120. three/examples/jsm/loaders/TDSLoader.d.ts +1 -1
  121. three/examples/jsm/loaders/TGALoader.d.ts +1 -1
  122. three/examples/jsm/loaders/TIFFLoader.d.ts +1 -1
  123. three/examples/jsm/loaders/TTFLoader.d.ts +1 -1
  124. three/examples/jsm/loaders/TiltLoader.d.ts +1 -1
  125. three/examples/jsm/loaders/USDZLoader.d.ts +1 -1
  126. three/examples/jsm/loaders/VOXLoader.d.ts +1 -1
  127. three/examples/jsm/loaders/VRMLLoader.d.ts +1 -1
  128. three/examples/jsm/loaders/VTKLoader.d.ts +1 -1
  129. three/examples/jsm/loaders/XYZLoader.d.ts +1 -1
  130. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +2 -3
  131. three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +13 -0
  132. three/examples/jsm/math/Capsule.d.ts +1 -1
  133. three/examples/jsm/math/ColorConverter.d.ts +1 -1
  134. three/examples/jsm/math/ConvexHull.d.ts +1 -1
  135. three/examples/jsm/math/Lut.d.ts +1 -1
  136. three/examples/jsm/math/MeshSurfaceSampler.d.ts +1 -1
  137. three/examples/jsm/math/OBB.d.ts +1 -1
  138. three/examples/jsm/math/Octree.d.ts +2 -2
  139. three/examples/jsm/misc/ConvexObjectBreaker.d.ts +1 -1
  140. three/examples/jsm/misc/GPUComputationRenderer.d.ts +9 -9
  141. three/examples/jsm/misc/Gyroscope.d.ts +1 -1
  142. three/examples/jsm/misc/MD2Character.d.ts +1 -1
  143. three/examples/jsm/misc/MD2CharacterComplex.d.ts +1 -1
  144. three/examples/jsm/misc/MorphAnimMesh.d.ts +1 -1
  145. three/examples/jsm/misc/MorphBlendMesh.d.ts +1 -1
  146. three/examples/jsm/misc/ProgressiveLightMap.d.ts +2 -2
  147. three/examples/jsm/misc/RollerCoaster.d.ts +1 -1
  148. three/examples/jsm/misc/TubePainter.d.ts +1 -1
  149. three/examples/jsm/misc/Volume.d.ts +3 -3
  150. three/examples/jsm/misc/VolumeSlice.d.ts +2 -2
  151. three/examples/jsm/modifiers/CurveModifier.d.ts +4 -4
  152. three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +1 -1
  153. three/examples/jsm/modifiers/SimplifyModifier.d.ts +1 -1
  154. three/examples/jsm/modifiers/TessellateModifier.d.ts +1 -1
  155. three/examples/jsm/nodes/Nodes.d.ts +261 -196
  156. three/examples/jsm/nodes/accessors/BitangentNode.d.ts +7 -7
  157. three/examples/jsm/nodes/accessors/BufferNode.d.ts +3 -3
  158. three/examples/jsm/nodes/accessors/CameraNode.d.ts +19 -8
  159. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +12 -6
  160. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -3
  161. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +9 -9
  162. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +4 -4
  163. three/examples/jsm/nodes/accessors/ModelNode.d.ts +4 -2
  164. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +3 -3
  165. three/examples/jsm/nodes/accessors/NormalNode.d.ts +6 -6
  166. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +15 -11
  167. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +2 -2
  168. three/examples/jsm/nodes/accessors/PositionNode.d.ts +8 -8
  169. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +3 -3
  170. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +3 -3
  171. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +3 -3
  172. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +3 -3
  173. three/examples/jsm/nodes/accessors/TangentNode.d.ts +7 -7
  174. three/examples/jsm/nodes/accessors/TextureBicubicNode.d.ts +18 -0
  175. three/examples/jsm/nodes/accessors/TextureNode.d.ts +15 -7
  176. three/examples/jsm/nodes/accessors/UVNode.d.ts +2 -2
  177. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +3 -3
  178. three/examples/jsm/nodes/accessors/VertexColorNode.d.ts +12 -0
  179. three/examples/jsm/nodes/code/CodeNode.d.ts +4 -4
  180. three/examples/jsm/nodes/code/ExpressionNode.d.ts +3 -3
  181. three/examples/jsm/nodes/code/FunctionCallNode.d.ts +10 -4
  182. three/examples/jsm/nodes/code/FunctionNode.d.ts +8 -9
  183. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +2 -2
  184. three/examples/jsm/nodes/core/AssignNode.d.ts +17 -0
  185. three/examples/jsm/nodes/core/AttributeNode.d.ts +4 -4
  186. three/examples/jsm/nodes/core/BypassNode.d.ts +8 -2
  187. three/examples/jsm/nodes/core/CacheNode.d.ts +11 -3
  188. three/examples/jsm/nodes/core/ConstNode.d.ts +3 -3
  189. three/examples/jsm/nodes/core/ContextNode.d.ts +11 -3
  190. three/examples/jsm/nodes/core/IndexNode.d.ts +18 -0
  191. three/examples/jsm/nodes/core/InputNode.d.ts +4 -4
  192. three/examples/jsm/nodes/core/LightingModel.d.ts +36 -0
  193. three/examples/jsm/nodes/core/Node.d.ts +34 -10
  194. three/examples/jsm/nodes/core/NodeBuilder.d.ts +34 -33
  195. three/examples/jsm/nodes/core/NodeCache.d.ts +2 -2
  196. three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -7
  197. three/examples/jsm/nodes/core/NodeFunction.d.ts +1 -1
  198. three/examples/jsm/nodes/core/NodeKeywords.d.ts +2 -2
  199. three/examples/jsm/nodes/core/NodeParser.d.ts +1 -1
  200. three/examples/jsm/nodes/core/NodeUniform.d.ts +1 -1
  201. three/examples/jsm/nodes/core/NodeUtils.d.ts +2 -2
  202. three/examples/jsm/nodes/core/NodeVarying.d.ts +1 -1
  203. three/examples/jsm/nodes/core/PropertyNode.d.ts +22 -5
  204. three/examples/jsm/nodes/core/StackNode.d.ts +1 -1
  205. three/examples/jsm/nodes/core/TempNode.d.ts +3 -3
  206. three/examples/jsm/nodes/core/UniformNode.d.ts +5 -5
  207. three/examples/jsm/nodes/core/VarNode.d.ts +11 -5
  208. three/examples/jsm/nodes/core/VaryingNode.d.ts +8 -2
  209. three/examples/jsm/nodes/core/constants.d.ts +57 -58
  210. three/examples/jsm/nodes/display/AfterImageNode.d.ts +25 -0
  211. three/examples/jsm/nodes/display/AnamorphicNode.d.ts +32 -0
  212. three/examples/jsm/nodes/display/BlendModeNode.d.ts +21 -11
  213. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +17 -6
  214. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +21 -8
  215. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +2 -2
  216. three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +28 -0
  217. three/examples/jsm/nodes/display/NormalMapNode.d.ts +11 -5
  218. three/examples/jsm/nodes/display/PassNode.d.ts +44 -0
  219. three/examples/jsm/nodes/display/PosterizeNode.d.ts +8 -2
  220. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +4 -4
  221. three/examples/jsm/nodes/display/ViewportDepthNode.d.ts +32 -0
  222. three/examples/jsm/nodes/display/ViewportNode.d.ts +8 -8
  223. three/examples/jsm/nodes/display/ViewportSharedTextureNode.d.ts +18 -0
  224. three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +33 -0
  225. three/examples/jsm/nodes/fog/FogExp2Node.d.ts +9 -3
  226. three/examples/jsm/nodes/fog/FogNode.d.ts +8 -2
  227. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +9 -3
  228. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +10 -3
  229. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +4 -3
  230. three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts +7 -0
  231. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +4 -3
  232. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +4 -3
  233. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +4 -3
  234. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +2 -2
  235. three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +7 -0
  236. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +18 -9
  237. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
  238. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +2 -2
  239. three/examples/jsm/nodes/geometry/RangeNode.d.ts +4 -4
  240. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +8 -2
  241. three/examples/jsm/nodes/lighting/AONode.d.ts +2 -2
  242. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +3 -3
  243. three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +2 -2
  244. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +4 -4
  245. three/examples/jsm/nodes/lighting/LightUtils.d.ts +2 -2
  246. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +22 -15
  247. three/examples/jsm/nodes/lighting/LightingNode.d.ts +1 -1
  248. three/examples/jsm/nodes/lighting/LightsNode.d.ts +6 -6
  249. three/examples/jsm/nodes/lighting/PointLightNode.d.ts +3 -3
  250. three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +3 -3
  251. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +2 -2
  252. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +2 -2
  253. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +3 -3
  254. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +3 -4
  255. three/examples/jsm/nodes/materials/Materials.d.ts +9 -17
  256. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +4 -6
  257. three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +12 -0
  258. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +6 -10
  259. three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +17 -0
  260. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +4 -5
  261. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +39 -23
  262. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +5 -11
  263. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +4 -14
  264. three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +4 -4
  265. three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +3 -3
  266. three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +3 -3
  267. three/examples/jsm/nodes/math/CondNode.d.ts +8 -2
  268. three/examples/jsm/nodes/math/HashNode.d.ts +16 -0
  269. three/examples/jsm/nodes/math/MathNode.d.ts +65 -59
  270. three/examples/jsm/nodes/math/MathUtils.d.ts +16 -0
  271. three/examples/jsm/nodes/math/OperatorNode.d.ts +27 -26
  272. three/examples/jsm/nodes/math/TriNoise3D.d.ts +12 -0
  273. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +8 -2
  274. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +100 -50
  275. three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +2 -2
  276. three/examples/jsm/nodes/utils/ConvertNode.d.ts +2 -2
  277. three/examples/jsm/nodes/utils/DiscardNode.d.ts +16 -0
  278. three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +2 -2
  279. three/examples/jsm/nodes/utils/JoinNode.d.ts +2 -2
  280. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +2 -2
  281. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +4 -4
  282. three/examples/jsm/nodes/utils/OscNode.d.ts +6 -6
  283. three/examples/jsm/nodes/utils/ReflectorNode.d.ts +30 -0
  284. three/examples/jsm/nodes/utils/RemapNode.d.ts +24 -5
  285. three/examples/jsm/nodes/utils/RotateNode.d.ts +21 -0
  286. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +9 -3
  287. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +3 -3
  288. three/examples/jsm/nodes/utils/SplitNode.d.ts +2 -3
  289. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +2 -2
  290. three/examples/jsm/nodes/utils/TimerNode.d.ts +6 -6
  291. three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +10 -4
  292. three/examples/jsm/objects/GroundedSkybox.d.ts +5 -0
  293. three/examples/jsm/objects/Lensflare.d.ts +1 -1
  294. three/examples/jsm/objects/MarchingCubes.d.ts +1 -1
  295. three/examples/jsm/objects/QuadMesh.d.ts +5 -3
  296. three/examples/jsm/objects/Reflector.d.ts +4 -4
  297. three/examples/jsm/objects/ReflectorForSSRPass.d.ts +8 -8
  298. three/examples/jsm/objects/Refractor.d.ts +5 -5
  299. three/examples/jsm/objects/ShadowMesh.d.ts +1 -1
  300. three/examples/jsm/objects/Sky.d.ts +1 -1
  301. three/examples/jsm/objects/Water.d.ts +1 -1
  302. three/examples/jsm/objects/Water2.d.ts +1 -1
  303. three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
  304. three/examples/jsm/physics/RapierPhysics.d.ts +1 -1
  305. three/examples/jsm/postprocessing/AfterimagePass.d.ts +2 -2
  306. three/examples/jsm/postprocessing/BloomPass.d.ts +2 -2
  307. three/examples/jsm/postprocessing/BokehPass.d.ts +2 -2
  308. three/examples/jsm/postprocessing/ClearPass.d.ts +2 -2
  309. three/examples/jsm/postprocessing/CubeTexturePass.d.ts +2 -2
  310. three/examples/jsm/postprocessing/DotScreenPass.d.ts +2 -2
  311. three/examples/jsm/postprocessing/EffectComposer.d.ts +4 -4
  312. three/examples/jsm/postprocessing/FilmPass.d.ts +2 -2
  313. three/examples/jsm/postprocessing/GTAOPass.d.ts +5 -2
  314. three/examples/jsm/postprocessing/GlitchPass.d.ts +2 -2
  315. three/examples/jsm/postprocessing/HalftonePass.d.ts +2 -2
  316. three/examples/jsm/postprocessing/LUTPass.d.ts +2 -2
  317. three/examples/jsm/postprocessing/MaskPass.d.ts +2 -2
  318. three/examples/jsm/postprocessing/OutlinePass.d.ts +6 -6
  319. three/examples/jsm/postprocessing/OutputPass.d.ts +2 -2
  320. three/examples/jsm/postprocessing/Pass.d.ts +1 -1
  321. three/examples/jsm/postprocessing/RenderPass.d.ts +2 -2
  322. three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +4 -4
  323. three/examples/jsm/postprocessing/SAOPass.d.ts +5 -5
  324. three/examples/jsm/postprocessing/SMAAPass.d.ts +2 -2
  325. three/examples/jsm/postprocessing/SSAARenderPass.d.ts +2 -2
  326. three/examples/jsm/postprocessing/SSAOPass.d.ts +4 -4
  327. three/examples/jsm/postprocessing/SSRPass.d.ts +10 -10
  328. three/examples/jsm/postprocessing/SavePass.d.ts +2 -2
  329. three/examples/jsm/postprocessing/ShaderPass.d.ts +2 -2
  330. three/examples/jsm/postprocessing/TAARenderPass.d.ts +2 -2
  331. three/examples/jsm/postprocessing/TexturePass.d.ts +2 -2
  332. three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +2 -2
  333. three/examples/jsm/renderers/CSS2DRenderer.d.ts +1 -1
  334. three/examples/jsm/renderers/CSS3DRenderer.d.ts +1 -1
  335. three/examples/jsm/renderers/Projector.d.ts +1 -1
  336. three/examples/jsm/renderers/SVGRenderer.d.ts +1 -1
  337. three/examples/jsm/renderers/common/Backend.d.ts +8 -4
  338. three/examples/jsm/renderers/common/Color4.d.ts +9 -0
  339. three/examples/jsm/renderers/common/Info.d.ts +8 -2
  340. three/examples/jsm/renderers/common/PostProcessing.d.ts +11 -0
  341. three/examples/jsm/renderers/common/Renderer.d.ts +245 -6
  342. three/examples/jsm/renderers/common/StorageTexture.d.ts +5 -0
  343. three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +5 -3
  344. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +2 -2
  345. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +7 -7
  346. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +1 -1
  347. three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts +1 -1
  348. three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +16 -7
  349. three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +7 -7
  350. three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
  351. three/examples/jsm/shaders/AfterimageShader.d.ts +1 -1
  352. three/examples/jsm/shaders/BleachBypassShader.d.ts +1 -1
  353. three/examples/jsm/shaders/BlendShader.d.ts +1 -1
  354. three/examples/jsm/shaders/BokehShader.d.ts +1 -1
  355. three/examples/jsm/shaders/BokehShader2.d.ts +1 -1
  356. three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -1
  357. three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -1
  358. three/examples/jsm/shaders/ColorifyShader.d.ts +1 -1
  359. three/examples/jsm/shaders/ConvolutionShader.d.ts +1 -1
  360. three/examples/jsm/shaders/CopyShader.d.ts +1 -1
  361. three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -1
  362. three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -1
  363. three/examples/jsm/shaders/DigitalGlitch.d.ts +1 -1
  364. three/examples/jsm/shaders/DotScreenShader.d.ts +1 -1
  365. three/examples/jsm/shaders/ExposureShader.d.ts +2 -2
  366. three/examples/jsm/shaders/FXAAShader.d.ts +1 -1
  367. three/examples/jsm/shaders/FilmShader.d.ts +1 -1
  368. three/examples/jsm/shaders/FocusShader.d.ts +1 -1
  369. three/examples/jsm/shaders/FreiChenShader.d.ts +1 -1
  370. three/examples/jsm/shaders/GTAOShader.d.ts +1 -1
  371. three/examples/jsm/shaders/GammaCorrectionShader.d.ts +1 -1
  372. three/examples/jsm/shaders/GodRaysShader.d.ts +1 -1
  373. three/examples/jsm/shaders/HalftoneShader.d.ts +1 -1
  374. three/examples/jsm/shaders/HorizontalBlurShader.d.ts +1 -1
  375. three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -1
  376. three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -1
  377. three/examples/jsm/shaders/KaleidoShader.d.ts +1 -1
  378. three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -1
  379. three/examples/jsm/shaders/LuminosityShader.d.ts +1 -1
  380. three/examples/jsm/shaders/MMDToonShader.d.ts +1 -1
  381. three/examples/jsm/shaders/MirrorShader.d.ts +1 -1
  382. three/examples/jsm/shaders/NormalMapShader.d.ts +1 -1
  383. three/examples/jsm/shaders/OutputShader.d.ts +1 -1
  384. three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +1 -1
  385. three/examples/jsm/shaders/RGBShiftShader.d.ts +1 -1
  386. three/examples/jsm/shaders/SAOShader.d.ts +1 -1
  387. three/examples/jsm/shaders/SMAAShader.d.ts +1 -1
  388. three/examples/jsm/shaders/SSAOShader.d.ts +1 -1
  389. three/examples/jsm/shaders/SSRShader.d.ts +1 -1
  390. three/examples/jsm/shaders/SepiaShader.d.ts +1 -1
  391. three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -1
  392. three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -1
  393. three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -1
  394. three/examples/jsm/shaders/ToonShader.d.ts +1 -1
  395. three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -1
  396. three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -1
  397. three/examples/jsm/shaders/VelocityShader.d.ts +5 -3
  398. three/examples/jsm/shaders/VerticalBlurShader.d.ts +1 -1
  399. three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -1
  400. three/examples/jsm/shaders/VignetteShader.d.ts +1 -1
  401. three/examples/jsm/shaders/VolumeShader.d.ts +1 -1
  402. three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -1
  403. three/examples/jsm/transpiler/GLSLDecoder.d.ts +1 -1
  404. three/examples/jsm/transpiler/ShaderToyDecoder.d.ts +1 -1
  405. three/examples/jsm/transpiler/TSLEncoder.d.ts +1 -1
  406. three/examples/jsm/utils/BufferGeometryUtils.d.ts +3 -13
  407. three/examples/jsm/utils/CameraUtils.d.ts +1 -1
  408. three/examples/jsm/utils/GPUStatsPanel.d.ts +1 -1
  409. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +1 -1
  410. three/examples/jsm/utils/GeometryUtils.d.ts +1 -1
  411. three/examples/jsm/utils/LDrawUtils.d.ts +1 -1
  412. three/examples/jsm/utils/PackedPhongMaterial.d.ts +1 -1
  413. three/examples/jsm/utils/SceneUtils.d.ts +1 -1
  414. three/examples/jsm/utils/ShadowMapViewer.d.ts +1 -1
  415. three/examples/jsm/utils/SkeletonUtils.d.ts +1 -1
  416. three/examples/jsm/utils/TextureUtils.d.ts +1 -1
  417. three/examples/jsm/utils/UVsDebug.d.ts +1 -1
  418. three/examples/jsm/webxr/ARButton.d.ts +1 -1
  419. three/examples/jsm/webxr/OculusHandModel.d.ts +2 -2
  420. three/examples/jsm/webxr/OculusHandPointerModel.d.ts +3 -3
  421. three/examples/jsm/webxr/Text2D.d.ts +1 -1
  422. three/examples/jsm/webxr/VRButton.d.ts +1 -1
  423. three/examples/jsm/webxr/XRButton.d.ts +1 -1
  424. three/examples/jsm/webxr/XRControllerModelFactory.d.ts +6 -5
  425. three/examples/jsm/webxr/XREstimatedLight.d.ts +1 -1
  426. three/examples/jsm/webxr/XRHandMeshModel.d.ts +10 -2
  427. three/examples/jsm/webxr/XRHandModelFactory.d.ts +5 -5
  428. three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +3 -3
  429. three/examples/jsm/webxr/XRPlanes.d.ts +1 -1
  430. three/index.d.ts +1 -1
  431. three/package.json +2 -2
  432. three/src/Three.d.ts +187 -187
  433. three/src/animation/AnimationAction.d.ts +4 -4
  434. three/src/animation/AnimationClip.d.ts +4 -4
  435. three/src/animation/AnimationMixer.d.ts +6 -6
  436. three/src/animation/AnimationUtils.d.ts +1 -1
  437. three/src/animation/KeyframeTrack.d.ts +5 -5
  438. three/src/animation/tracks/BooleanKeyframeTrack.d.ts +1 -1
  439. three/src/animation/tracks/ColorKeyframeTrack.d.ts +2 -2
  440. three/src/animation/tracks/NumberKeyframeTrack.d.ts +2 -2
  441. three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +2 -2
  442. three/src/animation/tracks/StringKeyframeTrack.d.ts +2 -2
  443. three/src/animation/tracks/VectorKeyframeTrack.d.ts +2 -2
  444. three/src/audio/Audio.d.ts +4 -4
  445. three/src/audio/AudioAnalyser.d.ts +1 -1
  446. three/src/audio/AudioListener.d.ts +3 -3
  447. three/src/audio/PositionalAudio.d.ts +2 -2
  448. three/src/cameras/ArrayCamera.d.ts +1 -1
  449. three/src/cameras/Camera.d.ts +6 -6
  450. three/src/cameras/CubeCamera.d.ts +5 -5
  451. three/src/cameras/OrthographicCamera.d.ts +2 -2
  452. three/src/cameras/PerspectiveCamera.d.ts +15 -2
  453. three/src/cameras/StereoCamera.d.ts +3 -3
  454. three/src/constants.d.ts +75 -76
  455. three/src/core/BufferAttribute.d.ts +3 -3
  456. three/src/core/BufferGeometry.d.ts +11 -11
  457. three/src/core/InstancedBufferAttribute.d.ts +1 -1
  458. three/src/core/InstancedBufferGeometry.d.ts +1 -2
  459. three/src/core/InstancedInterleavedBuffer.d.ts +2 -2
  460. three/src/core/InterleavedBuffer.d.ts +3 -3
  461. three/src/core/InterleavedBufferAttribute.d.ts +16 -6
  462. three/src/core/Object3D.d.ts +29 -29
  463. three/src/core/Raycaster.d.ts +6 -6
  464. three/src/core/RenderTarget.d.ts +10 -10
  465. three/src/core/UniformsGroup.d.ts +3 -3
  466. three/src/extras/ImageUtils.d.ts +5 -5
  467. three/src/extras/PMREMGenerator.d.ts +5 -5
  468. three/src/extras/core/Curve.d.ts +11 -11
  469. three/src/extras/core/CurvePath.d.ts +10 -9
  470. three/src/extras/core/Interpolations.d.ts +1 -1
  471. three/src/extras/core/Path.d.ts +3 -3
  472. three/src/extras/core/Shape.d.ts +3 -3
  473. three/src/extras/core/ShapePath.d.ts +5 -5
  474. three/src/extras/curves/ArcCurve.d.ts +2 -2
  475. three/src/extras/curves/CatmullRomCurve3.d.ts +4 -4
  476. three/src/extras/curves/CubicBezierCurve.d.ts +3 -3
  477. three/src/extras/curves/CubicBezierCurve3.d.ts +3 -3
  478. three/src/extras/curves/Curves.d.ts +10 -10
  479. three/src/extras/curves/EllipseCurve.d.ts +3 -3
  480. three/src/extras/curves/LineCurve.d.ts +3 -3
  481. three/src/extras/curves/LineCurve3.d.ts +3 -3
  482. three/src/extras/curves/QuadraticBezierCurve.d.ts +3 -3
  483. three/src/extras/curves/QuadraticBezierCurve3.d.ts +3 -3
  484. three/src/extras/curves/SplineCurve.d.ts +3 -3
  485. three/src/geometries/BoxGeometry.d.ts +2 -2
  486. three/src/geometries/CapsuleGeometry.d.ts +2 -2
  487. three/src/geometries/CircleGeometry.d.ts +2 -2
  488. three/src/geometries/ConeGeometry.d.ts +2 -2
  489. three/src/geometries/CylinderGeometry.d.ts +2 -2
  490. three/src/geometries/DodecahedronGeometry.d.ts +2 -2
  491. three/src/geometries/EdgesGeometry.d.ts +2 -2
  492. three/src/geometries/ExtrudeGeometry.d.ts +6 -6
  493. three/src/geometries/Geometries.d.ts +21 -21
  494. three/src/geometries/IcosahedronGeometry.d.ts +2 -2
  495. three/src/geometries/LatheGeometry.d.ts +3 -3
  496. three/src/geometries/OctahedronGeometry.d.ts +2 -2
  497. three/src/geometries/PlaneGeometry.d.ts +2 -2
  498. three/src/geometries/PolyhedronGeometry.d.ts +2 -2
  499. three/src/geometries/RingGeometry.d.ts +3 -3
  500. three/src/geometries/ShapeGeometry.d.ts +3 -3
  501. three/src/geometries/SphereGeometry.d.ts +2 -2
  502. three/src/geometries/TetrahedronGeometry.d.ts +2 -2
  503. three/src/geometries/TorusGeometry.d.ts +2 -2
  504. three/src/geometries/TorusKnotGeometry.d.ts +2 -2
  505. three/src/geometries/TubeGeometry.d.ts +4 -4
  506. three/src/geometries/WireframeGeometry.d.ts +2 -2
  507. three/src/helpers/ArrowHelper.d.ts +6 -6
  508. three/src/helpers/AxesHelper.d.ts +3 -3
  509. three/src/helpers/Box3Helper.d.ts +4 -4
  510. three/src/helpers/BoxHelper.d.ts +6 -6
  511. three/src/helpers/CameraHelper.d.ts +5 -5
  512. three/src/helpers/DirectionalLightHelper.d.ts +6 -6
  513. three/src/helpers/GridHelper.d.ts +5 -5
  514. three/src/helpers/HemisphereLightHelper.d.ts +6 -6
  515. three/src/helpers/PlaneHelper.d.ts +3 -3
  516. three/src/helpers/PointLightHelper.d.ts +5 -5
  517. three/src/helpers/PolarGridHelper.d.ts +3 -3
  518. three/src/helpers/SkeletonHelper.d.ts +6 -6
  519. three/src/helpers/SpotLightHelper.d.ts +6 -6
  520. three/src/lights/AmbientLight.d.ts +3 -3
  521. three/src/lights/DirectionalLight.d.ts +6 -6
  522. three/src/lights/DirectionalLightShadow.d.ts +2 -2
  523. three/src/lights/HemisphereLight.d.ts +4 -4
  524. three/src/lights/Light.d.ts +4 -4
  525. three/src/lights/LightProbe.d.ts +2 -2
  526. three/src/lights/LightShadow.d.ts +7 -7
  527. three/src/lights/PointLight.d.ts +3 -3
  528. three/src/lights/PointLightShadow.d.ts +3 -3
  529. three/src/lights/RectAreaLight.d.ts +3 -3
  530. three/src/lights/SpotLight.d.ts +7 -7
  531. three/src/lights/SpotLightShadow.d.ts +2 -2
  532. three/src/loaders/AnimationLoader.d.ts +3 -3
  533. three/src/loaders/AudioLoader.d.ts +2 -2
  534. three/src/loaders/BufferGeometryLoader.d.ts +4 -4
  535. three/src/loaders/CompressedTextureLoader.d.ts +3 -3
  536. three/src/loaders/CubeTextureLoader.d.ts +3 -3
  537. three/src/loaders/DataTextureLoader.d.ts +3 -3
  538. three/src/loaders/FileLoader.d.ts +2 -2
  539. three/src/loaders/ImageBitmapLoader.d.ts +2 -2
  540. three/src/loaders/ImageLoader.d.ts +2 -2
  541. three/src/loaders/Loader.d.ts +1 -1
  542. three/src/loaders/LoadingManager.d.ts +1 -1
  543. three/src/loaders/MaterialLoader.d.ts +4 -4
  544. three/src/loaders/ObjectLoader.d.ts +9 -9
  545. three/src/loaders/TextureLoader.d.ts +3 -3
  546. three/src/materials/LineBasicMaterial.d.ts +3 -3
  547. three/src/materials/LineDashedMaterial.d.ts +1 -1
  548. three/src/materials/Material.d.ts +13 -11
  549. three/src/materials/Materials.d.ts +18 -18
  550. three/src/materials/MeshBasicMaterial.d.ts +4 -4
  551. three/src/materials/MeshDepthMaterial.d.ts +3 -3
  552. three/src/materials/MeshDistanceMaterial.d.ts +3 -3
  553. three/src/materials/MeshLambertMaterial.d.ts +5 -5
  554. three/src/materials/MeshMatcapMaterial.d.ts +5 -5
  555. three/src/materials/MeshNormalMaterial.d.ts +4 -4
  556. three/src/materials/MeshPhongMaterial.d.ts +5 -5
  557. three/src/materials/MeshPhysicalMaterial.d.ts +4 -4
  558. three/src/materials/MeshStandardMaterial.d.ts +5 -5
  559. three/src/materials/MeshToonMaterial.d.ts +5 -5
  560. three/src/materials/PointsMaterial.d.ts +3 -3
  561. three/src/materials/RawShaderMaterial.d.ts +2 -2
  562. three/src/materials/ShaderMaterial.d.ts +18 -10
  563. three/src/materials/ShadowMaterial.d.ts +2 -2
  564. three/src/materials/SpriteMaterial.d.ts +3 -3
  565. three/src/math/Box2.d.ts +1 -1
  566. three/src/math/Box3.d.ts +7 -7
  567. three/src/math/Color.d.ts +7 -7
  568. three/src/math/ColorManagement.d.ts +2 -2
  569. three/src/math/Cylindrical.d.ts +1 -1
  570. three/src/math/Euler.d.ts +5 -5
  571. three/src/math/Frustum.d.ts +8 -8
  572. three/src/math/Line3.d.ts +2 -2
  573. three/src/math/MathUtils.d.ts +1 -1
  574. three/src/math/Matrix3.d.ts +3 -3
  575. three/src/math/Matrix4.d.ts +5 -5
  576. three/src/math/Plane.d.ts +6 -6
  577. three/src/math/Quaternion.d.ts +31 -34
  578. three/src/math/Ray.d.ts +5 -5
  579. three/src/math/Sphere.d.ts +4 -4
  580. three/src/math/Spherical.d.ts +1 -1
  581. three/src/math/SphericalHarmonics3.d.ts +1 -1
  582. three/src/math/Triangle.d.ts +7 -24
  583. three/src/math/Vector2.d.ts +26 -161
  584. three/src/math/Vector3.d.ts +54 -62
  585. three/src/math/Vector4.d.ts +27 -22
  586. three/src/math/interpolants/CubicInterpolant.d.ts +1 -1
  587. three/src/math/interpolants/DiscreteInterpolant.d.ts +1 -1
  588. three/src/math/interpolants/LinearInterpolant.d.ts +1 -1
  589. three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +1 -1
  590. three/src/objects/BatchedMesh.d.ts +9 -10
  591. three/src/objects/Bone.d.ts +3 -3
  592. three/src/objects/Group.d.ts +2 -2
  593. three/src/objects/InstancedMesh.d.ts +11 -10
  594. three/src/objects/LOD.d.ts +4 -4
  595. three/src/objects/Line.d.ts +6 -5
  596. three/src/objects/LineLoop.d.ts +7 -5
  597. three/src/objects/LineSegments.d.ts +7 -5
  598. three/src/objects/Mesh.d.ts +5 -6
  599. three/src/objects/Points.d.ts +9 -9
  600. three/src/objects/Skeleton.d.ts +3 -3
  601. three/src/objects/SkinnedMesh.d.ts +13 -16
  602. three/src/objects/Sprite.d.ts +6 -6
  603. three/src/renderers/WebGL1Renderer.d.ts +1 -1
  604. three/src/renderers/WebGL3DRenderTarget.d.ts +2 -2
  605. three/src/renderers/WebGLArrayRenderTarget.d.ts +2 -2
  606. three/src/renderers/WebGLCubeRenderTarget.d.ts +4 -4
  607. three/src/renderers/WebGLMultipleRenderTargets.d.ts +2 -2
  608. three/src/renderers/WebGLRenderTarget.d.ts +2 -2
  609. three/src/renderers/WebGLRenderer.d.ts +34 -34
  610. three/src/renderers/shaders/ShaderLib.d.ts +1 -1
  611. three/src/renderers/shaders/UniformsLib.d.ts +3 -3
  612. three/src/renderers/shaders/UniformsUtils.d.ts +3 -3
  613. three/src/renderers/webgl/WebGLAttributes.d.ts +10 -10
  614. three/src/renderers/webgl/WebGLBindingStates.d.ts +8 -8
  615. three/src/renderers/webgl/WebGLBufferRenderer.d.ts +3 -3
  616. three/src/renderers/webgl/WebGLClipping.d.ts +4 -4
  617. three/src/renderers/webgl/WebGLCubeMaps.d.ts +1 -1
  618. three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +1 -1
  619. three/src/renderers/webgl/WebGLExtensions.d.ts +1 -1
  620. three/src/renderers/webgl/WebGLGeometries.d.ts +5 -5
  621. three/src/renderers/webgl/WebGLInfo.d.ts +1 -1
  622. three/src/renderers/webgl/WebGLLights.d.ts +2 -2
  623. three/src/renderers/webgl/WebGLProgram.d.ts +2 -3
  624. three/src/renderers/webgl/WebGLPrograms.d.ts +18 -16
  625. three/src/renderers/webgl/WebGLRenderLists.d.ts +8 -8
  626. three/src/renderers/webgl/WebGLShadowMap.d.ts +7 -7
  627. three/src/renderers/webgl/WebGLState.d.ts +8 -8
  628. three/src/renderers/webgl/WebGLTextures.d.ts +6 -6
  629. three/src/renderers/webgl/WebGLUniforms.d.ts +2 -2
  630. three/src/renderers/webgl/WebGLUniformsGroups.d.ts +5 -5
  631. three/src/renderers/webgl/WebGLUtils.d.ts +1 -1
  632. three/src/renderers/webxr/WebXRController.d.ts +4 -4
  633. three/src/renderers/webxr/WebXRDepthSensing.d.ts +27 -0
  634. three/src/renderers/webxr/WebXRManager.d.ts +8 -7
  635. three/src/scenes/Fog.d.ts +1 -1
  636. three/src/scenes/FogExp2.d.ts +2 -2
  637. three/src/scenes/Scene.d.ts +7 -7
  638. three/src/textures/CanvasTexture.d.ts +5 -5
  639. three/src/textures/CompressedArrayTexture.d.ts +2 -2
  640. three/src/textures/CompressedCubeTexture.d.ts +2 -2
  641. three/src/textures/CompressedTexture.d.ts +6 -6
  642. three/src/textures/CubeTexture.d.ts +7 -7
  643. three/src/textures/Data3DTexture.d.ts +3 -3
  644. three/src/textures/DataArrayTexture.d.ts +4 -4
  645. three/src/textures/DataTexture.d.ts +7 -7
  646. three/src/textures/DepthTexture.d.ts +5 -5
  647. three/src/textures/FramebufferTexture.d.ts +2 -2
  648. three/src/textures/Source.d.ts +11 -1
  649. three/src/textures/Texture.d.ts +11 -11
  650. three/src/textures/VideoTexture.d.ts +5 -5
  651. three/build/three.d.ts +0 -2
  652. three/build/three.min.d.ts +0 -2
  653. three/examples/jsm/objects/GroundProjectedSkybox.d.ts +0 -13
@@ -1,18 +1,29 @@
1
- import Object3DNode, { Object3DNodeScope } from './Object3DNode.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import Object3DNode, { Object3DNodeScope } from "./Object3DNode.js";
3
3
 
4
- export type CameraNodeScope = Object3DNodeScope | typeof CameraNode.PROJECTION_MATRIX;
4
+ export type CameraNodeScope =
5
+ | Object3DNodeScope
6
+ | typeof CameraNode.PROJECTION_MATRIX
7
+ | typeof CameraNode.PROJECTION_MATRIX_INVERSE
8
+ | typeof CameraNode.NEAR
9
+ | typeof CameraNode.FAR
10
+ | typeof CameraNode.LOG_DEPTH;
5
11
 
6
12
  export default class CameraNode extends Object3DNode {
7
- static PROJECTION_MATRIX: 'projectionMatrix';
13
+ constructor(scope?: string);
8
14
 
9
- // @ts-expect-error
10
- scope: CameraNodeScope;
11
-
12
- constructor(scope?: CameraNodeScope);
15
+ static PROJECTION_MATRIX: "projectionMatrix";
16
+ static PROJECTION_MATRIX_INVERSE: "projectionMatrixInverse";
17
+ static NEAR: "near";
18
+ static FAR: "far";
19
+ static LOG_DEPTH: "logDepth";
13
20
  }
14
21
 
15
22
  export const cameraProjectionMatrix: ShaderNodeObject<CameraNode>;
23
+ export const cameraProjectionMatrixInverse: ShaderNodeObject<CameraNode>;
24
+ export const cameraNear: ShaderNodeObject<CameraNode>;
25
+ export const cameraFar: ShaderNodeObject<CameraNode>;
26
+ export const cameraLogDepth: ShaderNodeObject<CameraNode>;
16
27
  export const cameraViewMatrix: ShaderNodeObject<CameraNode>;
17
28
  export const cameraNormalMatrix: ShaderNodeObject<CameraNode>;
18
29
  export const cameraWorldMatrix: ShaderNodeObject<CameraNode>;
@@ -1,12 +1,12 @@
1
- import { CubeTexture } from '../../../../src/Three.js';
2
- import TextureNode from './TextureNode.js';
3
- import Node from '../core/Node.js';
4
- import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { CubeTexture } from "../../../../src/Three.js";
2
+ import Node from "../core/Node.js";
3
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
+ import TextureNode from "./TextureNode.js";
5
5
 
6
6
  export default class CubeTextureNode extends TextureNode {
7
7
  isCubeTextureNode: boolean;
8
- uvNode: Node | null;
9
- levelNode: Node | null;
8
+ uvNode: ShaderNodeObject<Node> | null;
9
+ levelNode: ShaderNodeObject<Node> | null;
10
10
 
11
11
  constructor(value: CubeTexture, uvNode?: Node | null, levelNode?: Node | null);
12
12
 
@@ -18,3 +18,9 @@ export const cubeTexture: (
18
18
  uvNode?: NodeRepresentation,
19
19
  levelNode?: NodeRepresentation,
20
20
  ) => ShaderNodeObject<CubeTextureNode>;
21
+
22
+ declare module "../shadernode/ShaderNode.js" {
23
+ interface NodeElements {
24
+ cubeTexture: typeof cubeTexture;
25
+ }
26
+ }
@@ -1,6 +1,6 @@
1
- import { InstancedMesh } from '../../../../src/Three.js';
2
- import Node from '../core/Node.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { InstancedMesh } from "../../../../src/Three.js";
2
+ import Node from "../core/Node.js";
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export default class InstanceNode extends Node {
6
6
  instanceMesh: InstancedMesh;
@@ -1,5 +1,5 @@
1
- import Node from '../core/Node.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
3
 
4
4
  export type MaterialNodeScope =
5
5
  | typeof MaterialNode.ALPHA_TEST
@@ -11,13 +11,13 @@ export type MaterialNodeScope =
11
11
  | typeof MaterialNode.ROTATION;
12
12
 
13
13
  export default class MaterialNode extends Node {
14
- static ALPHA_TEST: 'alphaTest';
15
- static COLOR: 'color';
16
- static OPACITY: 'opacity';
17
- static ROUGHNESS: 'roughness';
18
- static METALNESS: 'metalness';
19
- static EMISSIVE: 'emissive';
20
- static ROTATION: 'rotation';
14
+ static ALPHA_TEST: "alphaTest";
15
+ static COLOR: "color";
16
+ static OPACITY: "opacity";
17
+ static ROUGHNESS: "roughness";
18
+ static METALNESS: "metalness";
19
+ static EMISSIVE: "emissive";
20
+ static ROTATION: "rotation";
21
21
 
22
22
  scope: MaterialNodeScope;
23
23
  constructor(scope?: MaterialNodeScope);
@@ -1,6 +1,6 @@
1
- import { Material } from '../../../../src/Three.js';
2
- import ReferenceNode from './ReferenceNode.js';
3
- import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { Material } from "../../../../src/Three.js";
2
+ import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import ReferenceNode from "./ReferenceNode.js";
4
4
 
5
5
  export default class MaterialReferenceNode extends ReferenceNode<Material | null> {
6
6
  constructor(property: string, inputType: string, material?: Material | null);
@@ -9,5 +9,5 @@ export default class MaterialReferenceNode extends ReferenceNode<Material | null
9
9
  export const materialReference: (
10
10
  name: string,
11
11
  nodeOrType: NodeOrType,
12
- material: Material,
12
+ material?: Material | null,
13
13
  ) => ShaderNodeObject<MaterialReferenceNode>;
@@ -1,5 +1,5 @@
1
- import Object3DNode, { Object3DNodeScope } from './Object3DNode.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import Object3DNode, { Object3DNodeScope } from "./Object3DNode.js";
3
3
 
4
4
  /**
5
5
  * Similar to {@link Object3DNode} but the object comes from {@link NodeFrame}
@@ -8,8 +8,10 @@ export default class ModelNode extends Object3DNode {
8
8
  constructor(scope?: Object3DNodeScope);
9
9
  }
10
10
 
11
+ export const modelDirection: ShaderNodeObject<ModelNode>;
11
12
  export const modelViewMatrix: ShaderNodeObject<ModelNode>;
12
13
  export const modelNormalMatrix: ShaderNodeObject<ModelNode>;
13
14
  export const modelWorldMatrix: ShaderNodeObject<ModelNode>;
14
15
  export const modelPosition: ShaderNodeObject<ModelNode>;
16
+ export const modelScale: ShaderNodeObject<ModelNode>;
15
17
  export const modelViewPosition: ShaderNodeObject<ModelNode>;
@@ -1,6 +1,6 @@
1
- import Node from '../core/Node.js';
2
- import PositionNode from './PositionNode.js';
3
- import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import PositionNode from "./PositionNode.js";
4
4
 
5
5
  export default class ModelViewProjectionNode extends Node {
6
6
  constructor(positionNode?: PositionNode);
@@ -1,13 +1,13 @@
1
- import Node from '../core/Node.js';
2
- import VarNode from '../core/VarNode.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import VarNode from "../core/VarNode.js";
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export type NormalNodeScope = typeof NormalNode.GEOMETRY | typeof NormalNode.LOCAL | typeof NormalNode.VIEW;
6
6
 
7
7
  export default class NormalNode extends Node {
8
- static GEOMETRY: 'geometry';
9
- static LOCAL: 'local';
10
- static VIEW: 'view';
8
+ static GEOMETRY: "geometry";
9
+ static LOCAL: "local";
10
+ static VIEW: "view";
11
11
  scope: NormalNodeScope;
12
12
 
13
13
  constructor(scope?: NormalNodeScope);
@@ -1,22 +1,26 @@
1
- import { Object3D } from '../../../../src/Three.js';
2
- import Node from '../core/Node.js';
1
+ import { Object3D } from "../../../../src/Three.js";
2
+ import Node from "../core/Node.js";
3
3
 
4
4
  export type Object3DNodeScope =
5
5
  | typeof Object3DNode.VIEW_MATRIX
6
6
  | typeof Object3DNode.NORMAL_MATRIX
7
7
  | typeof Object3DNode.WORLD_MATRIX
8
8
  | typeof Object3DNode.POSITION
9
- | typeof Object3DNode.VIEW_POSITION;
9
+ | typeof Object3DNode.SCALE
10
+ | typeof Object3DNode.VIEW_POSITION
11
+ | typeof Object3DNode.DIRECTION;
10
12
 
11
13
  export default class Object3DNode extends Node {
12
- static VIEW_MATRIX: 'viewMatrix';
13
- static NORMAL_MATRIX: 'normalMatrix';
14
- static WORLD_MATRIX: 'worldMatrix';
15
- static POSITION: 'position';
16
- static VIEW_POSITION: 'viewPosition';
17
-
18
- scope: Object3DNodeScope;
14
+ scope: string;
19
15
  object3d: Object3D | null;
20
16
 
21
- constructor(scope?: Object3DNodeScope, object3d?: Object3D | null);
17
+ constructor(scope?: string, object3d?: Object3D | null);
18
+
19
+ static VIEW_MATRIX: "viewMatrix";
20
+ static NORMAL_MATRIX: "normalMatrix";
21
+ static WORLD_MATRIX: "worldMatrix";
22
+ static POSITION: "position";
23
+ static SCALE: "scale";
24
+ static VIEW_POSITION: "viewPosition";
25
+ static DIRECTION: "direction";
22
26
  }
@@ -1,5 +1,5 @@
1
- import Node from '../core/Node.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
3
 
4
4
  export default class PointUVNode extends Node {
5
5
  isPointUVNode: true;
@@ -1,5 +1,5 @@
1
- import Node from '../core/Node.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
3
 
4
4
  export type PositionNodeScope =
5
5
  | typeof PositionNode.GEOMETRY
@@ -10,12 +10,12 @@ export type PositionNodeScope =
10
10
  | typeof PositionNode.VIEW_DIRECTION;
11
11
 
12
12
  export default class PositionNode extends Node {
13
- static GEOMETRY: 'geometry';
14
- static LOCAL: 'local';
15
- static WORLD: 'world';
16
- static WORLD_DIRECTION: 'worldDirection';
17
- static VIEW: 'view';
18
- static VIEW_DIRECTION: 'viewDirection';
13
+ static GEOMETRY: "geometry";
14
+ static LOCAL: "local";
15
+ static WORLD: "world";
16
+ static WORLD_DIRECTION: "worldDirection";
17
+ static VIEW: "view";
18
+ static VIEW_DIRECTION: "viewDirection";
19
19
  scope: PositionNodeScope;
20
20
 
21
21
  constructor(scope?: PositionNodeScope);
@@ -1,6 +1,6 @@
1
- import Node from '../core/Node.js';
2
- import { NodeTypeOption } from '../core/constants.js';
3
- import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeTypeOption } from "../core/constants.js";
2
+ import Node from "../core/Node.js";
3
+ import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export default class ReferenceNode<T> extends Node {
6
6
  object: T;
@@ -1,10 +1,10 @@
1
- import Node from '../core/Node.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
3
 
4
4
  export default class ReflectVectorNode extends Node {
5
5
  constructor();
6
6
 
7
- getHash(): 'reflectVector';
7
+ getHash(): "reflectVector";
8
8
  setup(): Node;
9
9
  }
10
10
 
@@ -1,6 +1,6 @@
1
- import { SkinnedMesh } from '../../../../src/Three.js';
2
- import Node from '../core/Node.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { SkinnedMesh } from "../../../../src/Three.js";
2
+ import Node from "../core/Node.js";
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export default class SkinningNode extends Node {
6
6
  skinIndexNode: Node;
@@ -1,6 +1,6 @@
1
- import BufferNode from './BufferNode.js';
2
- import { NodeTypeOption } from '../core/constants.js';
3
- import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeTypeOption } from "../core/constants.js";
2
+ import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import BufferNode from "./BufferNode.js";
4
4
 
5
5
  export default class StorageBufferNode extends BufferNode {
6
6
  constructor(value: ArrayLike<number>, bufferType: NodeTypeOption, bufferCount?: number);
@@ -1,6 +1,6 @@
1
- import Node from '../core/Node.js';
2
- import MathNode from '../math/MathNode.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import MathNode from "../math/MathNode.js";
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export type TangentNodeScope =
6
6
  | typeof TangentNode.LOCAL
@@ -9,10 +9,10 @@ export type TangentNodeScope =
9
9
  | typeof TangentNode.GEOMETRY;
10
10
 
11
11
  export default class TangentNode extends Node {
12
- static GEOMETRY: 'geometry';
13
- static LOCAL: 'local';
14
- static VIEW: 'view';
15
- static WORLD: 'world';
12
+ static GEOMETRY: "geometry";
13
+ static LOCAL: "local";
14
+ static VIEW: "view";
15
+ static WORLD: "world";
16
16
 
17
17
  scope: TangentNodeScope;
18
18
 
@@ -0,0 +1,18 @@
1
+ import Node from "../core/Node.js";
2
+ import TempNode from "../core/TempNode.js";
3
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
+
5
+ export default class TextureBicubicNode extends TempNode {
6
+ textureNode: Node;
7
+ blurNode: Node;
8
+
9
+ constructor(textureNode: Node, blurNode?: Node);
10
+ }
11
+
12
+ export const textureBicubic: (textureNode: Node, blurNode?: NodeRepresentation) => ShaderNodeObject<TextureBicubicNode>;
13
+
14
+ declare module "../shadernode/ShaderNode.js" {
15
+ interface NodeElements {
16
+ bicubic: typeof textureBicubic;
17
+ }
18
+ }
@@ -1,17 +1,19 @@
1
- import { Texture } from '../../../../src/Three.js';
2
- import UniformNode from '../core/UniformNode.js';
3
- import Node from '../core/Node.js';
4
- import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { Texture } from "../../../../src/Three.js";
2
+ import Node from "../core/Node.js";
3
+ import UniformNode from "../core/UniformNode.js";
4
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
5
5
 
6
6
  export default class TextureNode extends UniformNode<Texture> {
7
7
  isTextureNode: true;
8
8
 
9
- uvNode: Node | null;
10
- levelNode: Node | null;
9
+ uvNode: ShaderNodeObject<Node> | null;
10
+ levelNode: ShaderNodeObject<Node> | null;
11
11
 
12
- constructor(value: Texture, uvNode?: Node, levelNode?: Node | null);
12
+ constructor(value: Texture, uvNode?: ShaderNodeObject<Node>, levelNode?: ShaderNodeObject<Node> | null);
13
13
 
14
14
  getDefaultUV(): Node;
15
+
16
+ clone(): this;
15
17
  }
16
18
 
17
19
  export const texture: (
@@ -20,3 +22,9 @@ export const texture: (
20
22
  levelNode?: NodeRepresentation,
21
23
  ) => ShaderNodeObject<TextureNode>;
22
24
  export const sampler: (aTexture: Texture | TextureNode) => ShaderNodeObject<Node>;
25
+
26
+ declare module "../shadernode/ShaderNode.js" {
27
+ interface NodeElements {
28
+ texture: typeof texture;
29
+ }
30
+ }
@@ -1,5 +1,5 @@
1
- import AttributeNode from '../core/AttributeNode.js';
2
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import AttributeNode from "../core/AttributeNode.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
3
 
4
4
  export default class UVNode extends AttributeNode {
5
5
  isUVNode: true;
@@ -1,6 +1,6 @@
1
- import { NodeTypeOption, NodeUserData } from '../core/constants.js';
2
- import ReferenceNode from './ReferenceNode.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeTypeOption, NodeUserData } from "../core/constants.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import ReferenceNode from "./ReferenceNode.js";
4
4
 
5
5
  export default class UserDataNode extends ReferenceNode<NodeUserData> {
6
6
  userData: NodeUserData | null;
@@ -0,0 +1,12 @@
1
+ import AttributeNode from "../core/AttributeNode.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+
4
+ export default class VertexColorNode extends AttributeNode {
5
+ readonly isVertexColorNode: true;
6
+
7
+ index: number;
8
+
9
+ constructor(index?: number);
10
+ }
11
+
12
+ export const vertexColor: (index?: number) => ShaderNodeObject<VertexColorNode>;
@@ -1,7 +1,7 @@
1
- import Node from '../core/Node.js';
2
- import NodeBuilder from '../core/NodeBuilder.js';
3
- import { NodeTypeOption } from '../core/constants.js';
4
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeTypeOption } from "../core/constants.js";
2
+ import Node from "../core/Node.js";
3
+ import NodeBuilder from "../core/NodeBuilder.js";
4
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
5
5
 
6
6
  export interface CodeNodeInclude {
7
7
  build(builder: NodeBuilder): void;
@@ -1,6 +1,6 @@
1
- import { NodeTypeOption } from '../core/constants.js';
2
- import TempNode from '../core/TempNode.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeTypeOption } from "../core/constants.js";
2
+ import TempNode from "../core/TempNode.js";
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export default class ExpressionNode extends TempNode {
6
6
  snipped: string; /* sic */
@@ -1,7 +1,7 @@
1
- import FunctionNode, { FunctionNodeArguments } from './FunctionNode.js';
2
- import TempNode from '../core/TempNode.js';
3
- import Node from '../core/Node.js';
4
- import { ProxiedObject, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import TempNode from "../core/TempNode.js";
3
+ import { ProxiedObject, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
+ import FunctionNode, { FunctionNodeArguments } from "./FunctionNode.js";
5
5
 
6
6
  export default class FunctionCallNode<P extends Node[] | { [name: string]: Node }> extends TempNode {
7
7
  functionNode: FunctionNode<P>;
@@ -17,3 +17,9 @@ export const call: <P extends FunctionNodeArguments>(
17
17
  functionNode?: FunctionNode<P>,
18
18
  parameters?: ProxiedObject<P>,
19
19
  ) => ShaderNodeObject<FunctionCallNode<P>>;
20
+
21
+ declare module "../shadernode/ShaderNode.js" {
22
+ interface NodeElements {
23
+ call: typeof call;
24
+ }
25
+ }
@@ -1,10 +1,10 @@
1
- import CodeNode, { CodeNodeInclude } from './CodeNode.js';
2
- import FunctionCallNode from './FunctionCallNode.js';
3
- import NodeBuilder from '../core/NodeBuilder.js';
4
- import NodeFunction from '../core/NodeFunction.js';
5
- import NodeFunctionInput from '../core/NodeFunctionInput.js';
6
- import Node from '../core/Node.js';
7
- import { ProxiedObject, ProxiedTuple, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import Node from "../core/Node.js";
2
+ import NodeBuilder from "../core/NodeBuilder.js";
3
+ import NodeFunction from "../core/NodeFunction.js";
4
+ import NodeFunctionInput from "../core/NodeFunctionInput.js";
5
+ import { ProxiedObject, ProxiedTuple, ShaderNodeObject } from "../shadernode/ShaderNode.js";
6
+ import CodeNode, { CodeNodeInclude } from "./CodeNode.js";
7
+ import FunctionCallNode from "./FunctionCallNode.js";
8
8
 
9
9
  export type FunctionNodeArguments = Node[] | { [name: string]: Node };
10
10
 
@@ -17,8 +17,7 @@ export default class FunctionNode<P extends Node[] | { [name: string]: Node }> e
17
17
  call(parameters: P): FunctionCallNode<P>;
18
18
  }
19
19
 
20
- export type Fn<P extends FunctionNodeArguments> = P extends readonly [...unknown[]]
21
- ? ProxiedTuple<P>
20
+ export type Fn<P extends FunctionNodeArguments> = P extends readonly [...unknown[]] ? ProxiedTuple<P>
22
21
  : readonly [ProxiedObject<P>];
23
22
 
24
23
  export const func: <P extends FunctionNodeArguments>(
@@ -1,5 +1,5 @@
1
- import UniformNode from './UniformNode.js';
2
- import Node from './Node.js';
1
+ import Node from "./Node.js";
2
+ import UniformNode from "./UniformNode.js";
3
3
 
4
4
  export default class ArrayUniformNode extends UniformNode<undefined> {
5
5
  isArrayUniformNode: true;
@@ -0,0 +1,17 @@
1
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import Node from "./Node.js";
3
+ import TempNode from "./TempNode.js";
4
+
5
+ export default class AssignNode extends TempNode {
6
+ constructor(targetNode: Node, sourceNode: Node);
7
+
8
+ hasDependencies(): false;
9
+ }
10
+
11
+ export const assign: (targetNode: NodeRepresentation, sourceNode: NodeRepresentation) => ShaderNodeObject<AssignNode>;
12
+
13
+ declare module "../shadernode/ShaderNode.js" {
14
+ interface NodeElements {
15
+ assign: typeof assign;
16
+ }
17
+ }
@@ -1,7 +1,7 @@
1
- import { NodeTypeOption } from './constants.js';
2
- import Node from './Node.js';
3
- import NodeBuilder from './NodeBuilder.js';
4
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import { NodeTypeOption } from "./constants.js";
3
+ import Node from "./Node.js";
4
+ import NodeBuilder from "./NodeBuilder.js";
5
5
 
6
6
  export default class AttributeNode extends Node {
7
7
  constructor(attributeName: string, nodeType?: NodeTypeOption | null);
@@ -1,5 +1,5 @@
1
- import Node from './Node.js';
2
- import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import Node from "./Node.js";
3
3
 
4
4
  export default class BypassNode extends Node {
5
5
  isBypassNode: true;
@@ -10,3 +10,9 @@ export default class BypassNode extends Node {
10
10
  }
11
11
 
12
12
  export const bypass: (returnNode: NodeRepresentation, callNode: NodeRepresentation) => ShaderNodeObject<BypassNode>;
13
+
14
+ declare module "../shadernode/ShaderNode.js" {
15
+ interface NodeElements {
16
+ bypass: typeof bypass;
17
+ }
18
+ }
@@ -1,6 +1,6 @@
1
- import Node from './Node.js';
2
- import NodeCache from './NodeCache.js';
3
- import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import Node from "./Node.js";
3
+ import NodeCache from "./NodeCache.js";
4
4
 
5
5
  export default class CacheNode extends Node {
6
6
  isCacheNode: true;
@@ -11,3 +11,11 @@ export default class CacheNode extends Node {
11
11
  }
12
12
 
13
13
  export const cache: (node: Node, cache?: NodeCache) => ShaderNodeObject<CacheNode>;
14
+ export const globalCache: (node: Node) => ShaderNodeObject<CacheNode>;
15
+
16
+ declare module "../shadernode/ShaderNode.js" {
17
+ interface NodeElements {
18
+ cache: typeof cache;
19
+ globalCache: typeof globalCache;
20
+ }
21
+ }
@@ -1,6 +1,6 @@
1
- import { NodeTypeOption } from './constants.js';
2
- import InputNode from './InputNode.js';
3
- import NodeBuilder from './NodeBuilder.js';
1
+ import { NodeTypeOption } from "./constants.js";
2
+ import InputNode from "./InputNode.js";
3
+ import NodeBuilder from "./NodeBuilder.js";
4
4
 
5
5
  export default class ConstNode<Value> extends InputNode<Value> {
6
6
  isConstNode: true;
@@ -1,6 +1,6 @@
1
- import Node from './Node.js';
2
- import { NodeBuilderContext } from './NodeBuilder.js';
3
- import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js';
1
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import Node from "./Node.js";
3
+ import { NodeBuilderContext } from "./NodeBuilder.js";
4
4
 
5
5
  export default class ContextNode extends Node {
6
6
  isContextNode: true;
@@ -11,3 +11,11 @@ export default class ContextNode extends Node {
11
11
  }
12
12
 
13
13
  export const context: (node: NodeRepresentation, context: NodeBuilderContext) => ShaderNodeObject<ContextNode>;
14
+ export const label: (node: NodeRepresentation, label: string) => ShaderNodeObject<ContextNode>;
15
+
16
+ declare module "../shadernode/ShaderNode.js" {
17
+ interface NodeElements {
18
+ context: typeof context;
19
+ label: typeof label;
20
+ }
21
+ }