@types/three 0.167.1 → 0.168.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 (248) hide show
  1. three/README.md +2 -2
  2. three/examples/jsm/Addons.d.ts +5 -1
  3. three/examples/jsm/capabilities/WebGL.d.ts +11 -3
  4. three/examples/jsm/controls/ArcballControls.d.ts +111 -77
  5. three/examples/jsm/controls/DragControls.d.ts +56 -27
  6. three/examples/jsm/controls/FirstPersonControls.d.ts +82 -12
  7. three/examples/jsm/controls/FlyControls.d.ts +35 -11
  8. three/examples/jsm/controls/OrbitControls.d.ts +84 -137
  9. three/examples/jsm/controls/PointerLockControls.d.ts +68 -9
  10. three/examples/jsm/controls/TrackballControls.d.ts +110 -26
  11. three/examples/jsm/effects/AnaglyphEffect.d.ts +11 -5
  12. three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +7 -4
  13. three/examples/jsm/environments/RoomEnvironment.d.ts +2 -2
  14. three/examples/jsm/loaders/KTX2Loader.d.ts +4 -0
  15. three/examples/jsm/objects/SkyMesh.d.ts +17 -0
  16. three/examples/jsm/objects/Water2.d.ts +2 -2
  17. three/examples/jsm/objects/Water2Mesh.d.ts +42 -0
  18. three/examples/jsm/objects/WaterMesh.d.ts +31 -0
  19. three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
  20. three/examples/jsm/postprocessing/SSAARenderPass.d.ts +11 -2
  21. three/package.json +4 -3
  22. three/src/Three.WebGPU.d.ts +13 -0
  23. three/src/Three.d.ts +38 -1
  24. three/src/core/EventDispatcher.d.ts +0 -3
  25. three/src/core/Object3D.d.ts +2 -0
  26. three/src/extras/Controls.d.ts +54 -0
  27. three/src/{nodes/loaders → loaders/nodes}/NodeLoader.d.ts +3 -3
  28. three/src/{nodes/loaders → loaders/nodes}/NodeMaterialLoader.d.ts +1 -1
  29. three/src/{nodes/loaders → loaders/nodes}/NodeObjectLoader.d.ts +1 -1
  30. three/src/materials/Material.d.ts +17 -13
  31. three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +33 -0
  32. three/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.d.ts +2 -2
  33. three/src/{nodes/materials → materials/nodes}/LineBasicNodeMaterial.d.ts +1 -1
  34. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +29 -0
  35. three/src/{nodes/materials → materials/nodes}/MeshBasicNodeMaterial.d.ts +1 -1
  36. three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -0
  37. three/src/{nodes/materials → materials/nodes}/MeshMatcapNodeMaterial.d.ts +2 -2
  38. three/src/{nodes/materials → materials/nodes}/MeshNormalNodeMaterial.d.ts +1 -1
  39. three/src/{nodes/materials → materials/nodes}/MeshPhongNodeMaterial.d.ts +2 -2
  40. three/src/{nodes/materials → materials/nodes}/MeshPhysicalNodeMaterial.d.ts +5 -2
  41. three/src/{nodes/materials → materials/nodes}/MeshSSSNodeMaterial.d.ts +2 -2
  42. three/src/{nodes/materials → materials/nodes}/MeshStandardNodeMaterial.d.ts +3 -3
  43. three/src/{nodes/materials → materials/nodes}/MeshToonNodeMaterial.d.ts +2 -2
  44. three/src/materials/nodes/NodeMaterial.d.ts +91 -0
  45. three/src/{nodes/materials/Materials.d.ts → materials/nodes/NodeMaterials.d.ts} +5 -2
  46. three/src/{nodes/materials → materials/nodes}/PointsNodeMaterial.d.ts +1 -2
  47. three/src/{nodes/materials → materials/nodes}/ShadowNodeMaterial.d.ts +1 -1
  48. three/src/{nodes/materials → materials/nodes}/SpriteNodeMaterial.d.ts +2 -2
  49. three/src/{nodes/materials → materials/nodes}/VolumeNodeMaterial.d.ts +1 -1
  50. three/src/nodes/Nodes.d.ts +117 -362
  51. three/src/nodes/TSL.d.ts +269 -0
  52. three/src/nodes/accessors/AccessorsUtils.d.ts +1 -1
  53. three/src/nodes/accessors/BatchNode.d.ts +1 -2
  54. three/src/nodes/accessors/{BitangentNode.d.ts → Bitangent.d.ts} +1 -1
  55. three/src/nodes/accessors/BufferAttributeNode.d.ts +4 -4
  56. three/src/nodes/accessors/BufferNode.d.ts +1 -1
  57. three/src/nodes/accessors/{CameraNode.d.ts → Camera.d.ts} +1 -1
  58. three/src/nodes/accessors/ClippingNode.d.ts +1 -1
  59. three/src/nodes/accessors/CubeTextureNode.d.ts +1 -7
  60. three/src/nodes/accessors/InstanceNode.d.ts +1 -1
  61. three/src/nodes/accessors/MaterialNode.d.ts +3 -3
  62. three/src/nodes/accessors/MaterialProperties.d.ts +4 -0
  63. three/src/nodes/accessors/MaterialReferenceNode.d.ts +3 -1
  64. three/src/nodes/accessors/ModelNode.d.ts +1 -1
  65. three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -1
  66. three/src/nodes/accessors/MorphNode.d.ts +15 -0
  67. three/src/nodes/accessors/{NormalNode.d.ts → Normal.d.ts} +11 -4
  68. three/src/nodes/accessors/Object3DNode.d.ts +1 -1
  69. three/src/nodes/accessors/PointUVNode.d.ts +1 -1
  70. three/src/nodes/accessors/{PositionNode.d.ts → Position.d.ts} +2 -1
  71. three/src/nodes/accessors/ReferenceBaseNode.d.ts +27 -0
  72. three/src/nodes/accessors/ReferenceNode.d.ts +7 -5
  73. three/src/nodes/accessors/{ReflectVectorNode.d.ts → ReflectVector.d.ts} +1 -1
  74. three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
  75. three/src/nodes/accessors/SceneNode.d.ts +20 -0
  76. three/src/nodes/accessors/SkinningNode.d.ts +11 -1
  77. three/src/nodes/accessors/StorageBufferNode.d.ts +2 -2
  78. three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
  79. three/src/nodes/accessors/{TangentNode.d.ts → Tangent.d.ts} +1 -1
  80. three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
  81. three/src/nodes/accessors/TextureBicubic.d.ts +4 -0
  82. three/src/nodes/accessors/TextureNode.d.ts +26 -7
  83. three/src/nodes/accessors/TextureSizeNode.d.ts +18 -0
  84. three/src/nodes/accessors/{UVNode.d.ts → UV.d.ts} +1 -1
  85. three/src/nodes/accessors/UniformArrayNode.d.ts +30 -0
  86. three/src/nodes/accessors/UserDataNode.d.ts +1 -1
  87. three/src/nodes/accessors/VelocityNode.d.ts +15 -0
  88. three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
  89. three/src/nodes/code/CodeNode.d.ts +1 -1
  90. three/src/nodes/code/ExpressionNode.d.ts +1 -1
  91. three/src/nodes/code/FunctionCallNode.d.ts +2 -2
  92. three/src/nodes/code/FunctionNode.d.ts +5 -6
  93. three/src/nodes/code/ScriptableNode.d.ts +22 -0
  94. three/src/nodes/code/ScriptableValueNode.d.ts +10 -0
  95. three/src/nodes/core/AssignNode.d.ts +2 -2
  96. three/src/nodes/core/AttributeNode.d.ts +2 -5
  97. three/src/nodes/core/BypassNode.d.ts +2 -2
  98. three/src/nodes/core/CacheNode.d.ts +2 -2
  99. three/src/nodes/core/ContextNode.d.ts +10 -7
  100. three/src/nodes/core/IndexNode.d.ts +11 -3
  101. three/src/nodes/core/MRTNode.d.ts +7 -2
  102. three/src/nodes/core/Node.d.ts +8 -2
  103. three/src/nodes/core/OutputStructNode.d.ts +1 -1
  104. three/src/nodes/core/ParameterNode.d.ts +12 -0
  105. three/src/nodes/core/PropertyNode.d.ts +1 -1
  106. three/src/nodes/core/StackNode.d.ts +12 -2
  107. three/src/nodes/core/UniformNode.d.ts +1 -1
  108. three/src/nodes/core/VarNode.d.ts +2 -10
  109. three/src/nodes/core/VaryingNode.d.ts +2 -2
  110. three/src/nodes/display/AfterImageNode.d.ts +1 -7
  111. three/src/nodes/display/AnaglyphPassNode.d.ts +14 -0
  112. three/src/nodes/display/AnamorphicNode.d.ts +1 -7
  113. three/src/nodes/display/BleachBypass.d.ts +4 -0
  114. three/src/nodes/display/BlendMode.d.ts +10 -0
  115. three/src/nodes/display/BloomNode.d.ts +1 -7
  116. three/src/nodes/display/BumpMapNode.d.ts +16 -0
  117. three/src/nodes/display/ColorAdjustment.d.ts +27 -0
  118. three/src/nodes/display/ColorSpaceFunctions.d.ts +6 -0
  119. three/src/nodes/display/ColorSpaceNode.d.ts +23 -23
  120. three/src/nodes/display/DenoiseNode.d.ts +3 -9
  121. three/src/nodes/display/DepthOfFieldNode.d.ts +4 -8
  122. three/src/nodes/display/DotScreenNode.d.ts +4 -8
  123. three/src/nodes/display/FXAANode.d.ts +3 -9
  124. three/src/nodes/display/FilmNode.d.ts +3 -9
  125. three/src/nodes/display/FrontFacingNode.d.ts +4 -2
  126. three/src/nodes/display/GTAONode.d.ts +3 -9
  127. three/src/nodes/display/GaussianBlurNode.d.ts +4 -8
  128. three/src/nodes/display/Lut3DNode.d.ts +3 -9
  129. three/src/nodes/display/MotionBlur.d.ts +8 -0
  130. three/src/nodes/display/NormalMapNode.d.ts +4 -8
  131. three/src/nodes/display/ParallaxBarrierPassNode.d.ts +14 -0
  132. three/src/nodes/display/PassNode.d.ts +11 -2
  133. three/src/nodes/display/PixelationPassNode.d.ts +1 -37
  134. three/src/nodes/display/PosterizeNode.d.ts +1 -7
  135. three/src/nodes/display/RGBShiftNode.d.ts +1 -7
  136. three/src/nodes/display/RenderOutputNode.d.ts +2 -2
  137. three/src/nodes/display/SSAAPassNode.d.ts +26 -0
  138. three/src/nodes/display/Sepia.d.ts +4 -0
  139. three/src/nodes/display/SobelOperatorNode.d.ts +4 -8
  140. three/src/nodes/display/StereoCompositePassNode.d.ts +17 -0
  141. three/src/nodes/display/StereoPassNode.d.ts +17 -0
  142. three/src/nodes/display/ToneMappingFunctions.d.ts +14 -0
  143. three/src/nodes/display/ToneMappingNode.d.ts +5 -6
  144. three/src/nodes/display/TransitionNode.d.ts +3 -9
  145. three/src/nodes/display/ViewportDepthNode.d.ts +6 -2
  146. three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
  147. three/src/nodes/display/ViewportNode.d.ts +23 -16
  148. three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -8
  149. three/src/nodes/display/ViewportTextureNode.d.ts +4 -9
  150. three/src/nodes/fog/FogExp2Node.d.ts +4 -8
  151. three/src/nodes/fog/FogNode.d.ts +4 -8
  152. three/src/nodes/fog/FogRangeNode.d.ts +4 -8
  153. three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
  154. three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
  155. three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -1
  156. three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
  157. three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -1
  158. three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -1
  159. three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
  160. three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +10 -0
  161. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
  162. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
  163. three/src/nodes/functions/ShadowMaskModel.d.ts +1 -1
  164. three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
  165. three/src/nodes/functions/material/getRoughness.d.ts +1 -1
  166. three/src/nodes/geometry/RangeNode.d.ts +1 -1
  167. three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
  168. three/src/nodes/lighting/AmbientLightNode.d.ts +8 -0
  169. three/src/nodes/lighting/DirectionalLightNode.d.ts +8 -0
  170. three/src/nodes/lighting/IESSpotLightNode.d.ts +5 -0
  171. three/src/nodes/lighting/LightNode.d.ts +18 -0
  172. three/src/nodes/lighting/LightProbeNode.d.ts +11 -0
  173. three/src/nodes/lighting/LightUtils.d.ts +3 -3
  174. three/src/nodes/lighting/LightingContextNode.d.ts +1 -7
  175. three/src/nodes/lighting/LightsNode.d.ts +9 -13
  176. three/src/nodes/materialx/MaterialXNodes.d.ts +1 -1
  177. three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -2
  178. three/src/nodes/materialx/lib/mx_noise.d.ts +1 -1
  179. three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -1
  180. three/src/nodes/math/ConditionalNode.d.ts +39 -0
  181. three/src/nodes/math/Hash.d.ts +4 -0
  182. three/src/nodes/math/MathNode.d.ts +2 -2
  183. three/src/nodes/math/MathUtils.d.ts +0 -10
  184. three/src/nodes/math/OperatorNode.d.ts +18 -4
  185. three/src/nodes/math/TriNoise3D.d.ts +1 -1
  186. three/src/nodes/parsers/GLSLNodeFunction.d.ts +9 -0
  187. three/src/nodes/parsers/GLSLNodeParser.d.ts +8 -0
  188. three/src/nodes/pmrem/PMREMNode.d.ts +4 -2
  189. three/src/nodes/pmrem/PMREMUtils.d.ts +28 -0
  190. three/src/nodes/procedural/Checker.d.ts +4 -0
  191. three/src/nodes/tsl/TSLBase.d.ts +21 -0
  192. three/src/nodes/{shadernode/ShaderNode.d.ts → tsl/TSLCore.d.ts} +23 -23
  193. three/src/nodes/utils/CubeMapNode.d.ts +13 -0
  194. three/src/nodes/utils/Discard.d.ts +11 -0
  195. three/src/nodes/utils/EquirectUVNode.d.ts +1 -1
  196. three/src/nodes/utils/FunctionOverloadingNode.d.ts +13 -0
  197. three/src/nodes/utils/LoopNode.d.ts +22 -0
  198. three/src/nodes/utils/MatcapUVNode.d.ts +1 -1
  199. three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
  200. three/src/nodes/utils/OscNode.d.ts +1 -1
  201. three/src/nodes/utils/Packing.d.ts +5 -0
  202. three/src/nodes/utils/RTTNode.d.ts +7 -7
  203. three/src/nodes/utils/ReflectorNode.d.ts +1 -1
  204. three/src/nodes/utils/RemapNode.d.ts +2 -2
  205. three/src/nodes/utils/RotateNode.d.ts +1 -7
  206. three/src/nodes/utils/SetNode.d.ts +11 -0
  207. three/src/nodes/utils/SplitNode.d.ts +1 -1
  208. three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -1
  209. three/src/nodes/utils/SpriteUtils.d.ts +6 -0
  210. three/src/nodes/utils/{StoargeArrayElementNode.d.ts → StorageArrayElementNode.d.ts} +1 -7
  211. three/src/nodes/utils/TimerNode.d.ts +1 -1
  212. three/src/nodes/utils/TriplanarTexturesNode.d.ts +1 -7
  213. three/src/nodes/utils/UVUtils.d.ts +14 -0
  214. three/src/nodes/utils/ViewportUtils.d.ts +4 -0
  215. three/src/renderers/common/BindGroup.d.ts +8 -1
  216. three/src/renderers/common/Bindings.d.ts +2 -2
  217. three/src/renderers/common/ClippingContext.d.ts +1 -0
  218. three/src/renderers/common/QuadMesh.d.ts +2 -0
  219. three/src/renderers/common/RenderContext.d.ts +2 -0
  220. three/src/renderers/common/RenderContexts.d.ts +6 -4
  221. three/src/renderers/common/RenderObjects.d.ts +1 -1
  222. three/src/renderers/common/Renderer.d.ts +16 -4
  223. three/src/renderers/common/SampledTexture.d.ts +7 -1
  224. three/src/renderers/common/StandardRenderer.d.ts +12 -0
  225. three/src/renderers/common/Textures.d.ts +1 -0
  226. three/src/renderers/common/nodes/NodeLibrary.d.ts +56 -0
  227. three/src/renderers/common/nodes/NodeSampledTexture.d.ts +3 -3
  228. three/src/renderers/common/nodes/Nodes.d.ts +7 -9
  229. three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +5 -0
  230. three/src/renderers/webgl/WebGLProperties.d.ts +5 -4
  231. three/src/renderers/webgpu/WebGPUBackend.d.ts +6 -2
  232. three/src/renderers/webgpu/WebGPURenderer.d.ts +3 -3
  233. three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +2 -2
  234. three/src/renderers/webxr/WebXRDepthSensing.d.ts +0 -7
  235. three/src/renderers/webxr/WebXRManager.d.ts +0 -2
  236. three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
  237. three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
  238. three/src/nodes/accessors/UniformsNode.d.ts +0 -23
  239. three/src/nodes/core/NodeKeywords.d.ts +0 -17
  240. three/src/nodes/display/BlendModeNode.d.ts +0 -47
  241. three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
  242. three/src/nodes/materials/NodeMaterial.d.ts +0 -124
  243. three/src/nodes/math/CondNode.d.ts +0 -22
  244. three/src/nodes/math/HashNode.d.ts +0 -16
  245. three/src/nodes/procedural/CheckerNode.d.ts +0 -15
  246. three/src/nodes/utils/DiscardNode.d.ts +0 -17
  247. three/src/nodes/utils/PackingNode.d.ts +0 -24
  248. three/src/nodes/utils/RotateUVNode.d.ts +0 -19
@@ -2,420 +2,175 @@
2
2
  export * from "./core/constants.js";
3
3
 
4
4
  // core
5
- export { assign, default as AssignNode } from "./core/AssignNode.js";
6
- export { attribute, default as AttributeNode } from "./core/AttributeNode.js";
7
- export { bypass, default as BypassNode } from "./core/BypassNode.js";
8
- export { cache, default as CacheNode } from "./core/CacheNode.js";
5
+ export { default as AssignNode } from "./core/AssignNode.js";
6
+ export { default as AttributeNode } from "./core/AttributeNode.js";
7
+ export { default as BypassNode } from "./core/BypassNode.js";
8
+ export { default as CacheNode } from "./core/CacheNode.js";
9
9
  export { default as ConstNode } from "./core/ConstNode.js";
10
- export { context, default as ContextNode, label } from "./core/ContextNode.js";
11
- export { default as IndexNode, drawIndex, IndexNodeScope, instanceIndex, vertexIndex } from "./core/IndexNode.js";
10
+ export { default as ContextNode } from "./core/ContextNode.js";
11
+ export { default as IndexNode, IndexNodeScope } from "./core/IndexNode.js";
12
12
  export {
13
13
  default as LightingModel,
14
14
  LightingModelDirectInput,
15
+ LightingModelDirectRectAreaInput,
15
16
  LightingModelIndirectInput,
16
17
  LightingModelReflectedLight,
17
18
  } from "./core/LightingModel.js";
18
- export { default as MRTNode, mrt } from "./core/MRTNode.js";
19
- export { default as Node } from "./core/Node.js";
19
+ export { default as MRTNode } from "./core/MRTNode.js";
20
+ export { default as Node, NodeJSONInputData, NodeJSONIntermediateOutputData, registerNode } from "./core/Node.js";
20
21
  export { default as NodeAttribute } from "./core/NodeAttribute.js";
21
- export { default as NodeBuilder } from "./core/NodeBuilder.js";
22
- export { default as NodeCache } from "./core/NodeCache.js";
22
+ export {
23
+ BuildStageOption,
24
+ default as NodeBuilder,
25
+ FlowData,
26
+ NodeBuilderContext,
27
+ NodeData,
28
+ } from "./core/NodeBuilder.js";
29
+ export { default as NodeCache, ShaderStageNodeData } from "./core/NodeCache.js";
23
30
  export { default as NodeCode } from "./core/NodeCode.js";
24
31
  export { default as NodeFrame } from "./core/NodeFrame.js";
25
32
  export { default as NodeFunctionInput } from "./core/NodeFunctionInput.js";
26
- export { default as NodeKeywords } from "./core/NodeKeywords.js";
27
33
  export { default as NodeUniform } from "./core/NodeUniform.js";
28
34
  export { default as NodeVar } from "./core/NodeVar.js";
29
35
  export { default as NodeVarying } from "./core/NodeVarying.js";
30
- export { default as OutputStructNode, outputStruct } from "./core/OutputStructNode.js";
31
- export {
32
- alphaT,
33
- anisotropy,
34
- anisotropyB,
35
- anisotropyT,
36
- clearcoat,
37
- clearcoatRoughness,
38
- dashSize,
39
- default as PropertyNode,
40
- diffuseColor,
41
- emissive,
42
- gapSize,
43
- iridescence,
44
- iridescenceIOR,
45
- iridescenceThickness,
46
- metalness,
47
- output,
48
- pointWidth,
49
- property,
50
- roughness,
51
- sheen,
52
- sheenRoughness,
53
- shininess,
54
- specularColor,
55
- varyingProperty,
56
- } from "./core/PropertyNode.js";
36
+ export { default as OutputStructNode } from "./core/OutputStructNode.js";
37
+ export { default as ParameterNode } from "./core/ParameterNode.js";
38
+ export { default as PropertyNode } from "./core/PropertyNode.js";
57
39
  export { default as StackNode } from "./core/StackNode.js";
58
40
  export { default as TempNode } from "./core/TempNode.js";
59
- export {
60
- default as UniformGroupNode,
61
- frameGroup,
62
- objectGroup,
63
- renderGroup,
64
- uniformGroup,
65
- } from "./core/UniformGroupNode.js";
66
- export { default as UniformNode, uniform } from "./core/UniformNode.js";
67
- export { default as VarNode, temp } from "./core/VarNode.js";
68
- export { default as VaryingNode, varying } from "./core/VaryingNode.js";
41
+ export { default as UniformGroupNode } from "./core/UniformGroupNode.js";
42
+ export { default as UniformNode } from "./core/UniformNode.js";
43
+ export { default as VarNode } from "./core/VarNode.js";
44
+ export { default as VaryingNode } from "./core/VaryingNode.js";
69
45
 
70
46
  import * as NodeUtils from "./core/NodeUtils.js";
71
47
  export { NodeUtils };
72
48
 
73
- // math
74
- export {
75
- abs,
76
- acos,
77
- all,
78
- any,
79
- asin,
80
- atan,
81
- atan2,
82
- bitcast,
83
- cbrt,
84
- ceil,
85
- clamp,
86
- cos,
87
- cross,
88
- default as MathNode,
89
- degrees,
90
- dFdx,
91
- dFdy,
92
- difference,
93
- distance,
94
- dot,
95
- EPSILON,
96
- equals,
97
- exp,
98
- exp2,
99
- faceForward,
100
- floor,
101
- fract,
102
- fwidth,
103
- INFINITY,
104
- inverseSqrt,
105
- length,
106
- lengthSq,
107
- log,
108
- log2,
109
- MathNodeMethod,
110
- MathNodeMethod1,
111
- MathNodeMethod2,
112
- MathNodeMethod3,
113
- max,
114
- min,
115
- mix,
116
- mod,
117
- negate,
118
- normalize,
119
- oneMinus,
120
- PI,
121
- PI2,
122
- pow,
123
- pow2,
124
- pow3,
125
- pow4,
126
- radians,
127
- rand,
128
- reciprocal,
129
- reflect,
130
- refract,
131
- round,
132
- saturate,
133
- sign,
134
- sin,
135
- smoothstep,
136
- sqrt,
137
- step,
138
- tan,
139
- transformDirection,
140
- transpose,
141
- trunc,
142
- } from "./math/MathNode.js";
143
-
144
- export { cond, default as CondNode } from "./math/CondNode.js";
145
- export { default as HashNode, hash } from "./math/HashNode.js";
146
- export {
147
- add,
148
- and,
149
- bitAnd,
150
- bitNot,
151
- bitOr,
152
- bitXor,
153
- default as OperatorNode,
154
- div,
155
- equal,
156
- greaterThan,
157
- greaterThanEqual,
158
- lessThan,
159
- lessThanEqual,
160
- mul,
161
- not,
162
- OperatorNodeOp,
163
- or,
164
- remainder,
165
- shiftLeft,
166
- shiftRight,
167
- sub,
168
- xor,
169
- } from "./math/OperatorNode.js";
170
-
171
- // math utils
172
- export { gain, parabola, pcurve, sinc } from "./math/MathUtils.js";
173
- export { triNoise3D } from "./math/TriNoise3D.js";
174
-
175
49
  // utils
176
50
  export { default as ArrayElementNode } from "./utils/ArrayElementNode.js";
177
51
  export { default as ConvertNode } from "./utils/ConvertNode.js";
178
- export { default as DiscardNode, discard, Return } from "./utils/DiscardNode.js";
179
- export { default as EquirectUVNode, equirectUV } from "./utils/EquirectUVNode.js";
52
+ export { default as EquirectUVNode } from "./utils/EquirectUVNode.js";
53
+ export { default as FunctionOverloadingNode } from "./utils/FunctionOverloadingNode.js";
180
54
  export { default as JoinNode } from "./utils/JoinNode.js";
181
- export { default as MatcapUVNode, matcapUV } from "./utils/MatcapUVNode.js";
182
- export { default as MaxMipLevelNode, maxMipLevel } from "./utils/MaxMipLevelNode.js";
183
- export { default as OscNode, OscNodeMethod, oscSawtooth, oscSine, oscSquare, oscTriangle } from "./utils/OscNode.js";
184
- export { colorToDirection, default as PackingNode, directionToColor } from "./utils/PackingNode.js";
185
- export { default as ReflectorNode, reflector, ReflectorNodeParameters } from "./utils/ReflectorNode.js";
186
- export { default as RemapNode, remap, remapClamp } from "./utils/RemapNode.js";
187
- export { default as RotateNode, rotate } from "./utils/RotateNode.js";
188
- export { default as RotateUVNode, rotateUV } from "./utils/RotateUVNode.js";
189
- export { default as RTTNode, rtt, RTTNodeOptions } from "./utils/RTTNode.js";
55
+ export { default as LoopNode } from "./utils/LoopNode.js";
56
+ export { default as MatcapUVNode } from "./utils/MatcapUVNode.js";
57
+ export { default as MaxMipLevelNode } from "./utils/MaxMipLevelNode.js";
58
+ export { default as OscNode, OscNodeMethod } from "./utils/OscNode.js";
59
+ export { default as ReflectorNode, ReflectorNodeParameters } from "./utils/ReflectorNode.js";
60
+ export { default as RemapNode } from "./utils/RemapNode.js";
61
+ export { default as RotateNode } from "./utils/RotateNode.js";
62
+ export { default as RTTNode, RTTNodeOptions } from "./utils/RTTNode.js";
63
+ export { default as SetNode } from "./utils/SetNode.js";
190
64
  export { default as SplitNode } from "./utils/SplitNode.js";
191
- export { default as SpriteSheetUVNode, spritesheetUV } from "./utils/SpriteSheetUVNode.js";
192
- export { default as StorageArrayElementNode } from "./utils/SpriteSheetUVNode.js";
193
- export {
194
- default as TimerNode,
195
- frameId,
196
- timerDelta,
197
- timerGlobal,
198
- timerLocal,
199
- TimerNodeScope,
200
- } from "./utils/TimerNode.js";
201
- export {
202
- default as TriplanarTexturesNode,
203
- triplanarTexture,
204
- triplanarTextures,
205
- } from "./utils/TriplanarTexturesNode.js";
206
-
207
- // shader node
208
- export * from "./shadernode/ShaderNode.js";
65
+ export { default as SpriteSheetUVNode } from "./utils/SpriteSheetUVNode.js";
66
+ export { default as StorageArrayElementNode } from "./utils/StorageArrayElementNode.js";
67
+ export { default as TimerNode, TimerNodeScope } from "./utils/TimerNode.js";
68
+ export { default as TriplanarTexturesNode } from "./utils/TriplanarTexturesNode.js";
209
69
 
210
70
  // accessors
211
- export { parallaxDirection, parallaxUV, TBNViewMatrix, transformedBentNormalView } from "./accessors/AccessorsUtils.js";
212
- export { batch, default as BatchNode } from "./accessors/BatchNode.js";
213
- export * from "./accessors/BitangentNode.js";
214
- export { buffer, default as BufferNode } from "./accessors/BufferNode.js";
215
- export * from "./accessors/CameraNode.js";
216
- export { cubeTexture, default as CubeTextureNode } from "./accessors/CubeTextureNode.js";
217
- export { default as InstanceNode, instance } from "./accessors/InstanceNode.js";
218
- export {
219
- default as MaterialNode,
220
- materialAlphaTest,
221
- materialAnisotropy,
222
- materialAnisotropyVector,
223
- materialAOMap,
224
- materialClearcoat,
225
- materialClearcoatNormal,
226
- materialClearcoatRoughness,
227
- materialColor,
228
- materialDispersion,
229
- materialEmissive,
230
- materialIridescence,
231
- materialIridescenceIOR,
232
- materialIridescenceThickness,
233
- materialLightMap,
234
- materialLineDashOffset,
235
- materialLineDashSize,
236
- materialLineGapSize,
237
- materialLineScale,
238
- materialLineWidth,
239
- materialMetalness,
240
- MaterialNodeScope,
241
- materialNormal,
242
- materialOpacity,
243
- materialPointWidth,
244
- materialReflectivity,
245
- materialRotation,
246
- materialRoughness,
247
- materialSheen,
248
- materialSheenRoughness,
249
- materialShininess,
250
- materialSpecular,
251
- materialSpecularStrength,
252
- } from "./accessors/MaterialNode.js";
253
- export { default as MaterialReferenceNode, materialReference } from "./accessors/MaterialReferenceNode.js";
254
- export {
255
- default as ModelNode,
256
- modelDirection,
257
- modelNormalMatrix,
258
- modelPosition,
259
- modelScale,
260
- modelViewMatrix,
261
- modelViewPosition,
262
- modelWorldMatrix,
263
- modelWorldMatrixInverse,
264
- } from "./accessors/ModelNode.js";
265
- export { default as ModelViewProjectionNode, modelViewProjection } from "./accessors/ModelViewProjectionNode.js";
266
- export * from "./accessors/NormalNode.js";
267
- export {
268
- default as Object3DNode,
269
- objectDirection,
270
- objectNormalMatrix,
271
- objectPosition,
272
- objectScale,
273
- objectViewMatrix,
274
- objectViewPosition,
275
- objectWorldMatrix,
276
- } from "./accessors/Object3DNode.js";
277
- export { default as PointUVNode, pointUV } from "./accessors/PointUVNode.js";
278
- export * from "./accessors/PositionNode.js";
279
- export { default as ReferenceNode, reference, referenceBuffer } from "./accessors/ReferenceNode.js";
280
- export * from "./accessors/ReflectVectorNode.js";
281
- export { default as RendererReferenceNode, rendererReference } from "./accessors/RendererReferenceNode.js";
282
- export { default as SkinningNode, skinning, skinningReference } from "./accessors/SkinningNode.js";
283
- export { default as StorageBufferNode, storage, storageObject } from "./accessors/StorageBufferNode.js";
284
- export { default as StorageTextureNode, storageTexture, textureStore } from "./accessors/StorageTextureNode.js";
285
- export * from "./accessors/TangentNode.js";
286
- export { default as Texture3DNode, texture3D } from "./accessors/Texture3DNode.js";
287
- export { default as TextureBicubicNode, textureBicubic } from "./accessors/TextureBicubicNode.js";
288
- export { default as TextureNode, sampler, texture } from "./accessors/TextureNode.js";
289
- export { default as UniformsNode, uniforms } from "./accessors/UniformsNode.js";
290
- export { default as UserDataNode, userData } from "./accessors/UserDataNode.js";
291
- export * from "./accessors/UVNode.js";
292
- export { default as VertexColorNode, vertexColor } from "./accessors/VertexColorNode.js";
71
+ export { default as BatchNode } from "./accessors/BatchNode.js";
72
+ export { default as BufferAttributeNode } from "./accessors/BufferAttributeNode.js";
73
+ export { default as BufferNode } from "./accessors/BufferNode.js";
74
+ export { default as CubeTextureNode } from "./accessors/CubeTextureNode.js";
75
+ export { default as InstanceNode } from "./accessors/InstanceNode.js";
76
+ export { default as MaterialNode, MaterialNodeScope } from "./accessors/MaterialNode.js";
77
+ export { default as MaterialReferenceNode } from "./accessors/MaterialReferenceNode.js";
78
+ export { default as ModelNode } from "./accessors/ModelNode.js";
79
+ export { default as ModelViewProjectionNode } from "./accessors/ModelViewProjectionNode.js";
80
+ export { default as MorphNode } from "./accessors/MorphNode.js";
81
+ export { default as Object3DNode } from "./accessors/Object3DNode.js";
82
+ export { default as PointUVNode } from "./accessors/PointUVNode.js";
83
+ export { default as ReferenceNode } from "./accessors/ReferenceNode.js";
84
+ export { default as RendererReferenceNode } from "./accessors/RendererReferenceNode.js";
85
+ export { default as SceneNode, SceneNodeScope } from "./accessors/SceneNode.js";
86
+ export { default as SkinningNode } from "./accessors/SkinningNode.js";
87
+ export { default as StorageBufferNode } from "./accessors/StorageBufferNode.js";
88
+ export { default as StorageTextureNode } from "./accessors/StorageTextureNode.js";
89
+ export { default as Texture3DNode } from "./accessors/Texture3DNode.js";
90
+ export { default as TextureNode } from "./accessors/TextureNode.js";
91
+ export { default as TextureSizeNode } from "./accessors/TextureSizeNode.js";
92
+ export { default as UniformArrayNode } from "./accessors/UniformArrayNode.js";
93
+ export { default as UserDataNode, NodeUserData } from "./accessors/UserDataNode.js";
94
+ export { default as VertexColorNode } from "./accessors/VertexColorNode.js";
293
95
 
294
96
  // display
295
- export { afterImage, default as AfterImageNode } from "./display/AfterImageNode.js";
296
- export { anamorphic, default as AnamorphicNode } from "./display/AnamorphicNode.js";
297
- export { BlendMode, burn, default as BlendModeNode, dodge, overlay, screen } from "./display/BlendModeNode.js";
298
- export { bloom, default as BloomNode } from "./display/BloomNode.js";
299
- export {
300
- ColorAdjustmentMethod,
301
- default as ColorAdjustmentNode,
302
- hue,
303
- luminance,
304
- saturation,
305
- threshold,
306
- vibrance,
307
- } from "./display/ColorAdjustmentNode.js";
308
- export {
309
- ColorSpaceNodeMethod,
310
- colorSpaceToLinear,
311
- default as ColorSpaceNode,
312
- linearToColorSpace,
313
- linearTosRGB,
314
- sRGBToLinear,
315
- } from "./display/ColorSpaceNode.js";
316
- export { default as DenoiseNode, denoise } from "./display/DenoiseNode.js";
317
- export { default as DepthOfFieldNode, dof } from "./display/DepthOfFieldNode.js";
318
- export { default as DotScreenNode, dotScreen } from "./display/DotScreenNode.js";
319
- export { default as FilmNode, film } from "./display/FilmNode.js";
320
- export { default as FrontFacingNode, faceDirection, frontFacing } from "./display/FrontFacingNode.js";
321
- export { default as FXAANode, fxaa } from "./display/FXAANode.js";
322
- export { default as GaussianBlurNode, gaussianBlur } from "./display/GaussianBlurNode.js";
323
- export { ao, default as GTAONode } from "./display/GTAONode.js";
324
- export { default as Lut3DNode, lut3D } from "./display/Lut3DNode.js";
325
- export { default as NormalMapNode, normalMap } from "./display/NormalMapNode.js";
326
- export { default as PixelationPassNode, pixelationPass } from "./display/PixelationPassNode.js";
327
- export { default as PosterizeNode, posterize } from "./display/PosterizeNode.js";
328
- export { default as RenderOutputNode, renderOutput } from "./display/RenderOutputNode.js";
329
- export { default as RGBShiftNode, rgbShift } from "./display/RGBShiftNode.js";
330
- export { default as SobelOperatorNode, sobel } from "./display/SobelOperatorNode.js";
331
- export { default as ToneMappingNode, toneMapping } from "./display/ToneMappingNode.js";
332
- export { default as TransitionNode, transition } from "./display/TransitionNode.js";
333
- export {
334
- default as ViewportDepthNode,
335
- depth,
336
- linearDepth,
337
- orthographicDepthToViewZ,
338
- perspectiveDepthToViewZ,
339
- ViewportDepthNodeScope,
340
- viewportLinearDepth,
341
- viewZToOrthographicDepth,
342
- viewZToPerspectiveDepth,
343
- } from "./display/ViewportDepthNode.js";
344
- export { default as ViewportDepthTextureNode, viewportDepthTexture } from "./display/ViewportDepthTextureNode.js";
345
- export {
346
- default as ViewportNode,
347
- viewportBottomLeft,
348
- viewportBottomRight,
349
- viewportCoordinate,
350
- viewportResolution,
351
- viewportTopLeft,
352
- viewportTopRight,
353
- } from "./display/ViewportNode.js";
354
- export { default as ViewportSharedTextureNode, viewportSharedTexture } from "./display/ViewportSharedTextureNode.js";
355
- export { default as ViewportTextureNode, viewportMipTexture, viewportTexture } from "./display/ViewportTextureNode.js";
356
-
357
- export { default as PassNode, depthPass, pass, PassNodeScope, passTexture } from "./display/PassNode.js";
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
+ export { default as BumpMapNode } from "./display/BumpMapNode.js";
102
+ 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
+ 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
+ export { default as NormalMapNode } from "./display/NormalMapNode.js";
113
+ export { default as ParallaxBarrierPassNode } from "./display/ParallaxBarrierPassNode.js";
114
+ export { default as PassNode, PassNodeScope } from "./display/PassNode.js";
115
+ export { default as PixelationPassNode } from "./display/PixelationPassNode.js";
116
+ export { default as PosterizeNode } from "./display/PosterizeNode.js";
117
+ 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";
122
+ export { default as ToneMappingNode } from "./display/ToneMappingNode.js";
123
+ export { default as TransitionNode } from "./display/TransitionNode.js";
124
+ export { default as ViewportDepthNode, ViewportDepthNodeScope } from "./display/ViewportDepthNode.js";
125
+ export { default as ViewportDepthTextureNode } from "./display/ViewportDepthTextureNode.js";
126
+ export { default as ViewportNode, ViewportNodeScope } from "./display/ViewportNode.js";
127
+ export { default as ViewportSharedTextureNode } from "./display/ViewportSharedTextureNode.js";
128
+ export { default as ViewportTextureNode } from "./display/ViewportTextureNode.js";
358
129
 
359
130
  // code
360
- export { code, CodeNodeInclude, default as CodeNode, glsl, js, wgsl } from "./code/CodeNode.js";
361
- export { default as ExpressionNode, expression } from "./code/ExpressionNode.js";
362
- export { call, default as FunctionCallNode } from "./code/FunctionCallNode.js";
363
- export { default as FunctionNode, Fn, FunctionNodeArguments, glslFn, wgslFn } from "./code/FunctionNode.js";
131
+ export { CodeNodeInclude, default as CodeNode } from "./code/CodeNode.js";
132
+ export { default as ExpressionNode } from "./code/ExpressionNode.js";
133
+ export { default as FunctionCallNode } from "./code/FunctionCallNode.js";
134
+ export { default as FunctionNode } from "./code/FunctionNode.js";
135
+ export { default as ScriptableNode } from "./code/ScriptableNode.js";
136
+ export { default as ScriptableValueNode } from "./code/ScriptableValueNode.js";
364
137
 
365
138
  // fog
366
- export { default as FogExp2Node, densityFog } from "./fog/FogExp2Node.js";
367
- export { default as FogNode, fog } from "./fog/FogNode.js";
368
- export { default as FogRangeNode, rangeFog } from "./fog/FogRangeNode.js";
139
+ export { default as FogExp2Node } from "./fog/FogExp2Node.js";
140
+ export { default as FogNode } from "./fog/FogNode.js";
141
+ export { default as FogRangeNode } from "./fog/FogRangeNode.js";
369
142
 
370
143
  // geometry
371
- export { default as RangeNode, range, RangeModeBound } from "./geometry/RangeNode.js";
144
+ export { default as RangeNode, RangeModeBound } from "./geometry/RangeNode.js";
372
145
 
373
146
  // gpgpu
374
- export { compute, default as ComputeNode } from "./gpgpu/ComputeNode.js";
147
+ export { default as ComputeNode } from "./gpgpu/ComputeNode.js";
375
148
 
376
149
  // lighting
150
+ export { default as AmbientLightNode } from "./lighting/AmbientLightNode.js";
377
151
  export { default as AnalyticLightNode } from "./lighting/AnalyticLightNode.js";
378
152
  export { default as AONode } from "./lighting/AONode.js";
379
153
  export { default as BasicEnvironmentNode } from "./lighting/BasicEnvironmentNode.js";
154
+ export { default as DirectionalLightNode } from "./lighting/DirectionalLightNode.js";
380
155
  export { default as EnvironmentNode } from "./lighting/EnvironmentNode.js";
381
156
  export { default as HemisphereLightNode } from "./lighting/HemisphereLightNode.js";
157
+ export { default as IESSpotLightNode } from "./lighting/IESSpotLightNode.js";
382
158
  export { default as IrradianceNode } from "./lighting/IrradianceNode.js";
383
- export { default as LightingContextNode, lightingContext } from "./lighting/LightingContextNode.js";
159
+ export { default as LightingContextNode } from "./lighting/LightingContextNode.js";
384
160
  export { default as LightingNode } from "./lighting/LightingNode.js";
385
- export { default as LightsNode, lights } from "./lighting/LightsNode.js";
161
+ export { default as LightNode, LightNodeScope } from "./lighting/LightNode.js";
162
+ export { default as LightProbeNode } from "./lighting/LightProbeNode.js";
163
+ export { default as LightsNode } from "./lighting/LightsNode.js";
386
164
  export { default as PointLightNode } from "./lighting/PointLightNode.js";
387
165
  export { default as RectAreaLightNode, RectAreaLightTexturesLib } from "./lighting/RectAreaLightNode.js";
388
166
  export { default as SpotLightNode } from "./lighting/SpotLightNode.js";
389
167
 
390
168
  // pmrem
391
- export { default as PMREMNode, pmremTexture } from "./pmrem/PMREMNode.js";
392
-
393
- // procedural
394
- export { checker, default as CheckerNode } from "./procedural/CheckerNode.js";
395
-
396
- // loaders
397
- export { default as NodeLoader } from "./loaders/NodeLoader.js";
398
- export { default as NodeMaterialLoader } from "./loaders/NodeMaterialLoader.js";
399
- export { default as NodeObjectLoader } from "./loaders/NodeObjectLoader.js";
400
-
401
- // materials
402
- export * from "./materials/Materials.js";
403
-
404
- // materialX
405
- export * from "./materialx/MaterialXNodes.js";
406
-
407
- // functions
408
- export { default as BRDF_GGX } from "./functions/BSDF/BRDF_GGX.js";
409
- export { default as BRDF_Lambert } from "./functions/BSDF/BRDF_Lambert.js";
410
- export { default as D_GGX } from "./functions/BSDF/D_GGX.js";
411
- export { default as DFGApprox } from "./functions/BSDF/DFGApprox.js";
412
- export { default as F_Schlick } from "./functions/BSDF/F_Schlick.js";
413
- export { default as V_GGX_SmithCorrelated } from "./functions/BSDF/V_GGX_SmithCorrelated.js";
414
-
415
- export { getDistanceAttenuation } from "./lighting/LightUtils.js";
169
+ export { default as PMREMNode } from "./pmrem/PMREMNode.js";
416
170
 
417
- export { default as getGeometryRoughness } from "./functions/material/getGeometryRoughness.js";
418
- export { default as getRoughness } from "./functions/material/getRoughness.js";
171
+ // parsers
172
+ export { default as GLSLNodeParser } from "./parsers/GLSLNodeParser.js";
419
173
 
174
+ // lighting models
420
175
  export { default as PhongLightingModel } from "./functions/PhongLightingModel.js";
421
176
  export { default as PhysicalLightingModel } from "./functions/PhysicalLightingModel.js";