@types/three 0.165.0 → 0.167.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 (330) hide show
  1. three/README.md +1 -1
  2. three/build/three.webgpu.d.ts +1 -0
  3. three/build/three.webgpu.min.d.ts +1 -0
  4. three/examples/jsm/Addons.d.ts +1 -1
  5. three/examples/jsm/animation/MMDPhysics.d.ts +4 -4
  6. three/examples/jsm/csm/CSM.d.ts +3 -4
  7. three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
  8. three/examples/jsm/exporters/GLTFExporter.d.ts +6 -0
  9. three/examples/jsm/geometries/TeapotGeometry.d.ts +24 -0
  10. three/examples/jsm/helpers/ViewHelper.d.ts +8 -6
  11. three/examples/jsm/lights/RectAreaLightTexturesLib.d.ts +7 -0
  12. three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +4 -2
  13. three/examples/jsm/lines/LineMaterial.d.ts +2 -4
  14. three/examples/jsm/lines/webgpu/Line2.d.ts +14 -0
  15. three/examples/jsm/lines/webgpu/LineSegments2.d.ts +15 -0
  16. three/examples/jsm/loaders/DDSLoader.d.ts +8 -2
  17. three/examples/jsm/loaders/GLTFLoader.d.ts +3 -1
  18. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -2
  19. three/examples/jsm/loaders/KTXLoader.d.ts +8 -2
  20. three/examples/jsm/loaders/LUTImageLoader.d.ts +18 -0
  21. three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -2
  22. three/examples/jsm/loaders/PVRLoader.d.ts +2 -2
  23. three/examples/jsm/loaders/UltraHDRLoader.d.ts +21 -0
  24. three/package.json +6 -5
  25. three/src/Three.WebGPU.d.ts +184 -0
  26. three/src/Three.d.ts +26 -91
  27. three/src/animation/AnimationClip.d.ts +12 -4
  28. three/src/animation/AnimationUtils.d.ts +32 -7
  29. three/src/animation/KeyframeTrack.d.ts +9 -1
  30. three/src/animation/PropertyBinding.d.ts +12 -12
  31. three/src/cameras/OrthographicCamera.d.ts +27 -0
  32. three/src/cameras/PerspectiveCamera.d.ts +31 -0
  33. three/src/constants.d.ts +13 -1
  34. three/src/core/BufferAttribute.d.ts +11 -6
  35. three/src/core/BufferGeometry.d.ts +26 -3
  36. three/src/core/InterleavedBufferAttribute.d.ts +3 -3
  37. three/src/core/Object3D.d.ts +51 -6
  38. three/src/extras/DataUtils.d.ts +9 -2
  39. three/src/extras/ImageUtils.d.ts +6 -7
  40. three/src/extras/ShapeUtils.d.ts +5 -8
  41. three/src/extras/TextureUtils.d.ts +42 -0
  42. three/src/extras/core/Curve.d.ts +8 -2
  43. three/src/extras/core/CurvePath.d.ts +9 -1
  44. three/src/extras/core/Path.d.ts +9 -2
  45. three/src/extras/core/Shape.d.ts +9 -1
  46. three/src/lights/Light.d.ts +19 -2
  47. three/src/lights/LightShadow.d.ts +18 -2
  48. three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
  49. three/src/loaders/Cache.d.ts +13 -8
  50. three/src/materials/Material.d.ts +185 -14
  51. three/src/materials/ShaderMaterial.d.ts +49 -2
  52. three/src/math/ColorManagement.d.ts +3 -0
  53. three/src/math/Euler.d.ts +4 -2
  54. three/src/math/Matrix2.d.ts +53 -0
  55. three/src/math/Matrix3.d.ts +67 -115
  56. three/src/math/Matrix4.d.ts +48 -100
  57. three/src/math/Quaternion.d.ts +5 -3
  58. three/src/math/Vector2.d.ts +1 -1
  59. three/src/math/Vector4.d.ts +6 -0
  60. three/{examples/jsm → src}/nodes/Nodes.d.ts +37 -7
  61. three/{examples/jsm → src}/nodes/accessors/BatchNode.d.ts +1 -1
  62. three/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.d.ts +5 -1
  63. three/{examples/jsm → src}/nodes/accessors/CameraNode.d.ts +3 -1
  64. three/{examples/jsm → src}/nodes/accessors/CubeTextureNode.d.ts +11 -3
  65. three/{examples/jsm → src}/nodes/accessors/InstanceNode.d.ts +1 -1
  66. three/{examples/jsm → src}/nodes/accessors/MaterialNode.d.ts +11 -2
  67. three/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
  68. three/{examples/jsm → src}/nodes/accessors/ModelNode.d.ts +1 -1
  69. three/{examples/jsm → src}/nodes/accessors/NormalNode.d.ts +3 -3
  70. three/{examples/jsm → src}/nodes/accessors/Object3DNode.d.ts +1 -1
  71. three/{examples/jsm → src}/nodes/accessors/ReflectVectorNode.d.ts +3 -0
  72. three/{examples/jsm → src}/nodes/accessors/SkinningNode.d.ts +1 -1
  73. three/{examples/jsm → src}/nodes/accessors/StorageBufferNode.d.ts +7 -0
  74. three/src/nodes/accessors/StorageTextureNode.d.ts +40 -0
  75. three/{examples/jsm → src}/nodes/accessors/Texture3DNode.d.ts +3 -2
  76. three/{examples/jsm → src}/nodes/accessors/TextureNode.d.ts +9 -2
  77. three/{examples/jsm → src}/nodes/core/CacheNode.d.ts +4 -5
  78. three/{examples/jsm → src}/nodes/core/IndexNode.d.ts +3 -1
  79. three/{examples/jsm → src}/nodes/core/LightingModel.d.ts +12 -3
  80. three/src/nodes/core/MRTNode.d.ts +19 -0
  81. three/{examples/jsm → src}/nodes/core/Node.d.ts +6 -10
  82. three/{examples/jsm → src}/nodes/core/NodeBuilder.d.ts +13 -3
  83. three/{examples/jsm → src}/nodes/core/NodeCache.d.ts +13 -4
  84. three/{examples/jsm → src}/nodes/core/NodeFrame.d.ts +5 -2
  85. three/{examples/jsm → src}/nodes/core/NodeFunction.d.ts +2 -2
  86. three/{examples/jsm → src}/nodes/core/NodeUniform.d.ts +1 -1
  87. three/{examples/jsm → src}/nodes/core/NodeUtils.d.ts +6 -1
  88. three/{examples/jsm → src}/nodes/core/PropertyNode.d.ts +1 -0
  89. three/{examples/jsm → src}/nodes/core/UniformNode.d.ts +2 -0
  90. three/{examples/jsm → src}/nodes/core/VarNode.d.ts +2 -0
  91. three/{examples/jsm → src}/nodes/display/AnamorphicNode.d.ts +1 -1
  92. three/src/nodes/display/BloomNode.d.ts +35 -0
  93. three/{examples/jsm → src}/nodes/display/ColorAdjustmentNode.d.ts +0 -1
  94. three/{examples/jsm → src}/nodes/display/ColorSpaceNode.d.ts +1 -1
  95. three/src/nodes/display/DenoiseNode.d.ts +38 -0
  96. three/src/nodes/display/DepthOfFieldNode.d.ts +30 -0
  97. three/src/nodes/display/DotScreenNode.d.ts +27 -0
  98. three/src/nodes/display/FXAANode.d.ts +19 -0
  99. three/src/nodes/display/FilmNode.d.ts +25 -0
  100. three/src/nodes/display/GTAONode.d.ts +46 -0
  101. three/{examples/jsm → src}/nodes/display/GaussianBlurNode.d.ts +8 -5
  102. three/src/nodes/display/Lut3DNode.d.ts +30 -0
  103. three/{examples/jsm → src}/nodes/display/NormalMapNode.d.ts +1 -2
  104. three/src/nodes/display/PassNode.d.ts +62 -0
  105. three/src/nodes/display/PixelationPassNode.d.ts +67 -0
  106. three/src/nodes/display/RGBShiftNode.d.ts +24 -0
  107. three/src/nodes/display/RenderOutputNode.d.ts +28 -0
  108. three/src/nodes/display/SobelOperatorNode.d.ts +17 -0
  109. three/{examples/jsm → src}/nodes/display/ToneMappingNode.d.ts +1 -1
  110. three/src/nodes/display/TransitionNode.d.ts +41 -0
  111. three/{examples/jsm → src}/nodes/display/ViewportDepthNode.d.ts +4 -6
  112. three/{examples/jsm → src}/nodes/display/ViewportTextureNode.d.ts +1 -1
  113. three/src/nodes/functions/BSDF/LTC.d.ts +9 -0
  114. three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
  115. three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
  116. three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
  117. three/{examples/jsm → src}/nodes/geometry/RangeNode.d.ts +4 -1
  118. three/{examples/jsm → src}/nodes/lighting/AnalyticLightNode.d.ts +1 -1
  119. three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
  120. three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
  121. three/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.d.ts +1 -1
  122. three/{examples/jsm → src}/nodes/lighting/LightingNode.d.ts +2 -0
  123. three/{examples/jsm → src}/nodes/lighting/LightsNode.d.ts +1 -1
  124. three/{examples/jsm → src}/nodes/lighting/PointLightNode.d.ts +1 -1
  125. three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
  126. three/{examples/jsm → src}/nodes/lighting/SpotLightNode.d.ts +1 -1
  127. three/{examples/jsm → src}/nodes/loaders/NodeLoader.d.ts +3 -1
  128. three/{examples/jsm → src}/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
  129. three/{examples/jsm → src}/nodes/loaders/NodeObjectLoader.d.ts +3 -1
  130. three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
  131. three/{examples/jsm → src}/nodes/materials/LineBasicNodeMaterial.d.ts +3 -1
  132. three/{examples/jsm → src}/nodes/materials/Materials.d.ts +2 -1
  133. three/{examples/jsm → src}/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
  134. three/{examples/jsm → src}/nodes/materials/MeshMatcapNodeMaterial.d.ts +5 -1
  135. three/{examples/jsm → src}/nodes/materials/MeshNormalNodeMaterial.d.ts +4 -1
  136. three/{examples/jsm → src}/nodes/materials/MeshPhongNodeMaterial.d.ts +8 -4
  137. three/{examples/jsm → src}/nodes/materials/MeshPhysicalNodeMaterial.d.ts +21 -20
  138. three/src/nodes/materials/MeshSSSNodeMaterial.d.ts +16 -0
  139. three/{examples/jsm → src}/nodes/materials/MeshStandardNodeMaterial.d.ts +9 -5
  140. three/{examples/jsm → src}/nodes/materials/MeshToonNodeMaterial.d.ts +5 -1
  141. three/{examples/jsm → src}/nodes/materials/NodeMaterial.d.ts +54 -49
  142. three/{examples/jsm → src}/nodes/materials/PointsNodeMaterial.d.ts +3 -1
  143. three/{examples/jsm → src}/nodes/materials/ShadowNodeMaterial.d.ts +2 -1
  144. three/{examples/jsm → src}/nodes/materials/SpriteNodeMaterial.d.ts +5 -4
  145. three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.d.ts +1 -0
  146. three/src/nodes/materialx/lib/mx_noise.d.ts +359 -0
  147. three/{examples/jsm → src}/nodes/math/MathNode.d.ts +9 -1
  148. three/{examples/jsm → src}/nodes/pmrem/PMREMNode.d.ts +1 -1
  149. three/{examples/jsm → src}/nodes/utils/DiscardNode.d.ts +1 -0
  150. three/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.d.ts +3 -3
  151. three/src/nodes/utils/PackingNode.d.ts +24 -0
  152. three/src/nodes/utils/RTTNode.d.ts +45 -0
  153. three/{examples/jsm → src}/nodes/utils/ReflectorNode.d.ts +3 -1
  154. three/src/objects/BatchedMesh.d.ts +58 -54
  155. three/src/objects/InstancedMesh.d.ts +15 -2
  156. three/src/objects/LOD.d.ts +17 -1
  157. three/src/objects/Mesh.d.ts +11 -1
  158. three/src/objects/Points.d.ts +0 -3
  159. three/src/objects/Skeleton.d.ts +10 -3
  160. three/src/objects/SkinnedMesh.d.ts +15 -3
  161. three/{examples/jsm → src}/renderers/common/Animation.d.ts +0 -1
  162. three/{examples/jsm → src}/renderers/common/Attributes.d.ts +4 -2
  163. three/{examples/jsm → src}/renderers/common/Backend.d.ts +1 -1
  164. three/{examples/jsm → src}/renderers/common/Background.d.ts +2 -1
  165. three/src/renderers/common/BindGroup.d.ts +9 -0
  166. three/{examples/jsm → src}/renderers/common/Bindings.d.ts +11 -14
  167. three/{examples/jsm → src}/renderers/common/ClippingContext.d.ts +6 -1
  168. three/{examples/jsm → src}/renderers/common/Color4.d.ts +1 -1
  169. three/{examples/jsm → src}/renderers/common/CubeRenderTarget.d.ts +4 -1
  170. three/{examples/jsm → src}/renderers/common/Geometries.d.ts +6 -3
  171. three/{examples/jsm → src}/renderers/common/Info.d.ts +7 -2
  172. three/{examples/jsm → src}/renderers/common/PostProcessing.d.ts +9 -1
  173. three/{examples/jsm/objects → src/renderers/common}/QuadMesh.d.ts +4 -2
  174. three/{examples/jsm → src}/renderers/common/RenderBundle.d.ts +2 -1
  175. three/{examples/jsm → src}/renderers/common/RenderBundles.d.ts +2 -1
  176. three/{examples/jsm → src}/renderers/common/RenderContext.d.ts +4 -1
  177. three/{examples/jsm → src}/renderers/common/RenderContexts.d.ts +3 -1
  178. three/{examples/jsm → src}/renderers/common/RenderList.d.ts +5 -1
  179. three/{examples/jsm → src}/renderers/common/RenderLists.d.ts +2 -1
  180. three/{examples/jsm → src}/renderers/common/RenderObject.d.ts +19 -16
  181. three/{examples/jsm → src}/renderers/common/RenderObjects.d.ts +5 -2
  182. three/{examples/jsm → src}/renderers/common/Renderer.d.ts +41 -29
  183. three/src/renderers/common/SampledTexture.d.ts +27 -0
  184. three/src/renderers/common/Sampler.d.ts +11 -0
  185. three/{examples/jsm → src}/renderers/common/StorageBufferAttribute.d.ts +1 -1
  186. three/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.d.ts +2 -1
  187. three/{examples/jsm → src}/renderers/common/StorageTexture.d.ts +1 -1
  188. three/{examples/jsm → src}/renderers/common/Textures.d.ts +4 -1
  189. three/{examples/jsm → src}/renderers/common/Uniform.d.ts +9 -4
  190. three/{examples/jsm → src}/renderers/common/UniformsGroup.d.ts +4 -2
  191. three/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.d.ts +2 -1
  192. three/{examples/jsm → src}/renderers/common/nodes/NodeBuilderState.d.ts +8 -4
  193. three/src/renderers/common/nodes/NodeSampledTexture.d.ts +29 -0
  194. three/src/renderers/common/nodes/NodeSampler.d.ts +12 -0
  195. three/{examples/jsm → src}/renderers/common/nodes/NodeUniform.d.ts +10 -5
  196. three/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -3
  197. three/{examples/jsm → src}/renderers/common/nodes/Nodes.d.ts +22 -8
  198. three/src/renderers/shaders/ShaderLib.d.ts +3 -1
  199. three/src/renderers/shaders/UniformsLib.d.ts +3 -0
  200. three/src/renderers/shaders/UniformsUtils.d.ts +6 -3
  201. three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.d.ts +1 -1
  202. three/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.d.ts +1 -1
  203. three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +125 -0
  204. three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +6 -0
  205. three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +6 -0
  206. three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +328 -0
  207. three/src/renderers/webxr/WebXRDepthSensing.d.ts +2 -0
  208. three/src/renderers/webxr/WebXRManager.d.ts +33 -23
  209. three/src/scenes/Fog.d.ts +7 -24
  210. three/src/scenes/FogExp2.d.ts +9 -3
  211. three/src/scenes/Scene.d.ts +21 -5
  212. three/src/textures/CompressedArrayTexture.d.ts +4 -4
  213. three/src/textures/CompressedTexture.d.ts +16 -8
  214. three/src/textures/Source.d.ts +15 -1
  215. three/src/textures/Texture.d.ts +40 -2
  216. three/examples/jsm/deprecated/Geometry.d.ts +0 -341
  217. three/examples/jsm/lights/IESSpotLight.d.ts +0 -5
  218. three/examples/jsm/nodes/display/PassNode.d.ts +0 -46
  219. three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +0 -7
  220. three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -17
  221. three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +0 -129
  222. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -17
  223. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -37
  224. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -3
  225. /three/{examples/jsm → src}/nodes/accessors/AccessorsUtils.d.ts +0 -0
  226. /three/{examples/jsm → src}/nodes/accessors/BitangentNode.d.ts +0 -0
  227. /three/{examples/jsm → src}/nodes/accessors/BufferNode.d.ts +0 -0
  228. /three/{examples/jsm → src}/nodes/accessors/ClippingNode.d.ts +0 -0
  229. /three/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
  230. /three/{examples/jsm → src}/nodes/accessors/PointUVNode.d.ts +0 -0
  231. /three/{examples/jsm → src}/nodes/accessors/PositionNode.d.ts +0 -0
  232. /three/{examples/jsm → src}/nodes/accessors/ReferenceNode.d.ts +0 -0
  233. /three/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.d.ts +0 -0
  234. /three/{examples/jsm → src}/nodes/accessors/TangentNode.d.ts +0 -0
  235. /three/{examples/jsm → src}/nodes/accessors/TextureBicubicNode.d.ts +0 -0
  236. /three/{examples/jsm → src}/nodes/accessors/UVNode.d.ts +0 -0
  237. /three/{examples/jsm → src}/nodes/accessors/UniformsNode.d.ts +0 -0
  238. /three/{examples/jsm → src}/nodes/accessors/UserDataNode.d.ts +0 -0
  239. /three/{examples/jsm → src}/nodes/accessors/VertexColorNode.d.ts +0 -0
  240. /three/{examples/jsm → src}/nodes/code/CodeNode.d.ts +0 -0
  241. /three/{examples/jsm → src}/nodes/code/ExpressionNode.d.ts +0 -0
  242. /three/{examples/jsm → src}/nodes/code/FunctionCallNode.d.ts +0 -0
  243. /three/{examples/jsm → src}/nodes/code/FunctionNode.d.ts +0 -0
  244. /three/{examples/jsm → src}/nodes/core/AssignNode.d.ts +0 -0
  245. /three/{examples/jsm → src}/nodes/core/AttributeNode.d.ts +0 -0
  246. /three/{examples/jsm → src}/nodes/core/BypassNode.d.ts +0 -0
  247. /three/{examples/jsm → src}/nodes/core/ConstNode.d.ts +0 -0
  248. /three/{examples/jsm → src}/nodes/core/ContextNode.d.ts +0 -0
  249. /three/{examples/jsm → src}/nodes/core/InputNode.d.ts +0 -0
  250. /three/{examples/jsm → src}/nodes/core/NodeAttribute.d.ts +0 -0
  251. /three/{examples/jsm → src}/nodes/core/NodeCode.d.ts +0 -0
  252. /three/{examples/jsm → src}/nodes/core/NodeFunctionInput.d.ts +0 -0
  253. /three/{examples/jsm → src}/nodes/core/NodeKeywords.d.ts +0 -0
  254. /three/{examples/jsm → src}/nodes/core/NodeParser.d.ts +0 -0
  255. /three/{examples/jsm → src}/nodes/core/NodeVar.d.ts +0 -0
  256. /three/{examples/jsm → src}/nodes/core/NodeVarying.d.ts +0 -0
  257. /three/{examples/jsm → src}/nodes/core/OutputStructNode.d.ts +0 -0
  258. /three/{examples/jsm → src}/nodes/core/StackNode.d.ts +0 -0
  259. /three/{examples/jsm → src}/nodes/core/StructTypeNode.d.ts +0 -0
  260. /three/{examples/jsm → src}/nodes/core/TempNode.d.ts +0 -0
  261. /three/{examples/jsm → src}/nodes/core/UniformGroup.d.ts +0 -0
  262. /three/{examples/jsm → src}/nodes/core/UniformGroupNode.d.ts +0 -0
  263. /three/{examples/jsm → src}/nodes/core/VaryingNode.d.ts +0 -0
  264. /three/{examples/jsm → src}/nodes/core/constants.d.ts +0 -0
  265. /three/{examples/jsm → src}/nodes/display/AfterImageNode.d.ts +0 -0
  266. /three/{examples/jsm → src}/nodes/display/BlendModeNode.d.ts +0 -0
  267. /three/{examples/jsm → src}/nodes/display/FrontFacingNode.d.ts +0 -0
  268. /three/{examples/jsm → src}/nodes/display/PosterizeNode.d.ts +0 -0
  269. /three/{examples/jsm → src}/nodes/display/ViewportDepthTextureNode.d.ts +0 -0
  270. /three/{examples/jsm → src}/nodes/display/ViewportNode.d.ts +0 -0
  271. /three/{examples/jsm → src}/nodes/display/ViewportSharedTextureNode.d.ts +0 -0
  272. /three/{examples/jsm → src}/nodes/fog/FogExp2Node.d.ts +0 -0
  273. /three/{examples/jsm → src}/nodes/fog/FogNode.d.ts +0 -0
  274. /three/{examples/jsm → src}/nodes/fog/FogRangeNode.d.ts +0 -0
  275. /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
  276. /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
  277. /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -0
  278. /three/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
  279. /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.d.ts +0 -0
  280. /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -0
  281. /three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
  282. /three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
  283. /three/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.d.ts +0 -0
  284. /three/{examples/jsm → src}/nodes/functions/ShadowMaskModel.d.ts +0 -0
  285. /three/{examples/jsm → src}/nodes/functions/ToonLightingModel.d.ts +0 -0
  286. /three/{examples/jsm → src}/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
  287. /three/{examples/jsm → src}/nodes/functions/material/getRoughness.d.ts +0 -0
  288. /three/{examples/jsm → src}/nodes/gpgpu/ComputeNode.d.ts +0 -0
  289. /three/{examples/jsm → src}/nodes/lighting/AONode.d.ts +0 -0
  290. /three/{examples/jsm → src}/nodes/lighting/EnvironmentNode.d.ts +0 -0
  291. /three/{examples/jsm → src}/nodes/lighting/IrradianceNode.d.ts +0 -0
  292. /three/{examples/jsm → src}/nodes/lighting/LightUtils.d.ts +0 -0
  293. /three/{examples/jsm → src}/nodes/lighting/LightingContextNode.d.ts +0 -0
  294. /three/{examples/jsm → src}/nodes/materials/VolumeNodeMaterial.d.ts +0 -0
  295. /three/{examples/jsm → src}/nodes/materialx/MaterialXNodes.d.ts +0 -0
  296. /three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.d.ts +0 -0
  297. /three/{examples/jsm → src}/nodes/math/CondNode.d.ts +0 -0
  298. /three/{examples/jsm → src}/nodes/math/HashNode.d.ts +0 -0
  299. /three/{examples/jsm → src}/nodes/math/MathUtils.d.ts +0 -0
  300. /three/{examples/jsm → src}/nodes/math/OperatorNode.d.ts +0 -0
  301. /three/{examples/jsm → src}/nodes/math/TriNoise3D.d.ts +0 -0
  302. /three/{examples/jsm → src}/nodes/procedural/CheckerNode.d.ts +0 -0
  303. /three/{examples/jsm → src}/nodes/shadernode/ShaderNode.d.ts +0 -0
  304. /three/{examples/jsm → src}/nodes/utils/ArrayElementNode.d.ts +0 -0
  305. /three/{examples/jsm → src}/nodes/utils/ConvertNode.d.ts +0 -0
  306. /three/{examples/jsm → src}/nodes/utils/EquirectUVNode.d.ts +0 -0
  307. /three/{examples/jsm → src}/nodes/utils/JoinNode.d.ts +0 -0
  308. /three/{examples/jsm → src}/nodes/utils/MatcapUVNode.d.ts +0 -0
  309. /three/{examples/jsm → src}/nodes/utils/OscNode.d.ts +0 -0
  310. /three/{examples/jsm → src}/nodes/utils/RemapNode.d.ts +0 -0
  311. /three/{examples/jsm → src}/nodes/utils/RotateNode.d.ts +0 -0
  312. /three/{examples/jsm → src}/nodes/utils/RotateUVNode.d.ts +0 -0
  313. /three/{examples/jsm → src}/nodes/utils/SplitNode.d.ts +0 -0
  314. /three/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
  315. /three/{examples/jsm → src}/nodes/utils/StoargeArrayElementNode.d.ts +0 -0
  316. /three/{examples/jsm → src}/nodes/utils/TimerNode.d.ts +0 -0
  317. /three/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
  318. /three/{examples/jsm → src}/renderers/common/Binding.d.ts +0 -0
  319. /three/{examples/jsm → src}/renderers/common/Buffer.d.ts +0 -0
  320. /three/{examples/jsm → src}/renderers/common/BufferUtils.d.ts +0 -0
  321. /three/{examples/jsm → src}/renderers/common/ChainMap.d.ts +0 -0
  322. /three/{examples/jsm → src}/renderers/common/ComputePipeline.d.ts +0 -0
  323. /three/{examples/jsm → src}/renderers/common/Constants.d.ts +0 -0
  324. /three/{examples/jsm → src}/renderers/common/DataMap.d.ts +0 -0
  325. /three/{examples/jsm → src}/renderers/common/Pipeline.d.ts +0 -0
  326. /three/{examples/jsm → src}/renderers/common/Pipelines.d.ts +0 -0
  327. /three/{examples/jsm → src}/renderers/common/ProgrammableStage.d.ts +0 -0
  328. /three/{examples/jsm → src}/renderers/common/RenderPipeline.d.ts +0 -0
  329. /three/{examples/jsm → src}/renderers/common/UniformBuffer.d.ts +0 -0
  330. /three/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.d.ts +0 -0
@@ -1,4 +1,6 @@
1
- import { Color, PointsMaterialParameters, Texture } from "three";
1
+ import { PointsMaterialParameters } from "../../materials/PointsMaterial.js";
2
+ import { Color } from "../../math/Color.js";
3
+ import { Texture } from "../../textures/Texture.js";
2
4
  import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
3
5
 
4
6
  export interface PointsNodeMaterialParameters extends NodeMaterialParameters, PointsMaterialParameters {
@@ -1,4 +1,5 @@
1
- import { Color, ShadowMaterialParameters } from "three";
1
+ import { ShadowMaterialParameters } from "../../materials/ShadowMaterial.js";
2
+ import { Color } from "../../math/Color.js";
2
3
  import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
3
4
 
4
5
  export interface ShadowNodeMaterialParameters extends NodeMaterialParameters, ShadowMaterialParameters {
@@ -1,6 +1,7 @@
1
- import { Color, SpriteMaterialParameters, Texture } from "three";
1
+ import { SpriteMaterialParameters } from "../../materials/SpriteMaterial.js";
2
+ import { Color } from "../../math/Color.js";
3
+ import { Texture } from "../../textures/Texture.js";
2
4
  import Node from "../core/Node.js";
3
- import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
5
  import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
5
6
 
6
7
  export interface SpriteNodeMaterialParameters extends NodeMaterialParameters, SpriteMaterialParameters {
@@ -9,8 +10,8 @@ export interface SpriteNodeMaterialParameters extends NodeMaterialParameters, Sp
9
10
  export default class SpriteNodeMaterial extends NodeMaterial {
10
11
  isSpriteNodeMaterial: true;
11
12
 
12
- rotationNode: ShaderNodeObject<Node> | null;
13
- scaleNode: ShaderNodeObject<Node> | null;
13
+ rotationNode: Node | null;
14
+ scaleNode: Node | null;
14
15
 
15
16
  // Properties from SpriteMaterial
16
17
  readonly isSpriteMaterial: true;
@@ -2,4 +2,5 @@ import Node from "../../core/Node.js";
2
2
  import { NodeRepresentation, ShaderNodeObject } from "../../shadernode/ShaderNode.js";
3
3
 
4
4
  export const mx_hsvtorgb: (hsv_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
5
+
5
6
  export const mx_rgbtohsv: (c_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
@@ -0,0 +1,359 @@
1
+ import Node from "../../core/Node.js";
2
+ import VarNode from "../../core/VarNode.js";
3
+ import { NodeRepresentation, ShaderNodeObject } from "../../shadernode/ShaderNode.js";
4
+
5
+ export const mx_select: (
6
+ b_immutable: NodeRepresentation,
7
+ t_immutable: NodeRepresentation,
8
+ f_immutable: NodeRepresentation,
9
+ ) => ShaderNodeObject<Node>;
10
+
11
+ export const mx_negate_if: (
12
+ val_immutable: NodeRepresentation,
13
+ b_immutable: NodeRepresentation,
14
+ ) => ShaderNodeObject<Node>;
15
+
16
+ export const mx_floor: (x_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
17
+
18
+ export const mx_floorfrac: (x_immutable: NodeRepresentation, i: ShaderNodeObject<VarNode>) => ShaderNodeObject<Node>;
19
+
20
+ export const mx_bilerp_0: (
21
+ v0_immutable: NodeRepresentation,
22
+ v1_immutable: NodeRepresentation,
23
+ v2_immutable: NodeRepresentation,
24
+ v3_immutable: NodeRepresentation,
25
+ s_immutable: NodeRepresentation,
26
+ t_immutable: NodeRepresentation,
27
+ ) => ShaderNodeObject<Node>;
28
+
29
+ export const mx_bilerp_1: (
30
+ v0_immutable: NodeRepresentation,
31
+ v1_immutable: NodeRepresentation,
32
+ v2_immutable: NodeRepresentation,
33
+ v3_immutable: NodeRepresentation,
34
+ s_immutable: NodeRepresentation,
35
+ t_immutable: NodeRepresentation,
36
+ ) => ShaderNodeObject<Node>;
37
+
38
+ export const mx_bilerp: (
39
+ v0_immutable: NodeRepresentation,
40
+ v1_immutable: NodeRepresentation,
41
+ v2_immutable: NodeRepresentation,
42
+ v3_immutable: NodeRepresentation,
43
+ s_immutable: NodeRepresentation,
44
+ t_immutable: NodeRepresentation,
45
+ ) => ShaderNodeObject<Node>;
46
+
47
+ export const mx_trilerp_0: (
48
+ v0_immutable: NodeRepresentation,
49
+ v1_immutable: NodeRepresentation,
50
+ v2_immutable: NodeRepresentation,
51
+ v3_immutable: NodeRepresentation,
52
+ v4_immutable: NodeRepresentation,
53
+ v5_immutable: NodeRepresentation,
54
+ v6_immutable: NodeRepresentation,
55
+ v7_immutable: NodeRepresentation,
56
+ s_immutable: NodeRepresentation,
57
+ t_immutable: NodeRepresentation,
58
+ r_immutable: NodeRepresentation,
59
+ ) => ShaderNodeObject<Node>;
60
+
61
+ export const mx_trilerp_1: (
62
+ v0_immutable: NodeRepresentation,
63
+ v1_immutable: NodeRepresentation,
64
+ v2_immutable: NodeRepresentation,
65
+ v3_immutable: NodeRepresentation,
66
+ v4_immutable: NodeRepresentation,
67
+ v5_immutable: NodeRepresentation,
68
+ v6_immutable: NodeRepresentation,
69
+ v7_immutable: NodeRepresentation,
70
+ s_immutable: NodeRepresentation,
71
+ t_immutable: NodeRepresentation,
72
+ r_immutable: NodeRepresentation,
73
+ ) => ShaderNodeObject<Node>;
74
+
75
+ export const mx_trilerp: (
76
+ v0_immutable: NodeRepresentation,
77
+ v1_immutable: NodeRepresentation,
78
+ v2_immutable: NodeRepresentation,
79
+ v3_immutable: NodeRepresentation,
80
+ v4_immutable: NodeRepresentation,
81
+ v5_immutable: NodeRepresentation,
82
+ v6_immutable: NodeRepresentation,
83
+ v7_immutable: NodeRepresentation,
84
+ s_immutable: NodeRepresentation,
85
+ t_immutable: NodeRepresentation,
86
+ r_immutable: NodeRepresentation,
87
+ ) => ShaderNodeObject<Node>;
88
+
89
+ export const mx_gradient_float_0: (
90
+ hash_immutable: NodeRepresentation,
91
+ x_immutable: NodeRepresentation,
92
+ y_immutable: NodeRepresentation,
93
+ ) => ShaderNodeObject<Node>;
94
+
95
+ export const mx_gradient_float_1: (
96
+ hash_immutable: NodeRepresentation,
97
+ x_immutable: NodeRepresentation,
98
+ y_immutable: NodeRepresentation,
99
+ z_immutable: NodeRepresentation,
100
+ ) => ShaderNodeObject<Node>;
101
+
102
+ export const mx_gradient_float: (
103
+ hash_immutable: NodeRepresentation,
104
+ x_immutable: NodeRepresentation,
105
+ y_immutable: NodeRepresentation,
106
+ z_immutable?: NodeRepresentation,
107
+ ) => ShaderNodeObject<Node>;
108
+
109
+ export const mx_gradient_vec3_0: (
110
+ hash_immutable: NodeRepresentation,
111
+ x_immutable: NodeRepresentation,
112
+ y_immutable: NodeRepresentation,
113
+ ) => ShaderNodeObject<Node>;
114
+
115
+ export const mx_gradient_vec3_1: (
116
+ hash_immutable: NodeRepresentation,
117
+ x_immutable: NodeRepresentation,
118
+ y_immutable: NodeRepresentation,
119
+ z_immutable: NodeRepresentation,
120
+ ) => ShaderNodeObject<Node>;
121
+
122
+ export const mx_gradient_vec3: (
123
+ hash_immutable: NodeRepresentation,
124
+ x_immutable: NodeRepresentation,
125
+ y_immutable: NodeRepresentation,
126
+ z_immutable?: NodeRepresentation,
127
+ ) => ShaderNodeObject<Node>;
128
+
129
+ export const mx_gradient_scale2d_0: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
130
+
131
+ export const mx_gradient_scale3d_0: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
132
+
133
+ export const mx_gradient_scale2d_1: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
134
+
135
+ export const mx_gradient_scale2d: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
136
+
137
+ export const mx_gradient_scale3d_1: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
138
+
139
+ export const mx_gradient_scale3d: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
140
+
141
+ export const mx_rotl32: (x_immutable: NodeRepresentation, k_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
142
+
143
+ export const mx_bjmix: (
144
+ a: ShaderNodeObject<VarNode>,
145
+ b: ShaderNodeObject<VarNode>,
146
+ c: ShaderNodeObject<VarNode>,
147
+ ) => ShaderNodeObject<Node>;
148
+
149
+ export const mx_bjfinal: (
150
+ a_immutable: NodeRepresentation,
151
+ b_immutable: NodeRepresentation,
152
+ c_immutable: NodeRepresentation,
153
+ ) => ShaderNodeObject<Node>;
154
+
155
+ export const mx_bits_to_01: (bits_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
156
+
157
+ export const mx_fade: (t_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
158
+
159
+ export const mx_hash_int_0: (x_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
160
+
161
+ export const mx_hash_int_1: (
162
+ x_immutable: NodeRepresentation,
163
+ y_immutable: NodeRepresentation,
164
+ ) => ShaderNodeObject<Node>;
165
+
166
+ export const mx_hash_int_2: (
167
+ x_immutable: NodeRepresentation,
168
+ y_immutable: NodeRepresentation,
169
+ z_immutable: NodeRepresentation,
170
+ ) => ShaderNodeObject<Node>;
171
+
172
+ export const mx_hash_int_3: (
173
+ x_immutable: NodeRepresentation,
174
+ y_immutable: NodeRepresentation,
175
+ z_immutable: NodeRepresentation,
176
+ xx_immutable: NodeRepresentation,
177
+ ) => ShaderNodeObject<Node>;
178
+
179
+ export const mx_hash_int_4: (
180
+ x_immutable: NodeRepresentation,
181
+ y_immutable: NodeRepresentation,
182
+ z_immutable: NodeRepresentation,
183
+ xx_immutable: NodeRepresentation,
184
+ yy_immutable: NodeRepresentation,
185
+ ) => ShaderNodeObject<Node>;
186
+
187
+ export const mx_hash_int: (
188
+ x_immutable: NodeRepresentation,
189
+ y_immutable?: NodeRepresentation,
190
+ z_immutable?: NodeRepresentation,
191
+ xx_immutable?: NodeRepresentation,
192
+ yy_immutable?: NodeRepresentation,
193
+ ) => ShaderNodeObject<Node>;
194
+
195
+ export const mx_hash_vec3_0: (
196
+ x_immutable: NodeRepresentation,
197
+ y_immutable: NodeRepresentation,
198
+ ) => ShaderNodeObject<Node>;
199
+
200
+ export const mx_hash_vec3_1: (
201
+ x_immutable: NodeRepresentation,
202
+ y_immutable: NodeRepresentation,
203
+ z_immutable: NodeRepresentation,
204
+ ) => ShaderNodeObject<Node>;
205
+
206
+ export const mx_hash_vec3: (
207
+ x_immutable: NodeRepresentation,
208
+ y_immutable: NodeRepresentation,
209
+ z_immutable?: NodeRepresentation,
210
+ ) => ShaderNodeObject<Node>;
211
+
212
+ export const mx_perlin_noise_float_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
213
+
214
+ export const mx_perlin_noise_float_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
215
+
216
+ export const mx_perlin_noise_float: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
217
+
218
+ export const mx_perlin_noise_vec3_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
219
+
220
+ export const mx_perlin_noise_vec3_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
221
+
222
+ export const mx_perlin_noise_vec3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
223
+
224
+ export const mx_cell_noise_float_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
225
+
226
+ export const mx_cell_noise_float_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
227
+
228
+ export const mx_cell_noise_float_2: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
229
+
230
+ export const mx_cell_noise_float_3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
231
+
232
+ export const mx_cell_noise_float: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
233
+
234
+ export const mx_cell_noise_vec3_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
235
+
236
+ export const mx_cell_noise_vec3_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
237
+
238
+ export const mx_cell_noise_vec3_2: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
239
+
240
+ export const mx_cell_noise_vec3_3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
241
+
242
+ export const mx_cell_noise_vec3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
243
+
244
+ export const mx_fractal_noise_float: (
245
+ p_immutable: NodeRepresentation,
246
+ octaves_immutable: NodeRepresentation,
247
+ lacunarity_immutable: NodeRepresentation,
248
+ diminish_immutable: NodeRepresentation,
249
+ ) => ShaderNodeObject<Node>;
250
+
251
+ export const mx_fractal_noise_vec3: (
252
+ p_immutable: NodeRepresentation,
253
+ octaves_immutable: NodeRepresentation,
254
+ lacunarity_immutable: NodeRepresentation,
255
+ diminish_immutable: NodeRepresentation,
256
+ ) => ShaderNodeObject<Node>;
257
+
258
+ export const mx_fractal_noise_vec2: (
259
+ p_immutable: NodeRepresentation,
260
+ octaves_immutable: NodeRepresentation,
261
+ lacunarity_immutable: NodeRepresentation,
262
+ diminish_immutable: NodeRepresentation,
263
+ ) => ShaderNodeObject<Node>;
264
+
265
+ export const mx_fractal_noise_vec4: (
266
+ p_immutable: NodeRepresentation,
267
+ octaves_immutable: NodeRepresentation,
268
+ lacunarity_immutable: NodeRepresentation,
269
+ diminish_immutable: NodeRepresentation,
270
+ ) => ShaderNodeObject<Node>;
271
+
272
+ export const mx_worley_distance_0: (
273
+ p_immutable: NodeRepresentation,
274
+ x_immutable: NodeRepresentation,
275
+ y_immutable: NodeRepresentation,
276
+ z_immutable: NodeRepresentation,
277
+ xoff_immutable: NodeRepresentation,
278
+ yoff_immutable: NodeRepresentation,
279
+ jitter_immutable: NodeRepresentation,
280
+ metric_immutable: NodeRepresentation,
281
+ ) => ShaderNodeObject<Node>;
282
+
283
+ export const mx_worley_distance_1: (
284
+ p_immutable: NodeRepresentation,
285
+ x_immutable: NodeRepresentation,
286
+ y_immutable: NodeRepresentation,
287
+ z_immutable: NodeRepresentation,
288
+ xoff_immutable: NodeRepresentation,
289
+ yoff_immutable: NodeRepresentation,
290
+ zoff_immutable: NodeRepresentation,
291
+ jitter_immutable: NodeRepresentation,
292
+ metric_immutable: NodeRepresentation,
293
+ ) => ShaderNodeObject<Node>;
294
+
295
+ export const mx_worley_distance: (
296
+ p_immutable: NodeRepresentation,
297
+ x_immutable: NodeRepresentation,
298
+ y_immutable: NodeRepresentation,
299
+ z_immutable: NodeRepresentation,
300
+ xoff_immutable: NodeRepresentation,
301
+ yoff_immutable: NodeRepresentation,
302
+ zoff_immutable: NodeRepresentation,
303
+ jitter_immutable: NodeRepresentation,
304
+ metric_immutable?: NodeRepresentation,
305
+ ) => ShaderNodeObject<Node>;
306
+
307
+ export const mx_worley_noise_float_0: (
308
+ p_immutable: NodeRepresentation,
309
+ jitter_immutable: NodeRepresentation,
310
+ metric_immutable: NodeRepresentation,
311
+ ) => ShaderNodeObject<Node>;
312
+
313
+ export const mx_worley_noise_vec2_0: (
314
+ p_immutable: NodeRepresentation,
315
+ jitter_immutable: NodeRepresentation,
316
+ metric_immutable: NodeRepresentation,
317
+ ) => ShaderNodeObject<Node>;
318
+
319
+ export const mx_worley_noise_vec3_0: (
320
+ p_immutable: NodeRepresentation,
321
+ jitter_immutable: NodeRepresentation,
322
+ metric_immutable: NodeRepresentation,
323
+ ) => ShaderNodeObject<Node>;
324
+
325
+ export const mx_worley_noise_float_1: (
326
+ p_immutable: NodeRepresentation,
327
+ jitter_immutable: NodeRepresentation,
328
+ metric_immutable: NodeRepresentation,
329
+ ) => ShaderNodeObject<Node>;
330
+
331
+ export const mx_worley_noise_float: (
332
+ p_immutable: NodeRepresentation,
333
+ jitter_immutable: NodeRepresentation,
334
+ metric_immutable: NodeRepresentation,
335
+ ) => ShaderNodeObject<Node>;
336
+
337
+ export const mx_worley_noise_vec2_1: (
338
+ p_immutable: NodeRepresentation,
339
+ jitter_immutable: NodeRepresentation,
340
+ metric_immutable: NodeRepresentation,
341
+ ) => ShaderNodeObject<Node>;
342
+
343
+ export const mx_worley_noise_vec2: (
344
+ p_immutable: NodeRepresentation,
345
+ jitter_immutable: NodeRepresentation,
346
+ metric_immutable: NodeRepresentation,
347
+ ) => ShaderNodeObject<Node>;
348
+
349
+ export const mx_worley_noise_vec3_1: (
350
+ p_immutable: NodeRepresentation,
351
+ jitter_immutable: NodeRepresentation,
352
+ metric_immutable: NodeRepresentation,
353
+ ) => ShaderNodeObject<Node>;
354
+
355
+ export const mx_worley_noise_vec3: (
356
+ p_immutable: NodeRepresentation,
357
+ jitter_immutable: NodeRepresentation,
358
+ metric_immutable: NodeRepresentation,
359
+ ) => ShaderNodeObject<Node>;
@@ -1,6 +1,7 @@
1
1
  import Node from "../core/Node.js";
2
2
  import TempNode from "../core/TempNode.js";
3
3
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
+ import OperatorNode from "./OperatorNode.js";
4
5
 
5
6
  export type MathNodeMethod1 =
6
7
  | typeof MathNode.RADIANS
@@ -32,7 +33,8 @@ export type MathNodeMethod1 =
32
33
  | typeof MathNode.RECIPROCAL
33
34
  | typeof MathNode.TRUNC
34
35
  | typeof MathNode.FWIDTH
35
- | typeof MathNode.BITCAST;
36
+ | typeof MathNode.BITCAST
37
+ | typeof MathNode.TRANSPOSE;
36
38
 
37
39
  export type MathNodeMethod2 =
38
40
  | typeof MathNode.ATAN2
@@ -93,6 +95,7 @@ export default class MathNode extends TempNode {
93
95
  static TRUNC: "trunc";
94
96
  static FWIDTH: "fwidth";
95
97
  static BITCAST: "bitcast";
98
+ static TRANSPOSE: "transpose";
96
99
 
97
100
  // 2 inputs
98
101
 
@@ -167,6 +170,7 @@ export const reciprocal: Unary;
167
170
  export const trunc: Unary;
168
171
  export const fwidth: Unary;
169
172
  export const bitcast: Unary;
173
+ export const transpose: Unary;
170
174
 
171
175
  type Binary = (a: NodeRepresentation, b: NodeRepresentation) => ShaderNodeObject<MathNode>;
172
176
 
@@ -201,6 +205,8 @@ export const refract: Ternary;
201
205
  export const smoothstep: Ternary;
202
206
  export const faceForward: Ternary;
203
207
 
208
+ export const rand: (uv: NodeRepresentation) => ShaderNodeObject<OperatorNode>;
209
+
204
210
  export const mixElement: Ternary;
205
211
  export const smoothstepElement: Ternary;
206
212
 
@@ -261,5 +267,7 @@ declare module "../shadernode/ShaderNode.js" {
261
267
  difference: typeof difference;
262
268
  saturate: typeof saturate;
263
269
  cbrt: typeof cbrt;
270
+ transpose: typeof transpose;
271
+ rand: typeof rand;
264
272
  }
265
273
  }
@@ -1,4 +1,4 @@
1
- import { Texture } from "three";
1
+ import { Texture } from "../../textures/Texture.js";
2
2
  import Node from "../core/Node.js";
3
3
  import TempNode from "../core/TempNode.js";
4
4
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
@@ -8,6 +8,7 @@ export default class DiscardNode extends CondNode {
8
8
 
9
9
  export const inlineDiscard: (condNode: NodeRepresentation) => ShaderNodeObject<DiscardNode>;
10
10
  export const discard: (condNode: NodeRepresentation) => ShaderNodeObject<Node>;
11
+ export const Return: (condNode: NodeRepresentation) => ShaderNodeObject<Node>;
11
12
 
12
13
  declare module "../shadernode/ShaderNode.js" {
13
14
  interface NodeElements {
@@ -1,13 +1,13 @@
1
- import { Texture } from "three";
1
+ import { Texture } from "../../textures/Texture.js";
2
2
  import TextureNode from "../accessors/TextureNode.js";
3
3
  import UniformNode from "../core/UniformNode.js";
4
4
  import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
5
5
 
6
6
  export default class MaxMipLevelNode extends UniformNode<0> {
7
- textureNode: TextureNode;
8
-
9
7
  constructor(textureNode: TextureNode);
10
8
 
9
+ get textureNode(): TextureNode;
10
+
11
11
  get texture(): Texture;
12
12
  }
13
13
 
@@ -0,0 +1,24 @@
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 type PackingNodeScope = typeof PackingNode.DIRECTION_TO_COLOR | typeof PackingNode.COLOR_TO_DIRECTION;
6
+
7
+ declare class PackingNode extends TempNode {
8
+ constructor(scope: PackingNodeScope, node: Node);
9
+
10
+ static DIRECTION_TO_COLOR: "directionToColor";
11
+ static COLOR_TO_DIRECTION: "colorToDirection";
12
+ }
13
+
14
+ export default PackingNode;
15
+
16
+ export const directionToColor: (node: NodeRepresentation) => ShaderNodeObject<PackingNode>;
17
+ export const colorToDirection: (node: NodeRepresentation) => ShaderNodeObject<PackingNode>;
18
+
19
+ declare module "../shadernode/ShaderNode.js" {
20
+ interface NodeElements {
21
+ directionToColor: typeof directionToColor;
22
+ colorToDirection: typeof colorToDirection;
23
+ }
24
+ }
@@ -0,0 +1,45 @@
1
+ import { TextureDataType } from "../../constants.js";
2
+ import { RenderTarget } from "../../core/RenderTarget.js";
3
+ import TextureNode from "../accessors/TextureNode.js";
4
+ import Node from "../core/Node.js";
5
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
6
+
7
+ export interface RTTNodeOptions {
8
+ type: TextureDataType;
9
+ }
10
+
11
+ declare class RTTNode extends TextureNode {
12
+ node: Node;
13
+ width: number | null;
14
+ height: number | null;
15
+
16
+ renderTarget: RenderTarget | null;
17
+
18
+ textureNeedsUpdate: boolean;
19
+ autoUpdate: boolean;
20
+
21
+ pixelRatio?: number;
22
+
23
+ constructor(node: Node, width?: number | null, height?: number | null, options?: RTTNodeOptions);
24
+
25
+ get autoSize(): boolean;
26
+
27
+ setSize(width: number | null, height: number | null): void;
28
+
29
+ setPixelRatio(pixelRatio: number): void;
30
+ }
31
+
32
+ export default RTTNode;
33
+
34
+ export const rtt: (
35
+ node: NodeRepresentation,
36
+ width?: number | null,
37
+ height?: number | null,
38
+ options?: RTTNodeOptions,
39
+ ) => ShaderNodeObject<RTTNode>;
40
+
41
+ declare module "../shadernode/ShaderNode.js" {
42
+ interface NodeElements {
43
+ toTexture: typeof rtt;
44
+ }
45
+ }
@@ -1,4 +1,6 @@
1
- import { Camera, Object3D, RenderTarget } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { Object3D } from "../../core/Object3D.js";
3
+ import { RenderTarget } from "../../core/RenderTarget.js";
2
4
  import TextureNode from "../accessors/TextureNode.js";
3
5
  import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
6