@types/three 0.168.0 → 0.170.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 (213) hide show
  1. three/README.md +1 -1
  2. three/build/three.webgpu.nodes.d.ts +1 -0
  3. three/build/three.webgpu.nodes.min.d.ts +1 -0
  4. three/examples/jsm/Addons.d.ts +3 -10
  5. three/examples/jsm/animation/MMDAnimationHelper.d.ts +4 -0
  6. three/examples/jsm/animation/MMDPhysics.d.ts +4 -0
  7. three/examples/jsm/controls/ArcballControls.d.ts +1 -1
  8. three/examples/jsm/controls/DragControls.d.ts +0 -15
  9. three/examples/jsm/controls/TransformControls.d.ts +195 -24
  10. three/examples/jsm/csm/CSMFrustum.d.ts +8 -2
  11. three/examples/jsm/csm/CSMHelper.d.ts +2 -1
  12. three/examples/jsm/csm/CSMShadowNode.d.ts +46 -0
  13. three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
  14. three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
  15. three/examples/jsm/exporters/GLTFExporter.d.ts +20 -3
  16. three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
  17. three/examples/jsm/exporters/MMDExporter.d.ts +4 -0
  18. three/examples/jsm/exporters/USDZExporter.d.ts +4 -0
  19. three/examples/jsm/geometries/DecalGeometry.d.ts +9 -3
  20. three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
  21. three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
  22. three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
  23. three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
  24. three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
  25. three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
  26. three/examples/jsm/lines/Line2.d.ts +15 -1
  27. three/examples/jsm/lines/LineGeometry.d.ts +18 -1
  28. three/examples/jsm/lines/LineMaterial.d.ts +65 -12
  29. three/examples/jsm/lines/LineSegments2.d.ts +25 -2
  30. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
  31. three/examples/jsm/lines/Wireframe.d.ts +5 -2
  32. three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
  33. three/examples/jsm/lines/webgpu/Wireframe.d.ts +13 -0
  34. three/examples/jsm/loaders/DRACOLoader.d.ts +6 -0
  35. three/examples/jsm/loaders/EXRLoader.d.ts +2 -2
  36. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -2
  37. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -0
  38. three/examples/jsm/loaders/LDrawLoader.d.ts +10 -0
  39. three/examples/jsm/loaders/MMDLoader.d.ts +4 -0
  40. three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts +9 -0
  41. three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +9 -0
  42. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -1
  43. three/examples/jsm/math/ColorSpaces.d.ts +11 -0
  44. three/examples/jsm/misc/ProgressiveLightMap.d.ts +8 -10
  45. three/examples/jsm/misc/ProgressiveLightMapGPU.d.ts +27 -0
  46. three/examples/jsm/modifiers/CurveModifier.d.ts +7 -3
  47. three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
  48. three/examples/jsm/objects/Lensflare.d.ts +13 -9
  49. three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
  50. three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
  51. three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +1 -5
  52. three/{src/nodes → examples/jsm/tsl}/display/AnaglyphPassNode.d.ts +2 -3
  53. three/{src/nodes → examples/jsm/tsl}/display/AnamorphicNode.d.ts +2 -4
  54. three/examples/jsm/tsl/display/BleachBypass.d.ts +3 -0
  55. three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +1 -5
  56. three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +2 -6
  57. three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +1 -5
  58. three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
  59. three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +1 -3
  60. three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +1 -3
  61. three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +2 -8
  62. three/{src/nodes → examples/jsm/tsl}/display/GaussianBlurNode.d.ts +13 -5
  63. three/examples/jsm/tsl/display/LensflareNode.d.ts +35 -0
  64. three/{src/nodes → examples/jsm/tsl}/display/Lut3DNode.d.ts +2 -6
  65. three/{src/nodes → examples/jsm/tsl}/display/MotionBlur.d.ts +1 -2
  66. three/examples/jsm/tsl/display/OutlineNode.d.ts +32 -0
  67. three/{src/nodes → examples/jsm/tsl}/display/ParallaxBarrierPassNode.d.ts +2 -3
  68. three/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.d.ts +2 -5
  69. three/{src/nodes → examples/jsm/tsl}/display/RGBShiftNode.d.ts +1 -4
  70. three/examples/jsm/tsl/display/SMAANode.d.ts +17 -0
  71. three/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.d.ts +2 -7
  72. three/examples/jsm/tsl/display/SSRNode.d.ts +38 -0
  73. three/examples/jsm/tsl/display/Sepia.d.ts +3 -0
  74. three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +1 -3
  75. three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +2 -5
  76. three/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.d.ts +2 -5
  77. three/examples/jsm/tsl/display/TRAAPassNode.d.ts +15 -0
  78. three/{src/nodes → examples/jsm/tsl}/display/TransitionNode.d.ts +1 -5
  79. three/examples/jsm/tsl/display/hashBlur.d.ts +7 -0
  80. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +22 -0
  81. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
  82. three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
  83. three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
  84. three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
  85. three/examples/jsm/utils/WebGPUTextureUtils.d.ts +3 -0
  86. three/package.json +4 -3
  87. three/src/Three.WebGPU.Nodes.d.ts +205 -0
  88. three/src/Three.WebGPU.d.ts +7 -2
  89. three/src/Three.d.ts +2 -7
  90. three/src/audio/Audio.d.ts +4 -1
  91. three/src/constants.d.ts +1 -9
  92. three/src/core/BufferAttribute.d.ts +0 -15
  93. three/src/core/BufferGeometry.d.ts +13 -2
  94. three/src/core/InterleavedBuffer.d.ts +0 -12
  95. three/src/core/Object3D.d.ts +1 -1
  96. three/src/core/Raycaster.d.ts +2 -1
  97. three/src/core/RenderTarget.d.ts +1 -2
  98. three/src/extras/Controls.d.ts +3 -3
  99. three/src/loaders/FileLoader.d.ts +3 -3
  100. three/src/loaders/MaterialLoader.d.ts +2 -0
  101. three/src/loaders/nodes/NodeLoader.d.ts +5 -0
  102. three/src/loaders/nodes/NodeMaterialLoader.d.ts +3 -0
  103. three/src/loaders/nodes/NodeObjectLoader.d.ts +12 -0
  104. three/src/materials/LineBasicMaterial.d.ts +0 -5
  105. three/src/materials/LineDashedMaterial.d.ts +0 -5
  106. three/src/materials/Material.d.ts +4 -6
  107. three/src/materials/MeshBasicMaterial.d.ts +0 -5
  108. three/src/materials/MeshDepthMaterial.d.ts +0 -5
  109. three/src/materials/MeshDistanceMaterial.d.ts +0 -5
  110. three/src/materials/MeshLambertMaterial.d.ts +0 -5
  111. three/src/materials/MeshMatcapMaterial.d.ts +0 -5
  112. three/src/materials/MeshNormalMaterial.d.ts +0 -5
  113. three/src/materials/MeshPhongMaterial.d.ts +0 -5
  114. three/src/materials/MeshPhysicalMaterial.d.ts +0 -5
  115. three/src/materials/MeshStandardMaterial.d.ts +0 -5
  116. three/src/materials/MeshToonMaterial.d.ts +0 -5
  117. three/src/materials/PointsMaterial.d.ts +0 -5
  118. three/src/materials/RawShaderMaterial.d.ts +0 -2
  119. three/src/materials/ShaderMaterial.d.ts +0 -5
  120. three/src/materials/ShadowMaterial.d.ts +0 -5
  121. three/src/materials/SpriteMaterial.d.ts +0 -5
  122. three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +2 -2
  123. three/src/materials/nodes/NodeMaterial.d.ts +4 -4
  124. three/src/materials/nodes/NodeMaterials.d.ts +19 -16
  125. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +96 -0
  126. three/src/math/Color.d.ts +39 -22
  127. three/src/math/ColorManagement.d.ts +24 -24
  128. three/src/math/Quaternion.d.ts +4 -3
  129. three/src/math/Triangle.d.ts +24 -0
  130. three/src/math/Vector4.d.ts +2 -0
  131. three/src/nodes/Nodes.d.ts +3 -23
  132. three/src/nodes/TSL.d.ts +75 -187
  133. three/src/nodes/accessors/BufferAttributeNode.d.ts +1 -0
  134. three/src/nodes/accessors/Camera.d.ts +0 -1
  135. three/src/nodes/accessors/MaterialNode.d.ts +0 -1
  136. three/src/nodes/accessors/ModelNode.d.ts +7 -3
  137. three/src/nodes/accessors/Normal.d.ts +6 -0
  138. three/src/nodes/accessors/Object3DNode.d.ts +1 -5
  139. three/src/nodes/accessors/SceneNode.d.ts +2 -0
  140. three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
  141. three/src/nodes/accessors/VelocityNode.d.ts +6 -1
  142. three/src/nodes/code/ScriptableNode.d.ts +1 -1
  143. three/src/nodes/core/Node.d.ts +3 -12
  144. three/src/nodes/core/NodeUtils.d.ts +5 -1
  145. three/src/nodes/core/StackNode.d.ts +4 -4
  146. three/src/nodes/core/StructTypeNode.d.ts +1 -0
  147. three/src/nodes/core/UniformNode.d.ts +1 -0
  148. three/src/nodes/core/VarNode.d.ts +12 -1
  149. three/src/nodes/display/ColorAdjustment.d.ts +29 -0
  150. three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -2
  151. three/src/nodes/display/ColorSpaceNode.d.ts +33 -8
  152. three/src/nodes/display/RenderOutputNode.d.ts +4 -4
  153. three/src/nodes/display/ScreenNode.d.ts +48 -0
  154. three/src/nodes/display/ToneMappingFunctions.d.ts +6 -6
  155. three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
  156. three/src/nodes/display/ViewportDepthNode.d.ts +2 -0
  157. three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
  158. three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
  159. three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
  160. three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
  161. three/src/nodes/lighting/LightsNode.d.ts +7 -2
  162. three/src/nodes/lighting/PointLightNode.d.ts +11 -1
  163. three/src/nodes/lighting/ShadowNode.d.ts +12 -0
  164. three/src/nodes/utils/Discard.d.ts +1 -1
  165. three/src/nodes/utils/Oscillators.d.ts +7 -0
  166. three/src/nodes/utils/PostProcessingUtils.d.ts +45 -0
  167. three/src/nodes/utils/ReflectorNode.d.ts +17 -4
  168. three/src/nodes/utils/Timer.d.ts +21 -0
  169. three/src/objects/BatchedMesh.d.ts +78 -0
  170. three/src/objects/Group.d.ts +0 -6
  171. three/src/objects/LOD.d.ts +7 -0
  172. three/src/renderers/WebGLRenderer.d.ts +24 -23
  173. three/src/renderers/common/BundleGroup.d.ts +10 -0
  174. three/src/renderers/common/ClippingContext.d.ts +1 -1
  175. three/src/renderers/common/Constants.d.ts +2 -1
  176. three/src/renderers/common/Geometries.d.ts +1 -0
  177. three/src/renderers/common/IndirectStorageBufferAttribute.d.ts +10 -0
  178. three/src/renderers/common/Lighting.d.ts +15 -0
  179. three/src/renderers/common/PostProcessingUtils.d.ts +66 -0
  180. three/src/renderers/common/RenderBundles.d.ts +3 -3
  181. three/src/renderers/common/RenderContext.d.ts +2 -2
  182. three/src/renderers/common/RenderList.d.ts +7 -3
  183. three/src/renderers/common/RenderLists.d.ts +3 -1
  184. three/src/renderers/common/RenderObject.d.ts +20 -1
  185. three/src/renderers/common/Renderer.d.ts +43 -10
  186. three/src/renderers/common/extras/PMREMGenerator.d.ts +5 -1
  187. three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
  188. three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -7
  189. three/src/renderers/common/nodes/Nodes.d.ts +8 -0
  190. three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
  191. three/src/renderers/webgl/WebGLPrograms.d.ts +4 -10
  192. three/src/renderers/webgl/WebGLState.d.ts +13 -10
  193. three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
  194. three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
  195. three/src/renderers/webgpu/WebGPURenderer.d.ts +7 -3
  196. three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
  197. three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
  198. three/src/textures/CompressedTexture.d.ts +1 -2
  199. three/src/textures/CubeTexture.d.ts +1 -2
  200. three/src/textures/DataTexture.d.ts +1 -2
  201. three/src/textures/Texture.d.ts +3 -4
  202. three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
  203. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
  204. three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
  205. three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
  206. three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
  207. three/src/nodes/display/BleachBypass.d.ts +0 -4
  208. three/src/nodes/display/Sepia.d.ts +0 -4
  209. three/src/nodes/display/ViewportNode.d.ts +0 -38
  210. three/src/nodes/utils/OscNode.d.ts +0 -25
  211. three/src/nodes/utils/TimerNode.d.ts +0 -25
  212. three/src/renderers/common/StandardRenderer.d.ts +0 -12
  213. /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
@@ -17,7 +17,7 @@ export {
17
17
  LightingModelReflectedLight,
18
18
  } from "./core/LightingModel.js";
19
19
  export { default as MRTNode } from "./core/MRTNode.js";
20
- export { default as Node, NodeJSONInputData, NodeJSONIntermediateOutputData, registerNode } from "./core/Node.js";
20
+ export { default as Node, NodeJSONInputData, NodeJSONIntermediateOutputData } from "./core/Node.js";
21
21
  export { default as NodeAttribute } from "./core/NodeAttribute.js";
22
22
  export {
23
23
  BuildStageOption,
@@ -55,7 +55,6 @@ export { default as JoinNode } from "./utils/JoinNode.js";
55
55
  export { default as LoopNode } from "./utils/LoopNode.js";
56
56
  export { default as MatcapUVNode } from "./utils/MatcapUVNode.js";
57
57
  export { default as MaxMipLevelNode } from "./utils/MaxMipLevelNode.js";
58
- export { default as OscNode, OscNodeMethod } from "./utils/OscNode.js";
59
58
  export { default as ReflectorNode, ReflectorNodeParameters } from "./utils/ReflectorNode.js";
60
59
  export { default as RemapNode } from "./utils/RemapNode.js";
61
60
  export { default as RotateNode } from "./utils/RotateNode.js";
@@ -64,7 +63,6 @@ export { default as SetNode } from "./utils/SetNode.js";
64
63
  export { default as SplitNode } from "./utils/SplitNode.js";
65
64
  export { default as SpriteSheetUVNode } from "./utils/SpriteSheetUVNode.js";
66
65
  export { default as StorageArrayElementNode } from "./utils/StorageArrayElementNode.js";
67
- export { default as TimerNode, TimerNodeScope } from "./utils/TimerNode.js";
68
66
  export { default as TriplanarTexturesNode } from "./utils/TriplanarTexturesNode.js";
69
67
 
70
68
  // accessors
@@ -94,36 +92,17 @@ export { default as UserDataNode, NodeUserData } from "./accessors/UserDataNode.
94
92
  export { default as VertexColorNode } from "./accessors/VertexColorNode.js";
95
93
 
96
94
  // display
97
- export { default as AfterImageNode } from "./display/AfterImageNode.js";
98
- export { default as AnaglyphPassNode } from "./display/AnaglyphPassNode.js";
99
- export { default as AnamorphicNode } from "./display/AnamorphicNode.js";
100
- export { default as BloomNode } from "./display/BloomNode.js";
101
95
  export { default as BumpMapNode } from "./display/BumpMapNode.js";
102
96
  export { default as ColorSpaceNode } from "./display/ColorSpaceNode.js";
103
- export { default as DenoiseNode } from "./display/DenoiseNode.js";
104
- export { default as DepthOfFieldNode } from "./display/DepthOfFieldNode.js";
105
- export { default as DotScreenNode } from "./display/DotScreenNode.js";
106
- export { default as FilmNode } from "./display/FilmNode.js";
107
97
  export { default as FrontFacingNode } from "./display/FrontFacingNode.js";
108
- export { default as FXAANode } from "./display/FXAANode.js";
109
- export { default as GaussianBlurNode } from "./display/GaussianBlurNode.js";
110
- export { default as GTAONode } from "./display/GTAONode.js";
111
- export { default as Lut3DNode } from "./display/Lut3DNode.js";
112
98
  export { default as NormalMapNode } from "./display/NormalMapNode.js";
113
- export { default as ParallaxBarrierPassNode } from "./display/ParallaxBarrierPassNode.js";
114
99
  export { default as PassNode, PassNodeScope } from "./display/PassNode.js";
115
- export { default as PixelationPassNode } from "./display/PixelationPassNode.js";
116
100
  export { default as PosterizeNode } from "./display/PosterizeNode.js";
117
101
  export { default as RenderOutputNode } from "./display/RenderOutputNode.js";
118
- export { default as RGBShiftNode } from "./display/RGBShiftNode.js";
119
- export { default as SobelOperatorNode } from "./display/SobelOperatorNode.js";
120
- export { default as SSAAPassNode } from "./display/SSAAPassNode.js";
121
- export { default as StereoPassNode } from "./display/StereoPassNode.js";
102
+ export { default as ScreenNode, ScreenNodeScope } from "./display/ScreenNode.js";
122
103
  export { default as ToneMappingNode } from "./display/ToneMappingNode.js";
123
- export { default as TransitionNode } from "./display/TransitionNode.js";
124
104
  export { default as ViewportDepthNode, ViewportDepthNodeScope } from "./display/ViewportDepthNode.js";
125
105
  export { default as ViewportDepthTextureNode } from "./display/ViewportDepthTextureNode.js";
126
- export { default as ViewportNode, ViewportNodeScope } from "./display/ViewportNode.js";
127
106
  export { default as ViewportSharedTextureNode } from "./display/ViewportSharedTextureNode.js";
128
107
  export { default as ViewportTextureNode } from "./display/ViewportTextureNode.js";
129
108
 
@@ -163,6 +142,7 @@ export { default as LightProbeNode } from "./lighting/LightProbeNode.js";
163
142
  export { default as LightsNode } from "./lighting/LightsNode.js";
164
143
  export { default as PointLightNode } from "./lighting/PointLightNode.js";
165
144
  export { default as RectAreaLightNode, RectAreaLightTexturesLib } from "./lighting/RectAreaLightNode.js";
145
+ export { default as ShadowNode } from "./lighting/ShadowNode.js";
166
146
  export { default as SpotLightNode } from "./lighting/SpotLightNode.js";
167
147
 
168
148
  // pmrem
three/src/nodes/TSL.d.ts CHANGED
@@ -23,32 +23,22 @@ export * from "./math/MathUtils.js";
23
23
  export * from "./math/TriNoise3D.js";
24
24
 
25
25
  // utils
26
- export { default as EquirectUVNode, equirectUV } from "./utils/EquirectUVNode.js";
27
- export { default as FunctionOverloadingNode, overloadingFn } from "./utils/FunctionOverloadingNode.js";
28
- export { Break, Continue, default as LoopNode, Loop } from "./utils/LoopNode.js";
29
- export { default as MatcapUVNode, matcapUV } from "./utils/MatcapUVNode.js";
30
- export { default as MaxMipLevelNode, maxMipLevel } from "./utils/MaxMipLevelNode.js";
31
- export { default as OscNode, OscNodeMethod, oscSawtooth, oscSine, oscSquare, oscTriangle } from "./utils/OscNode.js";
26
+ export * from "./utils/EquirectUVNode.js";
27
+ export * from "./utils/FunctionOverloadingNode.js";
28
+ export * from "./utils/LoopNode.js";
29
+ export * from "./utils/MatcapUVNode.js";
30
+ export * from "./utils/MaxMipLevelNode.js";
31
+ export * from "./utils/Oscillators.js";
32
32
  export * from "./utils/Packing.js";
33
- export { default as ReflectorNode, reflector, ReflectorNodeParameters } from "./utils/ReflectorNode.js";
34
- export { default as RemapNode, remap, remapClamp } from "./utils/RemapNode.js";
35
- export { default as RotateNode, rotate } from "./utils/RotateNode.js";
36
- export { convertToTexture, default as RTTNode, rtt, RTTNodeOptions } from "./utils/RTTNode.js";
37
- export { default as SpriteSheetUVNode, spritesheetUV } from "./utils/SpriteSheetUVNode.js";
33
+ export * from "./utils/PostProcessingUtils.js";
34
+ export * from "./utils/ReflectorNode.js";
35
+ export * from "./utils/RemapNode.js";
36
+ export * from "./utils/RotateNode.js";
37
+ export * from "./utils/RTTNode.js";
38
+ export * from "./utils/SpriteSheetUVNode.js";
38
39
  export * from "./utils/SpriteUtils.js";
39
- export {
40
- default as TimerNode,
41
- frameId,
42
- timerDelta,
43
- timerGlobal,
44
- timerLocal,
45
- TimerNodeScope,
46
- } from "./utils/TimerNode.js";
47
- export {
48
- default as TriplanarTexturesNode,
49
- triplanarTexture,
50
- triplanarTextures,
51
- } from "./utils/TriplanarTexturesNode.js";
40
+ export * from "./utils/Timer.js";
41
+ export * from "./utils/TriplanarTexturesNode.js";
52
42
  export * from "./utils/UVUtils.js";
53
43
  export * from "./utils/ViewportUtils.js";
54
44
 
@@ -57,195 +47,91 @@ export * from "./tsl/TSLBase.js";
57
47
 
58
48
  // accessors
59
49
  export * from "./accessors/AccessorsUtils.js";
60
- export { batch, default as BatchNode } from "./accessors/BatchNode.js";
50
+ export * from "./accessors/BatchNode.js";
61
51
  export * from "./accessors/Bitangent.js";
62
- export {
63
- bufferAttribute,
64
- default as BufferAttributeNode,
65
- dynamicBufferAttribute,
66
- instancedBufferAttribute,
67
- instancedDynamicBufferAttribute,
68
- } from "./accessors/BufferAttributeNode.js";
69
- export { buffer, default as BufferNode } from "./accessors/BufferNode.js";
52
+ export * from "./accessors/BufferAttributeNode.js";
53
+ export * from "./accessors/BufferNode.js";
70
54
  export * from "./accessors/Camera.js";
71
- export { cubeTexture, default as CubeTextureNode } from "./accessors/CubeTextureNode.js";
72
- export { default as InstanceNode, instance } from "./accessors/InstanceNode.js";
73
- export {
74
- default as MaterialNode,
75
- materialAlphaTest,
76
- materialAnisotropy,
77
- materialAnisotropyVector,
78
- materialAOMap,
79
- materialClearcoat,
80
- materialClearcoatNormal,
81
- materialClearcoatRoughness,
82
- materialColor,
83
- materialDispersion,
84
- materialEmissive,
85
- materialIridescence,
86
- materialIridescenceIOR,
87
- materialIridescenceThickness,
88
- materialLightMap,
89
- materialLineDashOffset,
90
- materialLineDashSize,
91
- materialLineGapSize,
92
- materialLineScale,
93
- materialLineWidth,
94
- materialMetalness,
95
- MaterialNodeScope,
96
- materialNormal,
97
- materialOpacity,
98
- materialPointWidth,
99
- materialReflectivity,
100
- materialRotation,
101
- materialRoughness,
102
- materialSheen,
103
- materialSheenRoughness,
104
- materialShininess,
105
- materialSpecular,
106
- materialSpecularStrength,
107
- } from "./accessors/MaterialNode.js";
55
+ export * from "./accessors/CubeTextureNode.js";
56
+ export * from "./accessors/InstanceNode.js";
57
+ export * from "./accessors/MaterialNode.js";
108
58
  export * from "./accessors/MaterialProperties.js";
109
- export { default as MaterialReferenceNode, materialReference } from "./accessors/MaterialReferenceNode.js";
110
- export {
111
- default as ModelNode,
112
- modelDirection,
113
- modelNormalMatrix,
114
- modelPosition,
115
- modelScale,
116
- modelViewMatrix,
117
- modelViewPosition,
118
- modelWorldMatrix,
119
- modelWorldMatrixInverse,
120
- } from "./accessors/ModelNode.js";
121
- export { default as ModelViewProjectionNode, modelViewProjection } from "./accessors/ModelViewProjectionNode.js";
122
- export { default as MorphNode, morphReference } from "./accessors/MorphNode.js";
59
+ export * from "./accessors/MaterialReferenceNode.js";
60
+ export * from "./accessors/ModelNode.js";
61
+ export * from "./accessors/ModelViewProjectionNode.js";
62
+ export * from "./accessors/MorphNode.js";
123
63
  export * from "./accessors/Normal.js";
124
- export {
125
- default as Object3DNode,
126
- objectDirection,
127
- objectNormalMatrix,
128
- objectPosition,
129
- objectScale,
130
- objectViewMatrix,
131
- objectViewPosition,
132
- objectWorldMatrix,
133
- } from "./accessors/Object3DNode.js";
134
- export { default as PointUVNode, pointUV } from "./accessors/PointUVNode.js";
64
+ export * from "./accessors/Object3DNode.js";
65
+ export * from "./accessors/PointUVNode.js";
135
66
  export * from "./accessors/Position.js";
136
- export { default as ReferenceNode, reference, referenceBuffer } from "./accessors/ReferenceNode.js";
67
+ export * from "./accessors/ReferenceNode.js";
137
68
  export * from "./accessors/ReflectVector.js";
138
- export { default as RendererReferenceNode, rendererReference } from "./accessors/RendererReferenceNode.js";
139
- export {
140
- backgroundBlurriness,
141
- backgroundIntensity,
142
- default as SceneNode,
143
- SceneNodeScope,
144
- } from "./accessors/SceneNode.js";
145
- export { default as SkinningNode, skinning, skinningReference } from "./accessors/SkinningNode.js";
146
- export { default as StorageBufferNode, storage, storageObject } from "./accessors/StorageBufferNode.js";
147
- export { default as StorageTextureNode, storageTexture, textureStore } from "./accessors/StorageTextureNode.js";
69
+ export * from "./accessors/RendererReferenceNode.js";
70
+ export * from "./accessors/SceneNode.js";
71
+ export * from "./accessors/SkinningNode.js";
72
+ export * from "./accessors/StorageBufferNode.js";
73
+ export * from "./accessors/StorageTextureNode.js";
148
74
  export * from "./accessors/Tangent.js";
149
- export { default as Texture3DNode, texture3D } from "./accessors/Texture3DNode.js";
75
+ export * from "./accessors/Texture3DNode.js";
150
76
  export * from "./accessors/TextureBicubic.js";
151
- export { default as TextureNode, /*textureLevel,*/ sampler, texture, textureLoad } from "./accessors/TextureNode.js";
152
- export { default as TextureSizeNode, textureSize } from "./accessors/TextureSizeNode.js";
153
- export { default as UniformArrayNode, uniformArray } from "./accessors/UniformArrayNode.js";
154
- export { default as UserDataNode, NodeUserData, userData } from "./accessors/UserDataNode.js";
77
+ export * from "./accessors/TextureNode.js";
78
+ export * from "./accessors/TextureSizeNode.js";
79
+ export * from "./accessors/UniformArrayNode.js";
80
+ export * from "./accessors/UserDataNode.js";
155
81
  export * from "./accessors/UV.js";
156
82
  export * from "./accessors/VelocityNode.js";
157
- export { default as VertexColorNode, vertexColor } from "./accessors/VertexColorNode.js";
83
+ export * from "./accessors/VertexColorNode.js";
158
84
 
159
85
  // display
160
- export { afterImage, default as AfterImageNode } from "./display/AfterImageNode.js";
161
- export { anaglyphPass, default as AnaglyphPassNode } from "./display/AnaglyphPassNode.js";
162
- export { anamorphic, default as AnamorphicNode } from "./display/AnamorphicNode.js";
163
- export { bleach } from "./display/BleachBypass.js";
164
86
  export * from "./display/BlendMode.js";
165
- export { bloom, default as BloomNode } from "./display/BloomNode.js";
166
- export { bumpMap, default as BumpMapNode } from "./display/BumpMapNode.js";
87
+ export * from "./display/BumpMapNode.js";
167
88
  export * from "./display/ColorAdjustment.js";
168
- export { default as ColorSpaceNode, toOutputColorSpace, toWorkingColorSpace } from "./display/ColorSpaceNode.js";
169
- export { default as DenoiseNode, denoise } from "./display/DenoiseNode.js";
170
- export { default as DepthOfFieldNode, dof } from "./display/DepthOfFieldNode.js";
171
- export { default as DotScreenNode, dotScreen } from "./display/DotScreenNode.js";
172
- export { default as FilmNode, film } from "./display/FilmNode.js";
173
- export { default as FrontFacingNode, faceDirection, frontFacing } from "./display/FrontFacingNode.js";
174
- export { default as FXAANode, fxaa } from "./display/FXAANode.js";
175
- export { default as GaussianBlurNode, gaussianBlur } from "./display/GaussianBlurNode.js";
176
- export { ao, default as GTAONode } from "./display/GTAONode.js";
177
- export { default as Lut3DNode, lut3D } from "./display/Lut3DNode.js";
178
- export * from "./display/MotionBlur.js";
179
- export { default as NormalMapNode, normalMap } from "./display/NormalMapNode.js";
180
- export { default as ParallaxBarrierPassNode, parallaxBarrierPass } from "./display/ParallaxBarrierPassNode.js";
181
- export { default as PixelationPassNode, pixelationPass } from "./display/PixelationPassNode.js";
182
- export { default as PosterizeNode, posterize } from "./display/PosterizeNode.js";
183
- export { default as RenderOutputNode, renderOutput } from "./display/RenderOutputNode.js";
184
- export { default as RGBShiftNode, rgbShift } from "./display/RGBShiftNode.js";
185
- export { sepia } from "./display/Sepia.js";
186
- export { default as SobelOperatorNode, sobel } from "./display/SobelOperatorNode.js";
187
- export { default as SSAAPassNode, ssaaPass } from "./display/SSAAPassNode.js";
188
- export { default as StereoPassNode, stereoPass } from "./display/StereoPassNode.js";
189
- export { default as ToneMappingNode, toneMapping } from "./display/ToneMappingNode.js";
190
- export { default as TransitionNode, transition } from "./display/TransitionNode.js";
191
- export {
192
- default as ViewportDepthNode,
193
- depth,
194
- linearDepth,
195
- orthographicDepthToViewZ,
196
- perspectiveDepthToViewZ,
197
- viewportLinearDepth,
198
- viewZToOrthographicDepth,
199
- viewZToPerspectiveDepth,
200
- } from "./display/ViewportDepthNode.js";
201
- export { default as ViewportDepthTextureNode, viewportDepthTexture } from "./display/ViewportDepthTextureNode.js";
202
- export {
203
- default as ViewportNode,
204
- viewport,
205
- viewportBottomLeft,
206
- viewportCoordinate,
207
- ViewportNodeScope,
208
- viewportResolution,
209
- viewportTopLeft,
210
- viewportUV,
211
- } from "./display/ViewportNode.js";
212
- export { default as ViewportSharedTextureNode, viewportSharedTexture } from "./display/ViewportSharedTextureNode.js";
213
- export { default as ViewportTextureNode, viewportMipTexture, viewportTexture } from "./display/ViewportTextureNode.js";
214
-
215
- export { default as PassNode, depthPass, pass, PassNodeScope, passTexture } from "./display/PassNode.js";
216
-
217
- import * as ColorSpaceFunctions from "./display/ColorSpaceFunctions.js";
218
- export { ColorSpaceFunctions };
219
-
220
- import * as ToneMappingFunctions from "./display/ToneMappingFunctions.js";
221
- export { ToneMappingFunctions };
89
+ export * from "./display/ColorSpaceNode.js";
90
+ export * from "./display/FrontFacingNode.js";
91
+ export * from "./display/NormalMapNode.js";
92
+ export * from "./display/PosterizeNode.js";
93
+ export * from "./display/RenderOutputNode.js";
94
+ export * from "./display/ScreenNode.js";
95
+ export * from "./display/ToneMappingNode.js";
96
+ export * from "./display/ToonOutlinePassNode.js";
97
+ export * from "./display/ViewportDepthNode.js";
98
+ export * from "./display/ViewportDepthTextureNode.js";
99
+ export * from "./display/ViewportSharedTextureNode.js";
100
+ export * from "./display/ViewportTextureNode.js";
101
+
102
+ export * from "./display/PassNode.js";
103
+
104
+ export * from "./display/ColorSpaceFunctions.js";
105
+ export * from "./display/ToneMappingFunctions.js";
222
106
 
223
107
  // code
224
- export { code, CodeNodeInclude, default as CodeNode, glsl, js, wgsl } from "./code/CodeNode.js";
225
- export { default as ExpressionNode, expression } from "./code/ExpressionNode.js";
226
- export { call, default as FunctionCallNode } from "./code/FunctionCallNode.js";
227
- export { default as FunctionNode, glslFn, wgslFn } from "./code/FunctionNode.js";
228
- export { default as ScriptableNode, global, scriptable } from "./code/ScriptableNode.js";
229
- export { default as ScriptableValueNode, scriptableValue } from "./code/ScriptableValueNode.js";
108
+ export * from "./code/CodeNode.js";
109
+ export * from "./code/ExpressionNode.js";
110
+ export * from "./code/FunctionCallNode.js";
111
+ export * from "./code/FunctionNode.js";
112
+ export * from "./code/ScriptableNode.js";
113
+ export * from "./code/ScriptableValueNode.js";
230
114
 
231
115
  // fog
232
- export { default as FogExp2Node, densityFog } from "./fog/FogExp2Node.js";
233
- export { default as FogNode, fog } from "./fog/FogNode.js";
234
- export { default as FogRangeNode, rangeFog } from "./fog/FogRangeNode.js";
116
+ export * from "./fog/FogExp2Node.js";
117
+ export * from "./fog/FogNode.js";
118
+ export * from "./fog/FogRangeNode.js";
235
119
 
236
120
  // geometry
237
- export { default as RangeNode, range, RangeModeBound } from "./geometry/RangeNode.js";
121
+ export * from "./geometry/RangeNode.js";
238
122
 
239
123
  // gpgpu
240
- export { compute, default as ComputeNode } from "./gpgpu/ComputeNode.js";
124
+ export * from "./gpgpu/ComputeNode.js";
241
125
 
242
126
  // lighting
243
- export { default as LightingContextNode, lightingContext } from "./lighting/LightingContextNode.js";
244
- export { default as LightNode, LightNodeScope, lightTargetDirection } from "./lighting/LightNode.js";
245
- export { default as LightsNode, lights } from "./lighting/LightsNode.js";
127
+ export * from "./lighting/LightingContextNode.js";
128
+ export * from "./lighting/LightNode.js";
129
+ export * from "./lighting/LightsNode.js";
130
+ export * from "./lighting/PointLightNode.js";
131
+ export * from "./lighting/ShadowNode.js";
246
132
 
247
133
  // pmrem
248
- export { default as PMREMNode, pmremTexture } from "./pmrem/PMREMNode.js";
134
+ export * from "./pmrem/PMREMNode.js";
249
135
  export * from "./pmrem/PMREMUtils.js";
250
136
 
251
137
  // procedural
@@ -266,4 +152,6 @@ export { default as V_GGX_SmithCorrelated } from "./functions/BSDF/V_GGX_SmithCo
266
152
  export * from "./lighting/LightUtils.js";
267
153
 
268
154
  export { default as getGeometryRoughness } from "./functions/material/getGeometryRoughness.js";
155
+ export { default as getParallaxCorrectNormal } from "./functions/material/getParallaxCorrectNormal.js";
269
156
  export { default as getRoughness } from "./functions/material/getRoughness.js";
157
+ export { default as getShIrradianceAt } from "./functions/material/getShIrradianceAt.js";
@@ -5,6 +5,7 @@ import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribut
5
5
  import InputNode from "../core/InputNode.js";
6
6
  import NodeBuilder from "../core/NodeBuilder.js";
7
7
  declare class BufferAttributeNode extends InputNode<TypedArray | InterleavedBuffer | BufferAttribute> {
8
+ static get type(): string;
8
9
  readonly isBufferNode: true;
9
10
  bufferType: string | null;
10
11
  bufferStride: number;
@@ -6,7 +6,6 @@ import { ShaderNodeObject } from "../tsl/TSLCore.js";
6
6
 
7
7
  export const cameraNear: ShaderNodeObject<UniformNode<number>>;
8
8
  export const cameraFar: ShaderNodeObject<UniformNode<number>>;
9
- export const cameraLogDepth: ShaderNodeObject<UniformNode<number>>;
10
9
  export const cameraProjectionMatrix: ShaderNodeObject<UniformNode<Matrix4>>;
11
10
  export const cameraProjectionMatrixInverse: ShaderNodeObject<UniformNode<Matrix4>>;
12
11
  export const cameraViewMatrix: ShaderNodeObject<UniformNode<Matrix4>>;
@@ -126,5 +126,4 @@ export const materialPointWidth: ShaderNodeObject<MaterialNode>;
126
126
  export const materialDispersion: ShaderNodeObject<MaterialNode>;
127
127
  export const materialLightMap: ShaderNodeObject<MaterialNode>;
128
128
  export const materialAOMap: ShaderNodeObject<MaterialNode>;
129
- export const materialRefractionRatio: ShaderNodeObject<MaterialNode>;
130
129
  export const materialAnisotropyVector: ShaderNodeObject<UniformNode<Vector2>>;
@@ -1,4 +1,5 @@
1
1
  import { Matrix4 } from "../../math/Matrix4.js";
2
+ import Node from "../core/Node.js";
2
3
  import { UniformNode } from "../Nodes.js";
3
4
  import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
5
  import Object3DNode from "./Object3DNode.js";
@@ -7,14 +8,17 @@ import Object3DNode from "./Object3DNode.js";
7
8
  * Similar to {@link Object3DNode} but the object comes from {@link NodeFrame}
8
9
  */
9
10
  export default class ModelNode extends Object3DNode {
10
- constructor(scope?: string);
11
+ constructor(scope: string);
11
12
  }
12
13
 
13
14
  export const modelDirection: ShaderNodeObject<ModelNode>;
14
- export const modelViewMatrix: ShaderNodeObject<ModelNode>;
15
- export const modelNormalMatrix: ShaderNodeObject<ModelNode>;
16
15
  export const modelWorldMatrix: ShaderNodeObject<ModelNode>;
17
16
  export const modelPosition: ShaderNodeObject<ModelNode>;
18
17
  export const modelScale: ShaderNodeObject<ModelNode>;
19
18
  export const modelViewPosition: ShaderNodeObject<ModelNode>;
19
+ export const modelNormalMatrix: ShaderNodeObject<Node>;
20
20
  export const modelWorldMatrixInverse: ShaderNodeObject<UniformNode<Matrix4>>;
21
+ export const modelViewMatrix: ShaderNodeObject<ModelNode>;
22
+
23
+ export const highPrecisionModelViewMatrix: ShaderNodeObject<Node>;
24
+ export const highPrecisionModelNormalViewMatrix: ShaderNodeObject<Node>;
@@ -1,4 +1,6 @@
1
+ import { Matrix4 } from "../../math/Matrix4.js";
1
2
  import AttributeNode from "../core/AttributeNode.js";
3
+ import Node from "../core/Node.js";
2
4
  import VarNode from "../core/VarNode.js";
3
5
  import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
6
 
@@ -17,3 +19,7 @@ export const transformedNormalView: ShaderNodeObject<VarNode>;
17
19
  export const transformedNormalWorld: ShaderNodeObject<VarNode>;
18
20
 
19
21
  export const transformedClearcoatNormalView: ShaderNodeObject<VarNode>;
22
+
23
+ export const transformNormal: (normal: Node, matrix?: Node) => ShaderNodeObject<Node>;
24
+
25
+ export const transformNormalToView: (normal: Node) => ShaderNodeObject<Node>;
@@ -6,10 +6,8 @@ export default class Object3DNode extends Node {
6
6
  scope: string;
7
7
  object3d: Object3D | null;
8
8
 
9
- constructor(scope?: string, object3d?: Object3D | null);
9
+ constructor(scope: string, object3d?: Object3D | null);
10
10
 
11
- static VIEW_MATRIX: "viewMatrix";
12
- static NORMAL_MATRIX: "normalMatrix";
13
11
  static WORLD_MATRIX: "worldMatrix";
14
12
  static POSITION: "position";
15
13
  static SCALE: "scale";
@@ -18,8 +16,6 @@ export default class Object3DNode extends Node {
18
16
  }
19
17
 
20
18
  export const objectDirection: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
21
- export const objectViewMatrix: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
22
- export const objectNormalMatrix: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
23
19
  export const objectWorldMatrix: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
24
20
  export const objectPosition: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
25
21
  export const objectScale: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
@@ -12,9 +12,11 @@ declare class SceneNode extends Node {
12
12
 
13
13
  static BACKGROUND_BLURRINESS: "backgroundBlurriness";
14
14
  static BACKGROUND_INTENSITY: "backgroundIntensity";
15
+ static BACKGROUND_ROTATION: "backgroundRotation";
15
16
  }
16
17
 
17
18
  export default SceneNode;
18
19
 
19
20
  export const backgroundBlurriness: ShaderNodeObject<SceneNode>;
20
21
  export const backgroundIntensity: ShaderNodeObject<SceneNode>;
22
+ export const backgroundRotation: ShaderNodeObject<SceneNode>;
@@ -1,5 +1,5 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
2
+ import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
3
3
  import ArrayElementNode from "../utils/ArrayElementNode.js";
4
4
  import BufferNode from "./BufferNode.js";
5
5
 
@@ -17,7 +17,7 @@ declare class UniformArrayNode extends BufferNode {
17
17
 
18
18
  getElementLength(): number;
19
19
 
20
- element(indexNode: number): ShaderNodeObject<UniformArrayElementNode>;
20
+ element(indexNode: NodeRepresentation): ShaderNodeObject<UniformArrayElementNode>;
21
21
  }
22
22
 
23
23
  export default UniformArrayNode;
@@ -4,10 +4,15 @@ import UniformNode from "../core/UniformNode.js";
4
4
  import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
5
 
6
6
  declare class VelocityNode extends TempNode {
7
+ projectionMatrix: Matrix4 | null;
8
+
9
+ previousModelWorldMatrix: UniformNode<Matrix4>;
7
10
  previousProjectionMatrix: UniformNode<Matrix4>;
8
- previousModelViewMatrix: UniformNode<Matrix4>;
11
+ previousCameraViewMatrix: UniformNode<Matrix4>;
9
12
 
10
13
  constructor();
14
+
15
+ setProjectionMatrix(projectionMatrix: Matrix4 | null): void;
11
16
  }
12
17
 
13
18
  export default VelocityNode;
@@ -5,7 +5,7 @@ declare class Resources extends Map<string, unknown> {
5
5
  get<TArgs extends unknown[]>(key: string, callback?: ((...args: TArgs) => void) | null, ...params: TArgs): unknown;
6
6
  }
7
7
 
8
- export const global: Resources;
8
+ export const ScriptableNodeResources: Resources;
9
9
 
10
10
  declare class ScriptableNode extends Node {
11
11
  codeNode: Node | null;
@@ -60,13 +60,14 @@ interface NodeJSONOutputData {
60
60
  declare class Node extends EventDispatcher<{
61
61
  dispose: {};
62
62
  }> {
63
+ static get type(): string;
63
64
  nodeType: string | null;
64
65
  updateType: NodeUpdateType;
65
66
  updateBeforeType: NodeUpdateType;
66
67
  updateAfterType: NodeUpdateType;
67
68
  uuid: string;
68
69
  version: number;
69
- _cacheKey: string | null;
70
+ _cacheKey: number | null;
70
71
  _cacheKeyVersion: number;
71
72
  global: boolean;
72
73
  readonly isNode: true;
@@ -86,7 +87,7 @@ declare class Node extends EventDispatcher<{
86
87
  getChildren(): Generator<Node, void, unknown>;
87
88
  dispose(): void;
88
89
  traverse(callback: (node: Node) => void): void;
89
- getCacheKey(force?: boolean): string;
90
+ getCacheKey(force?: boolean): number;
90
91
  getScope(): this;
91
92
  getHash(builder: NodeBuilder): string;
92
93
  getUpdateType(): NodeUpdateType;
@@ -108,13 +109,3 @@ declare class Node extends EventDispatcher<{
108
109
  toJSON(meta?: NodeJSONMeta | string): NodeJSONOutputData;
109
110
  }
110
111
  export default Node;
111
- export declare function registerNode(type: string, nodeClass: {
112
- new(...args: any[]): Node;
113
- }): string | undefined;
114
- export declare function createNodeFromType(type: string): Node | undefined;
115
- /**
116
- * @deprecated Function addNodeClass() is deprecated. Use registerNodeClass() instead.
117
- */
118
- export declare function addNodeClass(type: string, nodeClass: {
119
- new(...args: any[]): Node;
120
- }): void;
@@ -12,7 +12,11 @@ export interface NodeChild {
12
12
  childNode: Node;
13
13
  }
14
14
 
15
- export function getCacheKey(object: Node, force?: boolean): string;
15
+ export const hashString: (str: string) => number;
16
+ export const hashArray: (array: number[]) => number;
17
+ export const hash: (...params: number[]) => number;
18
+
19
+ export function getCacheKey(object: Node, force?: boolean): number;
16
20
  export function getNodeChildren(object: Node): Generator<NodeChild, void>;
17
21
  export function getValueType(value: unknown): string | null;
18
22
  export function getValueFromType(
@@ -11,17 +11,17 @@ export default class StackNode extends Node {
11
11
 
12
12
  If(boolNode: Node, method: () => void): this;
13
13
 
14
- ElseIf(node: Node, method: () => void): this;
14
+ ElseIf(boolNode: Node, method: () => void): this;
15
15
 
16
- Else(node: Node, method: () => void): this;
16
+ Else(method: () => void): this;
17
17
 
18
18
  /**
19
19
  * @deprecated Use {@link StackNode#ElseIf Else()} instead.
20
20
  */
21
- elseif(node: Node, method: () => void): this;
21
+ elseif(boolNode: Node, method: () => void): this;
22
22
 
23
23
  /**
24
24
  * @deprecated Use {@link StackNode#Else Else()} instead.
25
25
  */
26
- else(node: Node, method: () => void): this;
26
+ else(method: () => void): this;
27
27
  }
@@ -1,5 +1,6 @@
1
1
  import Node from "./Node.js";
2
2
  declare class StructTypeNode extends Node {
3
+ static get type(): string;
3
4
  types: string[];
4
5
  readonly isStructTypeNode: true;
5
6
  constructor(types: string[]);
@@ -5,6 +5,7 @@ import NodeBuilder from "./NodeBuilder.js";
5
5
  import NodeFrame from "./NodeFrame.js";
6
6
  import UniformGroupNode from "./UniformGroupNode.js";
7
7
  declare class UniformNode<TValue> extends InputNode<TValue> {
8
+ static get type(): string;
8
9
  readonly isUniformNode: true;
9
10
  name: string;
10
11
  groupNode: UniformGroupNode;