@types/three 0.179.0 → 0.181.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 (316) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/Addons.d.ts +1 -1
  3. three/examples/jsm/controls/DragControls.d.ts +0 -30
  4. three/examples/jsm/controls/PointerLockControls.d.ts +0 -5
  5. three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
  6. three/examples/jsm/exporters/EXRExporter.d.ts +2 -2
  7. three/examples/jsm/exporters/KTX2Exporter.d.ts +2 -2
  8. three/examples/jsm/exporters/STLExporter.d.ts +2 -2
  9. three/examples/jsm/exporters/USDZExporter.d.ts +2 -2
  10. three/examples/jsm/geometries/TextGeometry.d.ts +2 -0
  11. three/examples/jsm/gpgpu/BitonicSort.d.ts +21 -0
  12. three/examples/jsm/inspector/Inspector.d.ts +10 -0
  13. three/examples/jsm/inspector/RendererInspector.d.ts +4 -0
  14. three/examples/jsm/inspector/tabs/Parameters.d.ts +95 -0
  15. three/examples/jsm/inspector/ui/Tab.d.ts +3 -0
  16. three/examples/jsm/inspector/ui/Values.d.ts +80 -0
  17. three/examples/jsm/interactive/SelectionBox.d.ts +9 -9
  18. three/examples/jsm/lighting/TiledLighting.d.ts +1 -2
  19. three/examples/jsm/loaders/FontLoader.d.ts +1 -1
  20. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +2 -2
  21. three/examples/jsm/loaders/HDRLoader.d.ts +22 -0
  22. three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
  23. three/examples/jsm/loaders/LDrawLoader.d.ts +5 -1
  24. three/examples/jsm/loaders/RGBELoader.d.ts +9 -15
  25. three/examples/jsm/materials/WoodNodeMaterial.d.ts +75 -0
  26. three/examples/jsm/math/ColorSpaces.d.ts +4 -0
  27. three/examples/jsm/objects/SkyMesh.d.ts +6 -7
  28. three/examples/jsm/objects/WaterMesh.d.ts +2 -2
  29. three/examples/jsm/postprocessing/SSRPass.d.ts +6 -29
  30. three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
  31. three/examples/jsm/tsl/display/AfterImageNode.d.ts +4 -5
  32. three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -2
  33. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +11 -3
  34. three/examples/jsm/tsl/display/BleachBypass.d.ts +1 -2
  35. three/examples/jsm/tsl/display/BloomNode.d.ts +2 -3
  36. three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +1 -2
  37. three/examples/jsm/tsl/display/DenoiseNode.d.ts +1 -2
  38. three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +15 -10
  39. three/examples/jsm/tsl/display/DotScreenNode.d.ts +1 -2
  40. three/examples/jsm/tsl/display/FXAANode.d.ts +1 -2
  41. three/examples/jsm/tsl/display/FilmNode.d.ts +1 -2
  42. three/examples/jsm/tsl/display/GTAONode.d.ts +11 -10
  43. three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +28 -9
  44. three/examples/jsm/tsl/display/LensflareNode.d.ts +6 -7
  45. three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -3
  46. three/examples/jsm/tsl/display/MotionBlur.d.ts +1 -2
  47. three/examples/jsm/tsl/display/OutlineNode.d.ts +6 -7
  48. three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -2
  49. three/examples/jsm/tsl/display/PixelationPassNode.d.ts +1 -2
  50. three/examples/jsm/tsl/display/RGBShiftNode.d.ts +1 -2
  51. three/examples/jsm/tsl/display/SMAANode.d.ts +1 -2
  52. three/examples/jsm/tsl/display/SSAAPassNode.d.ts +1 -2
  53. three/examples/jsm/tsl/display/SSGINode.d.ts +30 -0
  54. three/examples/jsm/tsl/display/SSRNode.d.ts +18 -14
  55. three/examples/jsm/tsl/display/SSSNode.d.ts +18 -0
  56. three/examples/jsm/tsl/display/Sepia.d.ts +1 -2
  57. three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +1 -2
  58. three/examples/jsm/tsl/display/StereoPassNode.d.ts +1 -2
  59. three/examples/jsm/tsl/display/TRAANode.d.ts +1 -2
  60. three/examples/jsm/tsl/display/TransitionNode.d.ts +1 -2
  61. three/examples/jsm/tsl/display/boxBlur.d.ts +10 -0
  62. three/examples/jsm/tsl/display/hashBlur.d.ts +2 -3
  63. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +3 -4
  64. three/examples/jsm/tsl/math/Bayer.d.ts +1 -2
  65. three/examples/jsm/tsl/utils/Raymarching.d.ts +2 -3
  66. three/package.json +2 -2
  67. three/src/Three.Core.d.ts +2 -1
  68. three/src/Three.TSL.d.ts +36 -5
  69. three/src/Three.WebGPU.Nodes.d.ts +2 -0
  70. three/src/Three.WebGPU.d.ts +2 -0
  71. three/src/animation/AnimationClip.d.ts +5 -0
  72. three/src/animation/AnimationMixer.d.ts +3 -3
  73. three/src/constants.d.ts +3 -1
  74. three/src/lights/DirectionalLight.d.ts +0 -1
  75. three/src/loaders/ObjectLoader.d.ts +3 -3
  76. three/src/loaders/TextureLoader.d.ts +3 -3
  77. three/src/materials/LineBasicMaterial.d.ts +1 -0
  78. three/src/materials/LineDashedMaterial.d.ts +1 -0
  79. three/src/materials/Material.d.ts +2 -2
  80. three/src/materials/MeshBasicMaterial.d.ts +1 -0
  81. three/src/materials/MeshDepthMaterial.d.ts +1 -0
  82. three/src/materials/MeshDistanceMaterial.d.ts +2 -1
  83. three/src/materials/MeshLambertMaterial.d.ts +2 -1
  84. three/src/materials/MeshMatcapMaterial.d.ts +15 -0
  85. three/src/materials/MeshNormalMaterial.d.ts +1 -0
  86. three/src/materials/MeshPhongMaterial.d.ts +2 -1
  87. three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
  88. three/src/materials/MeshStandardMaterial.d.ts +7 -7
  89. three/src/materials/MeshToonMaterial.d.ts +1 -0
  90. three/src/materials/PointsMaterial.d.ts +2 -1
  91. three/src/materials/ShaderMaterial.d.ts +9 -8
  92. three/src/materials/ShadowMaterial.d.ts +1 -0
  93. three/src/materials/SpriteMaterial.d.ts +1 -0
  94. three/src/materials/nodes/Line2NodeMaterial.d.ts +1 -0
  95. three/src/materials/nodes/LineBasicNodeMaterial.d.ts +1 -0
  96. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +1 -0
  97. three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +1 -0
  98. three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +1 -0
  99. three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +1 -0
  100. three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +1 -0
  101. three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +1 -0
  102. three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +1 -0
  103. three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +2 -1
  104. three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +1 -0
  105. three/src/materials/nodes/MeshToonNodeMaterial.d.ts +1 -0
  106. three/src/materials/nodes/NodeMaterial.d.ts +3 -3
  107. three/src/materials/nodes/PointsNodeMaterial.d.ts +17 -0
  108. three/src/materials/nodes/ShadowNodeMaterial.d.ts +1 -0
  109. three/src/materials/nodes/SpriteNodeMaterial.d.ts +1 -0
  110. three/src/materials/nodes/VolumeNodeMaterial.d.ts +2 -2
  111. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +1 -1
  112. three/src/math/ColorManagement.d.ts +1 -1
  113. three/src/math/Vector3.d.ts +2 -2
  114. three/src/nodes/Nodes.d.ts +4 -1
  115. three/src/nodes/TSL.d.ts +4 -1
  116. three/src/nodes/accessors/AccessorsUtils.d.ts +4 -5
  117. three/src/nodes/accessors/Arrays.d.ts +2 -3
  118. three/src/nodes/accessors/BatchNode.d.ts +1 -2
  119. three/src/nodes/accessors/Bitangent.d.ts +4 -5
  120. three/src/nodes/accessors/BufferAttributeNode.d.ts +8 -9
  121. three/src/nodes/accessors/BufferNode.d.ts +2 -2
  122. three/src/nodes/accessors/BuiltinNode.d.ts +1 -2
  123. three/src/nodes/accessors/Camera.d.ts +11 -10
  124. three/src/nodes/accessors/ClippingNode.d.ts +3 -6
  125. three/src/nodes/accessors/CubeTextureNode.d.ts +8 -9
  126. three/src/nodes/accessors/InstanceNode.d.ts +1 -2
  127. three/src/nodes/accessors/InstancedMeshNode.d.ts +1 -2
  128. three/src/nodes/accessors/Lights.d.ts +6 -7
  129. three/src/nodes/accessors/MaterialNode.d.ts +38 -39
  130. three/src/nodes/accessors/MaterialProperties.d.ts +3 -4
  131. three/src/nodes/accessors/MaterialReferenceNode.d.ts +2 -2
  132. three/src/nodes/accessors/ModelNode.d.ts +12 -13
  133. three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -2
  134. three/src/nodes/accessors/MorphNode.d.ts +1 -2
  135. three/src/nodes/accessors/Normal.d.ts +13 -14
  136. three/src/nodes/accessors/Object3DNode.d.ts +6 -7
  137. three/src/nodes/accessors/PointUVNode.d.ts +1 -2
  138. three/src/nodes/accessors/Position.d.ts +7 -8
  139. three/src/nodes/accessors/ReferenceBaseNode.d.ts +2 -3
  140. three/src/nodes/accessors/ReferenceNode.d.ts +2 -3
  141. three/src/nodes/accessors/ReflectVector.d.ts +4 -5
  142. three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -2
  143. three/src/nodes/accessors/SceneNode.d.ts +3 -4
  144. three/src/nodes/accessors/SkinningNode.d.ts +5 -6
  145. three/src/nodes/accessors/StorageBufferNode.d.ts +5 -5
  146. three/src/nodes/accessors/StorageTextureNode.d.ts +7 -4
  147. three/src/nodes/accessors/Tangent.d.ts +4 -6
  148. three/src/nodes/accessors/TangentUtils.d.ts +2 -3
  149. three/src/nodes/accessors/Texture3DNode.d.ts +3 -4
  150. three/src/nodes/accessors/TextureBicubic.d.ts +2 -3
  151. three/src/nodes/accessors/TextureNode.d.ts +31 -24
  152. three/src/nodes/accessors/TextureSizeNode.d.ts +1 -2
  153. three/src/nodes/accessors/UV.d.ts +1 -2
  154. three/src/nodes/accessors/UniformArrayNode.d.ts +2 -3
  155. three/src/nodes/accessors/UserDataNode.d.ts +1 -2
  156. three/src/nodes/accessors/VelocityNode.d.ts +1 -2
  157. three/src/nodes/accessors/VertexColorNode.d.ts +1 -2
  158. three/src/nodes/code/CodeNode.d.ts +4 -5
  159. three/src/nodes/code/ExpressionNode.d.ts +1 -2
  160. three/src/nodes/code/FunctionCallNode.d.ts +6 -5
  161. three/src/nodes/code/FunctionNode.d.ts +4 -6
  162. three/src/nodes/code/ScriptableNode.d.ts +1 -2
  163. three/src/nodes/code/ScriptableValueNode.d.ts +1 -2
  164. three/src/nodes/core/ArrayNode.d.ts +6 -6
  165. three/src/nodes/core/AssignNode.d.ts +1 -8
  166. three/src/nodes/core/AttributeNode.d.ts +1 -2
  167. three/src/nodes/core/BypassNode.d.ts +5 -5
  168. three/src/nodes/core/ContextNode.d.ts +25 -9
  169. three/src/nodes/core/IndexNode.d.ts +10 -7
  170. three/src/nodes/core/InspectorNode.d.ts +16 -0
  171. three/src/nodes/core/IsolateNode.d.ts +36 -0
  172. three/src/nodes/core/MRTNode.d.ts +3 -4
  173. three/src/nodes/core/Node.d.ts +22 -13
  174. three/src/nodes/core/NodeUtils.d.ts +0 -10
  175. three/src/nodes/core/OutputStructNode.d.ts +1 -2
  176. three/src/nodes/core/ParameterNode.d.ts +1 -2
  177. three/src/nodes/core/PropertyNode.d.ts +30 -31
  178. three/src/nodes/core/StackNode.d.ts +1 -4
  179. three/src/nodes/core/StructNode.d.ts +3 -4
  180. three/src/nodes/core/SubBuildNode.d.ts +1 -2
  181. three/src/nodes/core/UniformNode.d.ts +5 -8
  182. three/src/nodes/core/VarNode.d.ts +11 -21
  183. three/src/nodes/core/VaryingNode.d.ts +12 -10
  184. three/src/nodes/display/BlendModes.d.ts +11 -12
  185. three/src/nodes/display/BumpMapNode.d.ts +1 -2
  186. three/src/nodes/display/ColorAdjustment.d.ts +7 -8
  187. three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -3
  188. three/src/nodes/display/ColorSpaceNode.d.ts +19 -9
  189. three/src/nodes/display/FrontFacingNode.d.ts +3 -4
  190. three/src/nodes/display/NormalMapNode.d.ts +1 -2
  191. three/src/nodes/display/PassNode.d.ts +20 -11
  192. three/src/nodes/display/PosterizeNode.d.ts +1 -2
  193. three/src/nodes/display/RenderOutputNode.d.ts +11 -6
  194. three/src/nodes/display/ScreenNode.d.ts +12 -10
  195. three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
  196. three/src/nodes/display/ToneMappingNode.d.ts +11 -10
  197. three/src/nodes/display/ToonOutlinePassNode.d.ts +1 -2
  198. three/src/nodes/display/ViewportDepthNode.d.ts +3 -4
  199. three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
  200. three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -2
  201. three/src/nodes/display/ViewportTextureNode.d.ts +6 -3
  202. three/src/nodes/fog/Fog.d.ts +5 -6
  203. three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +4 -5
  204. three/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.d.ts +14 -0
  205. three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -2
  206. three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -2
  207. three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -2
  208. three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -2
  209. three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -2
  210. three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -2
  211. three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +1 -2
  212. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -2
  213. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -2
  214. three/src/nodes/functions/ShadowMaskModel.d.ts +1 -2
  215. three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +1 -2
  216. three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -2
  217. three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +1 -2
  218. three/src/nodes/functions/material/getRoughness.d.ts +1 -2
  219. three/src/nodes/functions/material/getShIrradianceAt.d.ts +1 -2
  220. three/src/nodes/geometry/RangeNode.d.ts +1 -2
  221. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +10 -11
  222. three/src/nodes/gpgpu/BarrierNode.d.ts +3 -4
  223. three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +5 -6
  224. three/src/nodes/gpgpu/ComputeNode.d.ts +21 -13
  225. three/src/nodes/gpgpu/SubgroupFunctionNode.d.ts +99 -0
  226. three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +1 -2
  227. three/src/nodes/lighting/AnalyticLightNode.d.ts +1 -2
  228. three/src/nodes/lighting/LightUtils.d.ts +1 -2
  229. three/src/nodes/lighting/LightingContextNode.d.ts +1 -2
  230. three/src/nodes/lighting/LightsNode.d.ts +1 -2
  231. three/src/nodes/lighting/PointLightNode.d.ts +5 -6
  232. three/src/nodes/lighting/PointShadowNode.d.ts +4 -5
  233. three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
  234. three/src/nodes/lighting/ShadowFilterNode.d.ts +4 -5
  235. three/src/nodes/lighting/ShadowNode.d.ts +1 -2
  236. three/src/nodes/lighting/SpotLightNode.d.ts +1 -2
  237. three/src/nodes/materialx/MaterialXNodes.d.ts +41 -42
  238. three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -3
  239. three/src/nodes/materialx/lib/mx_noise.d.ts +73 -74
  240. three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -2
  241. three/src/nodes/math/BitcastNode.d.ts +24 -0
  242. three/src/nodes/math/ConditionalNode.d.ts +11 -5
  243. three/src/nodes/math/Hash.d.ts +1 -2
  244. three/src/nodes/math/MathNode.d.ts +223 -80
  245. three/src/nodes/math/OperatorNode.d.ts +203 -59
  246. three/src/nodes/math/TriNoise3D.d.ts +3 -4
  247. three/src/nodes/pmrem/PMREMNode.d.ts +1 -2
  248. three/src/nodes/pmrem/PMREMUtils.d.ts +3 -4
  249. three/src/nodes/procedural/Checker.d.ts +1 -2
  250. three/src/nodes/shapes/Shapes.d.ts +1 -2
  251. three/src/nodes/tsl/TSLBase.d.ts +2 -1
  252. three/src/nodes/tsl/TSLCore.d.ts +235 -128
  253. three/src/nodes/utils/CubeMapNode.d.ts +1 -2
  254. three/src/nodes/utils/DebugNode.d.ts +9 -5
  255. three/src/nodes/utils/Discard.d.ts +6 -6
  256. three/src/nodes/utils/EquirectUV.d.ts +1 -2
  257. three/src/nodes/utils/EventNode.d.ts +8 -3
  258. three/src/nodes/utils/FunctionOverloadingNode.d.ts +1 -2
  259. three/src/nodes/utils/LoopNode.d.ts +7 -6
  260. three/src/nodes/utils/MatcapUV.d.ts +1 -2
  261. three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -2
  262. three/src/nodes/utils/Oscillators.d.ts +4 -5
  263. three/src/nodes/utils/Packing.d.ts +2 -3
  264. three/src/nodes/utils/PostProcessingUtils.d.ts +5 -4
  265. three/src/nodes/utils/RTTNode.d.ts +2 -3
  266. three/src/nodes/utils/ReflectorNode.d.ts +18 -4
  267. three/src/nodes/utils/RemapNode.d.ts +29 -7
  268. three/src/nodes/utils/RotateNode.d.ts +1 -2
  269. three/src/nodes/utils/SampleNode.d.ts +3 -3
  270. three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -2
  271. three/src/nodes/utils/SpriteUtils.d.ts +1 -2
  272. three/src/nodes/utils/StorageArrayElementNode.d.ts +1 -2
  273. three/src/nodes/utils/Timer.d.ts +3 -19
  274. three/src/nodes/utils/TriplanarTextures.d.ts +2 -3
  275. three/src/nodes/utils/UVUtils.d.ts +2 -3
  276. three/src/nodes/utils/ViewportUtils.d.ts +1 -2
  277. three/src/objects/InstancedMesh.d.ts +2 -3
  278. three/src/renderers/WebGLRenderer.d.ts +0 -25
  279. three/src/renderers/common/Animation.d.ts +4 -1
  280. three/src/renderers/common/Attributes.d.ts +1 -1
  281. three/src/renderers/common/Bindings.d.ts +12 -0
  282. three/src/renderers/common/CanvasTarget.d.ts +142 -0
  283. three/src/renderers/common/Geometries.d.ts +1 -0
  284. three/src/renderers/common/InspectorBase.d.ts +105 -0
  285. three/src/renderers/common/PostProcessing.d.ts +3 -0
  286. three/src/renderers/common/QuadMesh.d.ts +3 -0
  287. three/src/renderers/common/RenderContexts.d.ts +3 -1
  288. three/src/renderers/common/Renderer.d.ts +125 -37
  289. three/src/renderers/common/SampledTexture.d.ts +2 -0
  290. three/src/renderers/common/Sampler.d.ts +2 -0
  291. three/src/renderers/common/Textures.d.ts +21 -1
  292. three/src/renderers/common/TimestampQueryPool.d.ts +26 -4
  293. three/src/renderers/common/XRManager.d.ts +10 -0
  294. three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
  295. three/src/renderers/common/nodes/NodeLibrary.d.ts +8 -12
  296. three/src/renderers/common/nodes/Nodes.d.ts +13 -14
  297. three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +6 -1
  298. three/src/scenes/Scene.d.ts +2 -2
  299. three/src/textures/CanvasTexture.d.ts +3 -3
  300. three/src/textures/CompressedArrayTexture.d.ts +6 -9
  301. three/src/textures/CompressedCubeTexture.d.ts +3 -3
  302. three/src/textures/CompressedTexture.d.ts +10 -12
  303. three/src/textures/CubeTexture.d.ts +4 -11
  304. three/src/textures/Data3DTexture.d.ts +7 -11
  305. three/src/textures/DataArrayTexture.d.ts +10 -10
  306. three/src/textures/DataTexture.d.ts +6 -12
  307. three/src/textures/DepthTexture.d.ts +7 -8
  308. three/src/textures/ExternalTexture.d.ts +5 -3
  309. three/src/textures/FramebufferTexture.d.ts +6 -1
  310. three/src/textures/Source.d.ts +3 -3
  311. three/src/textures/Texture.d.ts +9 -9
  312. three/src/textures/VideoFrameTexture.d.ts +1 -1
  313. three/src/textures/VideoTexture.d.ts +2 -2
  314. three/src/utils.d.ts +18 -2
  315. three/examples/jsm/loaders/RGBMLoader.d.ts +0 -37
  316. three/src/nodes/core/CacheNode.d.ts +0 -21
@@ -1,6 +1,5 @@
1
1
  import Node from "../core/Node.js";
2
2
  import TempNode from "../core/TempNode.js";
3
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
3
 
5
4
  export type OperatorNodeOp =
6
5
  | "%"
@@ -39,93 +38,238 @@ export const add: (
39
38
  a: OperatorNodeParameter,
40
39
  b: OperatorNodeParameter,
41
40
  ...params: OperatorNodeParameter[]
42
- ) => ShaderNodeObject<OperatorNode>;
41
+ ) => OperatorNode;
43
42
  export const sub: (
44
43
  a: OperatorNodeParameter,
45
44
  b: OperatorNodeParameter,
46
45
  ...params: OperatorNodeParameter[]
47
- ) => ShaderNodeObject<OperatorNode>;
46
+ ) => OperatorNode;
48
47
  export const mul: (
49
48
  a: OperatorNodeParameter,
50
49
  b: OperatorNodeParameter,
51
50
  ...params: OperatorNodeParameter[]
52
- ) => ShaderNodeObject<OperatorNode>;
51
+ ) => OperatorNode;
53
52
  export const div: (
54
53
  a: OperatorNodeParameter,
55
54
  b: OperatorNodeParameter,
56
55
  ...params: OperatorNodeParameter[]
57
- ) => ShaderNodeObject<OperatorNode>;
58
- export const mod: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
59
- export const equal: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
60
- export const notEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
61
- export const lessThan: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
62
- export const greaterThan: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
63
- export const lessThanEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
64
- export const greaterThanEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
56
+ ) => OperatorNode;
57
+ export const mod: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
58
+ export const equal: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
59
+ export const notEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
60
+ export const lessThan: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
61
+ export const greaterThan: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
62
+ export const lessThanEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
63
+ export const greaterThanEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
65
64
  export const and: (
66
65
  a: OperatorNodeParameter,
67
66
  b: OperatorNodeParameter,
68
67
  ...params: OperatorNodeParameter[]
69
- ) => ShaderNodeObject<OperatorNode>;
68
+ ) => OperatorNode;
70
69
  export const or: (
71
70
  a: OperatorNodeParameter,
72
71
  b: OperatorNodeParameter,
73
72
  ...params: OperatorNodeParameter[]
74
- ) => ShaderNodeObject<OperatorNode>;
75
- export const not: (value: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
76
- export const xor: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
77
- export const bitAnd: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
78
- export const bitNot: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
79
- export const bitOr: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
80
- export const bitXor: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
81
- export const shiftLeft: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
82
- export const shiftRight: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
83
-
84
- export const incrementBefore: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
85
- export const decrementBefore: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
86
- export const increment: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
87
- export const decrement: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
88
-
89
- declare module "../tsl/TSLCore.js" {
90
- interface NodeElements {
91
- add: typeof add;
92
- sub: typeof sub;
93
- mul: typeof mul;
94
- div: typeof div;
95
- mod: typeof mod;
96
- equal: typeof equal;
97
- notEqual: typeof notEqual;
98
- lessThan: typeof lessThan;
99
- greaterThan: typeof greaterThan;
100
- lessThanEqual: typeof lessThanEqual;
101
- greaterThanEqual: typeof greaterThanEqual;
102
- and: typeof and;
103
- or: typeof or;
104
- not: typeof not;
105
- xor: typeof xor;
106
- bitAnd: typeof bitAnd;
107
- bitNot: typeof bitNot;
108
- bitOr: typeof bitOr;
109
- bitXor: typeof bitXor;
110
- shiftLeft: typeof shiftLeft;
111
- shiftRight: typeof shiftRight;
112
- incrementBefore: typeof incrementBefore;
113
- decrementBefore: typeof decrement;
114
- increment: typeof increment;
115
- decrement: typeof decrement;
73
+ ) => OperatorNode;
74
+ export const not: (value: OperatorNodeParameter) => OperatorNode;
75
+ export const xor: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
76
+ export const bitAnd: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
77
+ export const bitNot: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
78
+ export const bitOr: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
79
+ export const bitXor: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
80
+ export const shiftLeft: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
81
+ export const shiftRight: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
82
+
83
+ export const incrementBefore: (a: OperatorNodeParameter) => Node;
84
+ export const decrementBefore: (a: OperatorNodeParameter) => Node;
85
+ export const increment: (a: OperatorNodeParameter) => Node;
86
+ export const decrement: (a: OperatorNodeParameter) => Node;
87
+
88
+ declare module "../Nodes.js" {
89
+ interface Node {
90
+ add: (
91
+ b: OperatorNodeParameter,
92
+ ...params: OperatorNodeParameter[]
93
+ ) => OperatorNode;
94
+ addAssign: (
95
+ b: OperatorNodeParameter,
96
+ ...params: OperatorNodeParameter[]
97
+ ) => this;
98
+
99
+ sub: (
100
+ b: OperatorNodeParameter,
101
+ ...params: OperatorNodeParameter[]
102
+ ) => OperatorNode;
103
+ subAssign: (
104
+ b: OperatorNodeParameter,
105
+ ...params: OperatorNodeParameter[]
106
+ ) => this;
107
+
108
+ mul: (
109
+ b: OperatorNodeParameter,
110
+ ...params: OperatorNodeParameter[]
111
+ ) => OperatorNode;
112
+ mulAssign: (
113
+ b: OperatorNodeParameter,
114
+ ...params: OperatorNodeParameter[]
115
+ ) => this;
116
+
117
+ div: (
118
+ b: OperatorNodeParameter,
119
+ ...params: OperatorNodeParameter[]
120
+ ) => OperatorNode;
121
+ divAssign: (
122
+ b: OperatorNodeParameter,
123
+ ...params: OperatorNodeParameter[]
124
+ ) => this;
125
+
126
+ mod: (
127
+ b: OperatorNodeParameter,
128
+ ) => OperatorNode;
129
+ modAssign: (
130
+ b: OperatorNodeParameter,
131
+ ) => this;
132
+
133
+ equal: (
134
+ b: OperatorNodeParameter,
135
+ ) => OperatorNode;
136
+ equalAssign: (
137
+ b: OperatorNodeParameter,
138
+ ) => this;
139
+
140
+ notEqual: (
141
+ b: OperatorNodeParameter,
142
+ ) => OperatorNode;
143
+ notEqualAssign: (
144
+ b: OperatorNodeParameter,
145
+ ) => this;
146
+
147
+ lessThan: (
148
+ b: OperatorNodeParameter,
149
+ ) => OperatorNode;
150
+ lessThanAssign: (
151
+ b: OperatorNodeParameter,
152
+ ) => this;
153
+
154
+ greaterThan: (
155
+ b: OperatorNodeParameter,
156
+ ) => OperatorNode;
157
+ greaterThanAssign: (
158
+ b: OperatorNodeParameter,
159
+ ) => this;
160
+
161
+ lessThanEqual: (
162
+ b: OperatorNodeParameter,
163
+ ) => OperatorNode;
164
+ lessThanEqualAssign: (
165
+ b: OperatorNodeParameter,
166
+ ) => this;
167
+
168
+ greaterThanEqual: (
169
+ b: OperatorNodeParameter,
170
+ ) => OperatorNode;
171
+ greaterThanEqualAssign: (
172
+ b: OperatorNodeParameter,
173
+ ) => this;
174
+
175
+ and: (
176
+ b: OperatorNodeParameter,
177
+ ...params: OperatorNodeParameter[]
178
+ ) => OperatorNode;
179
+ andAssign: (
180
+ b: OperatorNodeParameter,
181
+ ...params: OperatorNodeParameter[]
182
+ ) => this;
183
+
184
+ or: (
185
+ b: OperatorNodeParameter,
186
+ ...params: OperatorNodeParameter[]
187
+ ) => OperatorNode;
188
+ orAssign: (
189
+ b: OperatorNodeParameter,
190
+ ...params: OperatorNodeParameter[]
191
+ ) => this;
192
+
193
+ not: () => OperatorNode;
194
+ notAssign: () => this;
195
+
196
+ xor: (
197
+ b: OperatorNodeParameter,
198
+ ) => OperatorNode;
199
+ xorAssign: (
200
+ b: OperatorNodeParameter,
201
+ ) => this;
202
+
203
+ bitAnd: (
204
+ b: OperatorNodeParameter,
205
+ ) => OperatorNode;
206
+ bitAndAssign: (
207
+ b: OperatorNodeParameter,
208
+ ) => this;
209
+
210
+ bitNot: (
211
+ b: OperatorNodeParameter,
212
+ ) => OperatorNode;
213
+ bitNotAssign: (
214
+ b: OperatorNodeParameter,
215
+ ) => this;
216
+
217
+ bitOr: (
218
+ b: OperatorNodeParameter,
219
+ ) => OperatorNode;
220
+ bitOrAssign: (
221
+ b: OperatorNodeParameter,
222
+ ) => this;
223
+
224
+ bitXor: (
225
+ b: OperatorNodeParameter,
226
+ ) => OperatorNode;
227
+ bitXorAssign: (
228
+ b: OperatorNodeParameter,
229
+ ) => this;
230
+
231
+ shiftLeft: (
232
+ b: OperatorNodeParameter,
233
+ ) => OperatorNode;
234
+ shiftLeftAssign: (
235
+ b: OperatorNodeParameter,
236
+ ) => this;
237
+
238
+ shiftRight: (
239
+ b: OperatorNodeParameter,
240
+ ) => OperatorNode;
241
+ shiftRightAssign: (
242
+ b: OperatorNodeParameter,
243
+ ) => this;
244
+
245
+ incrementBefore: () => OperatorNode;
246
+ incrementBeforeAssign: () => this;
247
+
248
+ decrementBefore: () => OperatorNode;
249
+ decrementBeforeAssign: () => this;
250
+
251
+ increment: () => OperatorNode;
252
+ incrementAssign: () => this;
253
+
254
+ decrement: () => OperatorNode;
255
+ decrementAssign: () => this;
116
256
  }
117
257
  }
118
258
 
119
259
  /**
120
260
  * @deprecated "modInt()" is deprecated. Use "mod( int( ... ) )" instead.
121
261
  */
122
- export const modInt: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
262
+ export const modInt: (a: OperatorNodeParameter, b: OperatorNodeParameter) => OperatorNode;
123
263
 
124
- declare module "../tsl/TSLCore.js" {
125
- interface NodeElements {
264
+ declare module "../Nodes.js" {
265
+ interface Nodes {
266
+ /**
267
+ * @deprecated "modInt()" is deprecated. Use "mod( int( ... ) )" instead.
268
+ */
269
+ modInt: (b: OperatorNodeParameter) => OperatorNode;
126
270
  /**
127
271
  * @deprecated "modInt()" is deprecated. Use "mod( int( ... ) )" instead.
128
272
  */
129
- modInt: typeof modInt;
273
+ modIntAssign: (b: OperatorNodeParameter) => this;
130
274
  }
131
275
  }
@@ -1,12 +1,11 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
- export const tri: (x: Node) => ShaderNodeObject<Node>;
3
+ export const tri: (x: Node) => Node;
5
4
 
6
- export const tri3: (p: Node) => ShaderNodeObject<Node>;
5
+ export const tri3: (p: Node) => Node;
7
6
 
8
7
  export const triNoise3D: (
9
8
  position: Node,
10
9
  speed: Node | number,
11
10
  time: Node | number,
12
- ) => ShaderNodeObject<Node>;
11
+ ) => Node;
@@ -1,7 +1,6 @@
1
1
  import { Texture } from "../../textures/Texture.js";
2
2
  import Node from "../core/Node.js";
3
3
  import TempNode from "../core/TempNode.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
 
6
5
  declare class PMREMNode extends TempNode {
7
6
  uvNode: Node | null;
@@ -19,4 +18,4 @@ export const pmremTexture: (
19
18
  value: Texture,
20
19
  uvNode?: Node,
21
20
  levelNode?: Node,
22
- ) => ShaderNodeObject<PMREMNode>;
21
+ ) => PMREMNode;
@@ -1,7 +1,6 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
- export const getDirection: (uv_immutable: Node, face: Node) => ShaderNodeObject<Node>;
3
+ export const getDirection: (uv_immutable: Node, face: Node) => Node;
5
4
 
6
5
  export const textureCubeUV: (
7
6
  envMap: Node,
@@ -10,7 +9,7 @@ export const textureCubeUV: (
10
9
  CUBEUV_TEXEL_WIDTH: Node,
11
10
  CUBEUV_TEXEL_HEIGHT: Node,
12
11
  CUBEUV_MAX_MIP: Node,
13
- ) => ShaderNodeObject<Node>;
12
+ ) => Node;
14
13
 
15
14
  export const blur: (
16
15
  n: Node,
@@ -25,4 +24,4 @@ export const blur: (
25
24
  CUBEUV_TEXEL_WIDTH: Node,
26
25
  CUBEUV_TEXEL_HEIGHT: Node,
27
26
  CUBEUV_MAX_MIP: Node,
28
- ) => ShaderNodeObject<Node>;
27
+ ) => Node;
@@ -1,4 +1,3 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
- export const checker: (coord?: Node) => ShaderNodeObject<Node>;
3
+ export const checker: (coord?: Node) => Node;
@@ -1,4 +1,3 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
- export const shapeCircle: (coord?: Node) => ShaderNodeObject<Node>;
3
+ export const shapeCircle: (coord?: Node) => Node;
@@ -4,8 +4,9 @@ export * from "../code/FunctionCallNode.js";
4
4
  export * from "../core/ArrayNode.js";
5
5
  export * from "../core/AssignNode.js";
6
6
  export * from "../core/BypassNode.js";
7
- export * from "../core/CacheNode.js";
8
7
  export * from "../core/ContextNode.js";
8
+ export * from "../core/InspectorNode.js";
9
+ export * from "../core/IsolateNode.js";
9
10
  export * from "../core/PropertyNode.js";
10
11
  export * from "../core/SubBuildNode.js";
11
12
  export * from "../core/UniformNode.js";