@types/three 0.180.0 → 0.181.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/geometries/TextGeometry.d.ts +2 -0
  3. three/examples/jsm/gpgpu/BitonicSort.d.ts +21 -0
  4. three/examples/jsm/inspector/Inspector.d.ts +10 -0
  5. three/examples/jsm/inspector/RendererInspector.d.ts +4 -0
  6. three/examples/jsm/inspector/tabs/Parameters.d.ts +95 -0
  7. three/examples/jsm/inspector/ui/Tab.d.ts +3 -0
  8. three/examples/jsm/inspector/ui/Values.d.ts +80 -0
  9. three/examples/jsm/interactive/SelectionBox.d.ts +9 -9
  10. three/examples/jsm/lighting/TiledLighting.d.ts +1 -2
  11. three/examples/jsm/loaders/FontLoader.d.ts +1 -1
  12. three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
  13. three/examples/jsm/objects/SkyMesh.d.ts +6 -7
  14. three/examples/jsm/objects/WaterMesh.d.ts +2 -2
  15. three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
  16. three/examples/jsm/tsl/display/AfterImageNode.d.ts +4 -5
  17. three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -2
  18. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +1 -2
  19. three/examples/jsm/tsl/display/BleachBypass.d.ts +1 -2
  20. three/examples/jsm/tsl/display/BloomNode.d.ts +2 -3
  21. three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +1 -2
  22. three/examples/jsm/tsl/display/DenoiseNode.d.ts +1 -2
  23. three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +1 -2
  24. three/examples/jsm/tsl/display/DotScreenNode.d.ts +1 -2
  25. three/examples/jsm/tsl/display/FXAANode.d.ts +1 -2
  26. three/examples/jsm/tsl/display/FilmNode.d.ts +1 -2
  27. three/examples/jsm/tsl/display/GTAONode.d.ts +11 -10
  28. three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +2 -3
  29. three/examples/jsm/tsl/display/LensflareNode.d.ts +6 -7
  30. three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -3
  31. three/examples/jsm/tsl/display/MotionBlur.d.ts +1 -2
  32. three/examples/jsm/tsl/display/OutlineNode.d.ts +6 -7
  33. three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -2
  34. three/examples/jsm/tsl/display/PixelationPassNode.d.ts +1 -2
  35. three/examples/jsm/tsl/display/RGBShiftNode.d.ts +1 -2
  36. three/examples/jsm/tsl/display/SMAANode.d.ts +1 -2
  37. three/examples/jsm/tsl/display/SSAAPassNode.d.ts +1 -2
  38. three/examples/jsm/tsl/display/SSGINode.d.ts +30 -0
  39. three/examples/jsm/tsl/display/SSRNode.d.ts +12 -13
  40. three/examples/jsm/tsl/display/SSSNode.d.ts +18 -0
  41. three/examples/jsm/tsl/display/Sepia.d.ts +1 -2
  42. three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +1 -2
  43. three/examples/jsm/tsl/display/StereoPassNode.d.ts +1 -2
  44. three/examples/jsm/tsl/display/TRAANode.d.ts +1 -2
  45. three/examples/jsm/tsl/display/TransitionNode.d.ts +1 -2
  46. three/examples/jsm/tsl/display/boxBlur.d.ts +1 -2
  47. three/examples/jsm/tsl/display/hashBlur.d.ts +1 -2
  48. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +3 -4
  49. three/examples/jsm/tsl/math/Bayer.d.ts +1 -2
  50. three/examples/jsm/tsl/utils/Raymarching.d.ts +2 -3
  51. three/package.json +2 -2
  52. three/src/Three.Core.d.ts +1 -1
  53. three/src/Three.TSL.d.ts +7 -1
  54. three/src/Three.WebGPU.Nodes.d.ts +2 -0
  55. three/src/Three.WebGPU.d.ts +2 -0
  56. three/src/animation/AnimationMixer.d.ts +3 -3
  57. three/src/lights/DirectionalLight.d.ts +0 -1
  58. three/src/loaders/ObjectLoader.d.ts +3 -3
  59. three/src/loaders/TextureLoader.d.ts +3 -3
  60. three/src/materials/Material.d.ts +2 -2
  61. three/src/materials/MeshLambertMaterial.d.ts +1 -1
  62. three/src/materials/MeshMatcapMaterial.d.ts +14 -0
  63. three/src/materials/MeshPhongMaterial.d.ts +1 -1
  64. three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
  65. three/src/materials/MeshStandardMaterial.d.ts +7 -7
  66. three/src/materials/PointsMaterial.d.ts +1 -1
  67. three/src/materials/ShaderMaterial.d.ts +8 -8
  68. three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +1 -1
  69. three/src/materials/nodes/NodeMaterial.d.ts +2 -3
  70. three/src/materials/nodes/VolumeNodeMaterial.d.ts +1 -2
  71. three/src/math/Vector3.d.ts +2 -2
  72. three/src/nodes/Nodes.d.ts +1 -1
  73. three/src/nodes/TSL.d.ts +1 -1
  74. three/src/nodes/accessors/AccessorsUtils.d.ts +4 -5
  75. three/src/nodes/accessors/Arrays.d.ts +2 -3
  76. three/src/nodes/accessors/BatchNode.d.ts +1 -2
  77. three/src/nodes/accessors/Bitangent.d.ts +4 -5
  78. three/src/nodes/accessors/BufferAttributeNode.d.ts +8 -9
  79. three/src/nodes/accessors/BufferNode.d.ts +2 -2
  80. three/src/nodes/accessors/BuiltinNode.d.ts +1 -2
  81. three/src/nodes/accessors/Camera.d.ts +10 -11
  82. three/src/nodes/accessors/ClippingNode.d.ts +3 -6
  83. three/src/nodes/accessors/CubeTextureNode.d.ts +8 -9
  84. three/src/nodes/accessors/InstanceNode.d.ts +1 -2
  85. three/src/nodes/accessors/InstancedMeshNode.d.ts +1 -2
  86. three/src/nodes/accessors/Lights.d.ts +6 -7
  87. three/src/nodes/accessors/MaterialNode.d.ts +38 -39
  88. three/src/nodes/accessors/MaterialProperties.d.ts +3 -4
  89. three/src/nodes/accessors/MaterialReferenceNode.d.ts +2 -2
  90. three/src/nodes/accessors/ModelNode.d.ts +12 -13
  91. three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -2
  92. three/src/nodes/accessors/MorphNode.d.ts +1 -2
  93. three/src/nodes/accessors/Normal.d.ts +13 -14
  94. three/src/nodes/accessors/Object3DNode.d.ts +6 -7
  95. three/src/nodes/accessors/PointUVNode.d.ts +1 -2
  96. three/src/nodes/accessors/Position.d.ts +7 -8
  97. three/src/nodes/accessors/ReferenceBaseNode.d.ts +2 -3
  98. three/src/nodes/accessors/ReferenceNode.d.ts +2 -3
  99. three/src/nodes/accessors/ReflectVector.d.ts +4 -5
  100. three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -2
  101. three/src/nodes/accessors/SceneNode.d.ts +3 -4
  102. three/src/nodes/accessors/SkinningNode.d.ts +5 -6
  103. three/src/nodes/accessors/StorageBufferNode.d.ts +5 -5
  104. three/src/nodes/accessors/StorageTextureNode.d.ts +7 -4
  105. three/src/nodes/accessors/Tangent.d.ts +4 -6
  106. three/src/nodes/accessors/TangentUtils.d.ts +2 -3
  107. three/src/nodes/accessors/Texture3DNode.d.ts +3 -4
  108. three/src/nodes/accessors/TextureBicubic.d.ts +2 -3
  109. three/src/nodes/accessors/TextureNode.d.ts +29 -24
  110. three/src/nodes/accessors/TextureSizeNode.d.ts +1 -2
  111. three/src/nodes/accessors/UV.d.ts +1 -2
  112. three/src/nodes/accessors/UniformArrayNode.d.ts +2 -3
  113. three/src/nodes/accessors/UserDataNode.d.ts +1 -2
  114. three/src/nodes/accessors/VelocityNode.d.ts +1 -2
  115. three/src/nodes/accessors/VertexColorNode.d.ts +1 -2
  116. three/src/nodes/code/CodeNode.d.ts +4 -5
  117. three/src/nodes/code/ExpressionNode.d.ts +1 -2
  118. three/src/nodes/code/FunctionCallNode.d.ts +6 -5
  119. three/src/nodes/code/FunctionNode.d.ts +4 -6
  120. three/src/nodes/code/ScriptableNode.d.ts +1 -2
  121. three/src/nodes/code/ScriptableValueNode.d.ts +1 -2
  122. three/src/nodes/core/ArrayNode.d.ts +6 -6
  123. three/src/nodes/core/AssignNode.d.ts +1 -8
  124. three/src/nodes/core/AttributeNode.d.ts +1 -2
  125. three/src/nodes/core/BypassNode.d.ts +5 -5
  126. three/src/nodes/core/ContextNode.d.ts +24 -12
  127. three/src/nodes/core/IndexNode.d.ts +10 -7
  128. three/src/nodes/core/InspectorNode.d.ts +16 -0
  129. three/src/nodes/core/IsolateNode.d.ts +36 -0
  130. three/src/nodes/core/MRTNode.d.ts +3 -4
  131. three/src/nodes/core/Node.d.ts +18 -2
  132. three/src/nodes/core/NodeUtils.d.ts +0 -10
  133. three/src/nodes/core/OutputStructNode.d.ts +1 -2
  134. three/src/nodes/core/ParameterNode.d.ts +1 -2
  135. three/src/nodes/core/PropertyNode.d.ts +30 -31
  136. three/src/nodes/core/StackNode.d.ts +1 -4
  137. three/src/nodes/core/StructNode.d.ts +3 -4
  138. three/src/nodes/core/SubBuildNode.d.ts +1 -2
  139. three/src/nodes/core/UniformNode.d.ts +3 -6
  140. three/src/nodes/core/VarNode.d.ts +12 -8
  141. three/src/nodes/core/VaryingNode.d.ts +12 -10
  142. three/src/nodes/display/BlendModes.d.ts +11 -12
  143. three/src/nodes/display/BumpMapNode.d.ts +1 -2
  144. three/src/nodes/display/ColorAdjustment.d.ts +7 -8
  145. three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -3
  146. three/src/nodes/display/ColorSpaceNode.d.ts +19 -9
  147. three/src/nodes/display/FrontFacingNode.d.ts +3 -4
  148. three/src/nodes/display/NormalMapNode.d.ts +1 -2
  149. three/src/nodes/display/PassNode.d.ts +20 -11
  150. three/src/nodes/display/PosterizeNode.d.ts +1 -2
  151. three/src/nodes/display/RenderOutputNode.d.ts +11 -6
  152. three/src/nodes/display/ScreenNode.d.ts +9 -10
  153. three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
  154. three/src/nodes/display/ToneMappingNode.d.ts +9 -8
  155. three/src/nodes/display/ToonOutlinePassNode.d.ts +1 -2
  156. three/src/nodes/display/ViewportDepthNode.d.ts +3 -4
  157. three/src/nodes/display/ViewportDepthTextureNode.d.ts +1 -2
  158. three/src/nodes/display/ViewportSharedTextureNode.d.ts +1 -2
  159. three/src/nodes/display/ViewportTextureNode.d.ts +2 -3
  160. three/src/nodes/fog/Fog.d.ts +5 -6
  161. three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +4 -5
  162. three/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.d.ts +14 -0
  163. three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -2
  164. three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -2
  165. three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -2
  166. three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -2
  167. three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -2
  168. three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -2
  169. three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +1 -2
  170. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -2
  171. three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -2
  172. three/src/nodes/functions/ShadowMaskModel.d.ts +1 -2
  173. three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +1 -2
  174. three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -2
  175. three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +1 -2
  176. three/src/nodes/functions/material/getRoughness.d.ts +1 -2
  177. three/src/nodes/functions/material/getShIrradianceAt.d.ts +1 -2
  178. three/src/nodes/geometry/RangeNode.d.ts +1 -2
  179. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +10 -11
  180. three/src/nodes/gpgpu/BarrierNode.d.ts +3 -4
  181. three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +5 -6
  182. three/src/nodes/gpgpu/ComputeNode.d.ts +21 -13
  183. three/src/nodes/gpgpu/SubgroupFunctionNode.d.ts +25 -26
  184. three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +1 -2
  185. three/src/nodes/lighting/AnalyticLightNode.d.ts +1 -2
  186. three/src/nodes/lighting/LightUtils.d.ts +1 -2
  187. three/src/nodes/lighting/LightingContextNode.d.ts +1 -2
  188. three/src/nodes/lighting/LightsNode.d.ts +1 -2
  189. three/src/nodes/lighting/PointLightNode.d.ts +5 -6
  190. three/src/nodes/lighting/PointShadowNode.d.ts +4 -5
  191. three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
  192. three/src/nodes/lighting/ShadowFilterNode.d.ts +4 -5
  193. three/src/nodes/lighting/ShadowNode.d.ts +1 -2
  194. three/src/nodes/lighting/SpotLightNode.d.ts +1 -2
  195. three/src/nodes/materialx/MaterialXNodes.d.ts +41 -42
  196. three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -3
  197. three/src/nodes/materialx/lib/mx_noise.d.ts +73 -74
  198. three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -2
  199. three/src/nodes/math/BitcastNode.d.ts +5 -6
  200. three/src/nodes/math/ConditionalNode.d.ts +11 -5
  201. three/src/nodes/math/Hash.d.ts +1 -2
  202. three/src/nodes/math/MathNode.d.ts +223 -77
  203. three/src/nodes/math/OperatorNode.d.ts +203 -59
  204. three/src/nodes/math/TriNoise3D.d.ts +3 -4
  205. three/src/nodes/pmrem/PMREMNode.d.ts +1 -2
  206. three/src/nodes/pmrem/PMREMUtils.d.ts +3 -4
  207. three/src/nodes/procedural/Checker.d.ts +1 -2
  208. three/src/nodes/shapes/Shapes.d.ts +1 -2
  209. three/src/nodes/tsl/TSLBase.d.ts +2 -1
  210. three/src/nodes/tsl/TSLCore.d.ts +235 -128
  211. three/src/nodes/utils/CubeMapNode.d.ts +1 -2
  212. three/src/nodes/utils/DebugNode.d.ts +9 -5
  213. three/src/nodes/utils/Discard.d.ts +6 -6
  214. three/src/nodes/utils/EquirectUV.d.ts +1 -2
  215. three/src/nodes/utils/EventNode.d.ts +8 -3
  216. three/src/nodes/utils/FunctionOverloadingNode.d.ts +1 -2
  217. three/src/nodes/utils/LoopNode.d.ts +7 -6
  218. three/src/nodes/utils/MatcapUV.d.ts +1 -2
  219. three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -2
  220. three/src/nodes/utils/Oscillators.d.ts +4 -5
  221. three/src/nodes/utils/Packing.d.ts +2 -3
  222. three/src/nodes/utils/PostProcessingUtils.d.ts +5 -4
  223. three/src/nodes/utils/RTTNode.d.ts +2 -3
  224. three/src/nodes/utils/ReflectorNode.d.ts +2 -3
  225. three/src/nodes/utils/RemapNode.d.ts +29 -7
  226. three/src/nodes/utils/RotateNode.d.ts +1 -2
  227. three/src/nodes/utils/SampleNode.d.ts +1 -2
  228. three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -2
  229. three/src/nodes/utils/SpriteUtils.d.ts +1 -2
  230. three/src/nodes/utils/StorageArrayElementNode.d.ts +1 -2
  231. three/src/nodes/utils/Timer.d.ts +3 -4
  232. three/src/nodes/utils/TriplanarTextures.d.ts +2 -3
  233. three/src/nodes/utils/UVUtils.d.ts +2 -3
  234. three/src/nodes/utils/ViewportUtils.d.ts +1 -2
  235. three/src/renderers/common/Animation.d.ts +4 -1
  236. three/src/renderers/common/Bindings.d.ts +12 -0
  237. three/src/renderers/common/CanvasTarget.d.ts +142 -0
  238. three/src/renderers/common/Geometries.d.ts +1 -0
  239. three/src/renderers/common/InspectorBase.d.ts +105 -0
  240. three/src/renderers/common/PostProcessing.d.ts +3 -0
  241. three/src/renderers/common/QuadMesh.d.ts +3 -0
  242. three/src/renderers/common/RenderContexts.d.ts +3 -1
  243. three/src/renderers/common/Renderer.d.ts +124 -36
  244. three/src/renderers/common/SampledTexture.d.ts +2 -0
  245. three/src/renderers/common/Sampler.d.ts +2 -0
  246. three/src/renderers/common/Textures.d.ts +20 -0
  247. three/src/renderers/common/TimestampQueryPool.d.ts +24 -1
  248. three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
  249. three/src/renderers/common/nodes/NodeLibrary.d.ts +3 -7
  250. three/src/renderers/common/nodes/Nodes.d.ts +13 -14
  251. three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +5 -0
  252. three/src/scenes/Scene.d.ts +2 -2
  253. three/src/textures/CanvasTexture.d.ts +3 -3
  254. three/src/textures/CompressedArrayTexture.d.ts +6 -9
  255. three/src/textures/CompressedCubeTexture.d.ts +3 -3
  256. three/src/textures/CompressedTexture.d.ts +6 -8
  257. three/src/textures/CubeTexture.d.ts +4 -11
  258. three/src/textures/Data3DTexture.d.ts +5 -10
  259. three/src/textures/DataArrayTexture.d.ts +10 -10
  260. three/src/textures/DataTexture.d.ts +4 -11
  261. three/src/textures/DepthTexture.d.ts +7 -8
  262. three/src/textures/ExternalTexture.d.ts +3 -1
  263. three/src/textures/FramebufferTexture.d.ts +6 -1
  264. three/src/textures/Source.d.ts +3 -3
  265. three/src/textures/Texture.d.ts +8 -8
  266. three/src/textures/VideoFrameTexture.d.ts +1 -1
  267. three/src/textures/VideoTexture.d.ts +2 -2
  268. three/src/utils.d.ts +18 -2
  269. three/src/nodes/core/CacheNode.d.ts +0 -21
@@ -1,5 +1,4 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
3
  export type AtomicMethod =
5
4
  | typeof AtomicFunctionNode.ATOMIC_LOAD
@@ -35,48 +34,48 @@ export const atomicFunc: (
35
34
  method: AtomicMethod,
36
35
  pointerNode: Node,
37
36
  valueNode: Node,
38
- ) => ShaderNodeObject<AtomicFunctionNode>;
37
+ ) => AtomicFunctionNode;
39
38
 
40
39
  export const atomicLoad: (
41
40
  pointerNode: Node,
42
- ) => ShaderNodeObject<AtomicFunctionNode>;
41
+ ) => AtomicFunctionNode;
43
42
 
44
43
  export const atomicStore: (
45
44
  pointerNode: Node,
46
45
  valueNode: Node | number,
47
- ) => ShaderNodeObject<AtomicFunctionNode>;
46
+ ) => AtomicFunctionNode;
48
47
 
49
48
  export const atomicAdd: (
50
49
  pointerNode: Node,
51
50
  valueNode: Node | number,
52
- ) => ShaderNodeObject<AtomicFunctionNode>;
51
+ ) => AtomicFunctionNode;
53
52
 
54
53
  export const atomicSub: (
55
54
  pointerNode: Node,
56
55
  valueNode: Node | number,
57
- ) => ShaderNodeObject<AtomicFunctionNode>;
56
+ ) => AtomicFunctionNode;
58
57
 
59
58
  export const atomicMax: (
60
59
  pointerNode: Node,
61
60
  valueNode: Node,
62
- ) => ShaderNodeObject<AtomicFunctionNode>;
61
+ ) => AtomicFunctionNode;
63
62
 
64
63
  export const atomicMin: (
65
64
  pointerNode: Node,
66
65
  valueNode: Node,
67
- ) => ShaderNodeObject<AtomicFunctionNode>;
66
+ ) => AtomicFunctionNode;
68
67
 
69
68
  export const atomicAnd: (
70
69
  pointerNode: Node,
71
70
  valueNode: Node,
72
- ) => ShaderNodeObject<AtomicFunctionNode>;
71
+ ) => AtomicFunctionNode;
73
72
 
74
73
  export const atomicOr: (
75
74
  pointerNode: Node,
76
75
  valueNode: Node,
77
- ) => ShaderNodeObject<AtomicFunctionNode>;
76
+ ) => AtomicFunctionNode;
78
77
 
79
78
  export const atomicXor: (
80
79
  pointerNode: Node,
81
80
  valueNode: Node,
82
- ) => ShaderNodeObject<AtomicFunctionNode>;
81
+ ) => AtomicFunctionNode;
@@ -1,5 +1,4 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
3
  declare class BarrierNode extends Node {
5
4
  scope: string;
@@ -7,6 +6,6 @@ declare class BarrierNode extends Node {
7
6
  constructor(scope: string);
8
7
  }
9
8
 
10
- export const workgroupBarrier: () => ShaderNodeObject<Node>;
11
- export const storageBarrier: () => ShaderNodeObject<Node>;
12
- export const textureBarrier: () => ShaderNodeObject<Node>;
9
+ export const workgroupBarrier: () => Node;
10
+ export const storageBarrier: () => Node;
11
+ export const textureBarrier: () => Node;
@@ -1,5 +1,4 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
3
  declare class ComputeBuiltinNode extends Node {
5
4
  constructor(builtinName: string, nodeType: string);
@@ -7,8 +6,8 @@ declare class ComputeBuiltinNode extends Node {
7
6
 
8
7
  export default ComputeBuiltinNode;
9
8
 
10
- export const numWorkgroups: ShaderNodeObject<ComputeBuiltinNode>;
11
- export const workgroupId: ShaderNodeObject<ComputeBuiltinNode>;
12
- export const globalId: ShaderNodeObject<ComputeBuiltinNode>;
13
- export const localId: ShaderNodeObject<ComputeBuiltinNode>;
14
- export const subgroupSize: ShaderNodeObject<ComputeBuiltinNode>;
9
+ export const numWorkgroups: ComputeBuiltinNode;
10
+ export const workgroupId: ComputeBuiltinNode;
11
+ export const globalId: ComputeBuiltinNode;
12
+ export const localId: ComputeBuiltinNode;
13
+ export const subgroupSize: ComputeBuiltinNode;
@@ -1,43 +1,51 @@
1
1
  import Renderer from "../../renderers/common/Renderer.js";
2
2
  import Node from "../core/Node.js";
3
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
3
 
5
4
  export default class ComputeNode extends Node {
6
5
  readonly isComputeNode: true;
7
6
 
8
7
  computeNode: Node;
9
8
  workgroupSize: number[];
10
- count: number | null;
9
+ count: number | number[] | null;
11
10
  name: string;
12
11
 
13
12
  onInitFunction: ((args: { renderer: Renderer }) => void) | null;
14
13
 
15
14
  constructor(computeNode: Node, workgroupSize: number[]);
16
15
 
17
- setCount(count: number): this;
18
- getCount(): number | null;
16
+ setCount(count: number | number[]): this;
17
+ getCount(): number | number[] | null;
19
18
 
20
- setName(name: string): this;
19
+ setName: (name: string) => this;
21
20
 
22
21
  /**
23
22
  * @deprecated "label()" has been deprecated. Use "setName()" instead.
24
23
  */
25
- label(name: string): this;
24
+ label: (name: string) => this;
26
25
 
27
26
  onInit(callback: ((args: { renderer: Renderer }) => void) | null): void;
28
27
  }
29
28
 
30
- export const computeKernel: (node: Node, workgroupSize?: number[]) => ShaderNodeObject<ComputeNode>;
29
+ export const computeKernel: (node: Node, workgroupSize?: number[]) => ComputeNode;
31
30
 
32
31
  export const compute: (
33
32
  node: Node,
34
33
  count: number,
35
34
  workgroupSize?: number[],
36
- ) => ShaderNodeObject<ComputeNode>;
37
-
38
- declare module "../tsl/TSLCore.js" {
39
- interface NodeElements {
40
- compute: typeof compute;
41
- computeKernel: typeof computeKernel;
35
+ ) => ComputeNode;
36
+
37
+ declare module "../Nodes.js" {
38
+ interface Node {
39
+ compute: (
40
+ count: number,
41
+ workgroupSize?: number[],
42
+ ) => ComputeNode;
43
+ computeAssign: (
44
+ count: number,
45
+ workgroupSize?: number[],
46
+ ) => this;
47
+
48
+ computeKernel: (workgroupSize?: number[]) => ComputeNode;
49
+ computeKernelAssign: (workgroupSize?: number[]) => this;
42
50
  }
43
51
  }
@@ -1,6 +1,5 @@
1
1
  import Node from "../core/Node.js";
2
2
  import TempNode from "../core/TempNode.js";
3
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
3
 
5
4
  export type SubgroupFunctionNodeMethod0 = typeof SubgroupFunctionNode.SUBGROUP_ELECT;
6
5
 
@@ -71,30 +70,30 @@ declare class SubgroupFunctionNode extends TempNode {
71
70
 
72
71
  export default SubgroupFunctionNode;
73
72
 
74
- export const subgroupElect: () => ShaderNodeObject<Node>;
73
+ export const subgroupElect: () => Node;
75
74
 
76
- export const subgroupBallot: (pred: Node) => ShaderNodeObject<Node>;
77
- export const subgroupAdd: (e: Node) => ShaderNodeObject<Node>;
78
- export const subgroupInclusiveAdd: (e: Node) => ShaderNodeObject<Node>;
79
- export const subgroupExclusiveAdd: (e: Node) => ShaderNodeObject<Node>;
80
- export const subgroupMul: (e: Node) => ShaderNodeObject<Node>;
81
- export const subgroupInclusiveMul: (e: Node) => ShaderNodeObject<Node>;
82
- export const subgroupExclusiveMul: (e: Node) => ShaderNodeObject<Node>;
83
- export const subgroupAnd: (e: Node) => ShaderNodeObject<Node>;
84
- export const subgroupOr: (e: Node) => ShaderNodeObject<Node>;
85
- export const subgroupXor: (e: Node) => ShaderNodeObject<Node>;
86
- export const subgroupMin: (e: Node) => ShaderNodeObject<Node>;
87
- export const subgroupMax: (e: Node) => ShaderNodeObject<Node>;
88
- export const subgroupAll: () => ShaderNodeObject<Node>;
89
- export const subgroupAny: () => ShaderNodeObject<Node>;
90
- export const subgroupBroadcastFirst: (e: Node, id: Node) => ShaderNodeObject<Node>;
91
- export const quadSwapX: (e: Node) => ShaderNodeObject<Node>;
92
- export const quadSwapY: (e: Node) => ShaderNodeObject<Node>;
93
- export const quadSwapDiagonal: (e: Node) => ShaderNodeObject<Node>;
75
+ export const subgroupBallot: (pred: Node) => Node;
76
+ export const subgroupAdd: (e: Node) => Node;
77
+ export const subgroupInclusiveAdd: (e: Node) => Node;
78
+ export const subgroupExclusiveAdd: (e: Node) => Node;
79
+ export const subgroupMul: (e: Node) => Node;
80
+ export const subgroupInclusiveMul: (e: Node) => Node;
81
+ export const subgroupExclusiveMul: (e: Node) => Node;
82
+ export const subgroupAnd: (e: Node) => Node;
83
+ export const subgroupOr: (e: Node) => Node;
84
+ export const subgroupXor: (e: Node) => Node;
85
+ export const subgroupMin: (e: Node) => Node;
86
+ export const subgroupMax: (e: Node) => Node;
87
+ export const subgroupAll: () => Node;
88
+ export const subgroupAny: () => Node;
89
+ export const subgroupBroadcastFirst: (e: Node, id: Node) => Node;
90
+ export const quadSwapX: (e: Node) => Node;
91
+ export const quadSwapY: (e: Node) => Node;
92
+ export const quadSwapDiagonal: (e: Node) => Node;
94
93
 
95
- export const subgroupBroadcast: (e: Node, id: Node) => ShaderNodeObject<Node>;
96
- export const subgroupShuffle: (v: Node, id: Node) => ShaderNodeObject<Node>;
97
- export const subgroupShuffleXor: (v: Node, mask: Node) => ShaderNodeObject<Node>;
98
- export const subgroupShuffleUp: (v: Node, delta: Node) => ShaderNodeObject<Node>;
99
- export const subgroupShuffleDown: (v: Node, delta: Node) => ShaderNodeObject<Node>;
100
- export const quadBroadcast: (e: Node) => ShaderNodeObject<Node>;
94
+ export const subgroupBroadcast: (e: Node, id: Node) => Node;
95
+ export const subgroupShuffle: (v: Node, id: Node) => Node;
96
+ export const subgroupShuffleXor: (v: Node, mask: Node) => Node;
97
+ export const subgroupShuffleUp: (v: Node, delta: Node) => Node;
98
+ export const subgroupShuffleDown: (v: Node, delta: Node) => Node;
99
+ export const quadBroadcast: (e: Node) => Node;
@@ -1,5 +1,4 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
2
 
4
3
  declare class WorkgroupInfoNode extends Node {
5
4
  bufferType: string;
@@ -16,4 +15,4 @@ declare class WorkgroupInfoNode extends Node {
16
15
 
17
16
  export default WorkgroupInfoNode;
18
17
 
19
- export const workgroupArray: (type: string, count?: number) => ShaderNodeObject<WorkgroupInfoNode>;
18
+ export const workgroupArray: (type: string, count?: number) => WorkgroupInfoNode;
@@ -1,7 +1,6 @@
1
1
  import { Light } from "../../lights/Light.js";
2
2
  import Node from "../core/Node.js";
3
3
  import NodeBuilder from "../core/NodeBuilder.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
  import LightingNode from "./LightingNode.js";
6
5
  import { DirectLightData, DirectRectAreaLightData } from "./LightsNode.js";
7
6
  import ShadowNode from "./ShadowNode.js";
@@ -23,7 +22,7 @@ declare class AnalyticLightNode<T extends Light> extends LightingNode {
23
22
 
24
23
  setupDirectRectArea(builder: NodeBuilder): DirectRectAreaLightData | undefined;
25
24
 
26
- setupShadowNode(): ShaderNodeObject<ShadowNode>;
25
+ setupShadowNode(): ShadowNode;
27
26
 
28
27
  setupShadow(builder: NodeBuilder): void;
29
28
  }
@@ -1,9 +1,8 @@
1
1
  import Node from "../core/Node.js";
2
2
  import ConditionalNode from "../math/ConditionalNode.js";
3
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
3
 
5
4
  export const getDistanceAttenuation: (args: {
6
5
  lightDistance: Node;
7
6
  cutoffDistance: Node;
8
7
  decayExponent: Node;
9
- }) => ShaderNodeObject<ConditionalNode>;
8
+ }) => ConditionalNode;
@@ -1,7 +1,6 @@
1
1
  import ContextNode from "../core/ContextNode.js";
2
2
  import LightingModel, { LightingModelReflectedLight } from "../core/LightingModel.js";
3
3
  import Node from "../core/Node.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
  import LightsNode from "./LightsNode.js";
6
5
 
7
6
  export interface LightingContext {
@@ -32,4 +31,4 @@ export default class LightingContextNode extends ContextNode {
32
31
  export const lightingContext: (
33
32
  node: LightsNode,
34
33
  lightingModelNode?: LightingModel,
35
- ) => ShaderNodeObject<LightingContextNode>;
34
+ ) => LightingContextNode;
@@ -1,7 +1,6 @@
1
1
  import { Light } from "../../lights/Light.js";
2
2
  import Node from "../core/Node.js";
3
3
  import { NodeBuilder } from "../Nodes.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
  import LightingNode from "./LightingNode.js";
6
5
 
7
6
  export interface DirectLightData {
@@ -44,4 +43,4 @@ declare class LightsNode extends Node {
44
43
 
45
44
  export default LightsNode;
46
45
 
47
- export const lights: (lights?: Light[]) => ShaderNodeObject<LightsNode>;
46
+ export const lights: (lights?: Light[]) => LightsNode;
@@ -1,15 +1,14 @@
1
1
  import { PointLight } from "../../lights/PointLight.js";
2
2
  import Node from "../core/Node.js";
3
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
3
  import AnalyticLightNode from "./AnalyticLightNode.js";
5
4
  import { DirectLightData } from "./LightsNode.js";
6
5
  import PointShadowNode from "./PointShadowNode.js";
7
6
 
8
7
  export const directPointLight: (params: {
9
- color: ShaderNodeObject<Node>;
10
- lightViewPosition: ShaderNodeObject<Node>;
11
- cutoffDistance: ShaderNodeObject<Node>;
12
- decayExponent: ShaderNodeObject<Node>;
8
+ color: Node;
9
+ lightViewPosition: Node;
10
+ cutoffDistance: Node;
11
+ decayExponent: Node;
13
12
  }) => DirectLightData;
14
13
 
15
14
  declare class PointLightNode extends AnalyticLightNode<PointLight> {
@@ -18,7 +17,7 @@ declare class PointLightNode extends AnalyticLightNode<PointLight> {
18
17
 
19
18
  constructor(light?: PointLight | null);
20
19
 
21
- setupShadowNode(): ShaderNodeObject<PointShadowNode>;
20
+ setupShadowNode(): PointShadowNode;
22
21
  }
23
22
 
24
23
  export default PointLightNode;
@@ -1,17 +1,16 @@
1
1
  import { Light } from "../../lights/Light.js";
2
2
  import { LightShadow } from "../../lights/LightShadow.js";
3
3
  import Node from "../core/Node.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
  import ShadowNode from "./ShadowNode.js";
6
5
 
7
- export const cubeToUV: (pos: Node, texelSizeY: Node) => ShaderNodeObject<Node>;
6
+ export const cubeToUV: (pos: Node, texelSizeY: Node) => Node;
8
7
 
9
8
  export const BasicPointShadowFilter: (
10
9
  depthTexture: Node,
11
10
  bd3D: Node,
12
11
  dp: Node,
13
12
  texelSize: Node,
14
- ) => ShaderNodeObject<Node>;
13
+ ) => Node;
15
14
 
16
15
  export const PointShadowFilter: (
17
16
  depthTexture: Node,
@@ -19,7 +18,7 @@ export const PointShadowFilter: (
19
18
  dp: Node,
20
19
  texelSize: Node,
21
20
  shadow: Node,
22
- ) => ShaderNodeObject<Node>;
21
+ ) => Node;
23
22
 
24
23
  declare class PointShadowNode extends ShadowNode {
25
24
  constructor(light: Light, shadow: LightShadow | null);
@@ -27,4 +26,4 @@ declare class PointShadowNode extends ShadowNode {
27
26
 
28
27
  export default PointShadowNode;
29
28
 
30
- export const pointShadow: (light: Light, shadow?: LightShadow | null) => ShaderNodeObject<PointShadowNode>;
29
+ export const pointShadow: (light: Light, shadow?: LightShadow | null) => PointShadowNode;
@@ -1,7 +1,6 @@
1
1
  import { Light } from "../../lights/Light.js";
2
2
  import Node from "../core/Node.js";
3
3
  import NodeBuilder from "../core/NodeBuilder.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
 
6
5
  declare class ShadowBaseNode extends Node {
7
6
  light: Light;
@@ -13,6 +12,6 @@ declare class ShadowBaseNode extends Node {
13
12
  setupShadowPosition(builder: NodeBuilder): void;
14
13
  }
15
14
 
16
- export const shadowPositionWorld: ShaderNodeObject<Node>;
15
+ export const shadowPositionWorld: Node;
17
16
 
18
17
  export default ShadowBaseNode;
@@ -1,28 +1,27 @@
1
1
  import { Light } from "../../lights/Light.js";
2
2
  import NodeMaterial from "../../materials/nodes/NodeMaterial.js";
3
3
  import Node from "../core/Node.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
 
6
5
  export const BasicShadowFilter: (
7
6
  depthTexture: Node,
8
7
  shadowCoord: Node,
9
- ) => ShaderNodeObject<Node>;
8
+ ) => Node;
10
9
 
11
10
  export const PCFShadowFilter: (
12
11
  depthTexture: Node,
13
12
  shadowCoord: Node,
14
13
  shadow: Node,
15
- ) => ShaderNodeObject<Node>;
14
+ ) => Node;
16
15
 
17
16
  export const PCFSoftShadowFilter: (
18
17
  depthTexture: Node,
19
18
  shadowCoord: Node,
20
19
  shadow: Node,
21
- ) => ShaderNodeObject<Node>;
20
+ ) => Node;
22
21
 
23
22
  export const VSMShadowFilter: (
24
23
  depthTexture: Node,
25
24
  shadowCoord: Node,
26
- ) => ShaderNodeObject<Node>;
25
+ ) => Node;
27
26
 
28
27
  export const getShadowMaterial: (light: Light) => NodeMaterial;
@@ -8,7 +8,6 @@ import { Group } from "../../objects/Group.js";
8
8
  import ClippingContext from "../../renderers/common/ClippingContext.js";
9
9
  import Renderer from "../../renderers/common/Renderer.js";
10
10
  import { Scene } from "../../scenes/Scene.js";
11
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
12
11
  import LightsNode from "./LightsNode.js";
13
12
  import ShadowBaseNode from "./ShadowBaseNode.js";
14
13
 
@@ -35,4 +34,4 @@ declare class ShadowNode extends ShadowBaseNode {
35
34
 
36
35
  export default ShadowNode;
37
36
 
38
- export const shadow: (light: Light, shadow?: LightShadow) => ShaderNodeObject<ShadowNode>;
37
+ export const shadow: (light: Light, shadow?: LightShadow) => ShadowNode;
@@ -1,7 +1,6 @@
1
1
  import { SpotLight } from "../../lights/SpotLight.js";
2
2
  import Node from "../core/Node.js";
3
3
  import NodeBuilder from "../core/NodeBuilder.js";
4
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
5
4
  import AnalyticLightNode from "./AnalyticLightNode.js";
6
5
 
7
6
  declare class SpotLightNode extends AnalyticLightNode<SpotLight> {
@@ -17,7 +16,7 @@ declare class SpotLightNode extends AnalyticLightNode<SpotLight> {
17
16
 
18
17
  constructor(light?: SpotLight | null);
19
18
 
20
- getLightCoord(builder: NodeBuilder): ShaderNodeObject<Node>;
19
+ getLightCoord(builder: NodeBuilder): Node;
21
20
  }
22
21
 
23
22
  declare module "three" {
@@ -1,21 +1,20 @@
1
1
  import Node from "../core/Node.js";
2
2
  import MathNode from "../math/MathNode.js";
3
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
4
3
  import { mx_hsvtorgb, mx_rgbtohsv } from "./lib/mx_hsv.js";
5
4
  import { mx_srgb_texture_to_lin_rec709 } from "./lib/mx_transform_color.js";
6
5
 
7
- export const mx_aastep: (threshold: Node | number, value: Node | number) => ShaderNodeObject<MathNode>;
6
+ export const mx_aastep: (threshold: Node | number, value: Node | number) => MathNode;
8
7
 
9
8
  export const mx_ramplr: (
10
9
  valuel: Node | number,
11
10
  valuer: Node | number,
12
11
  texcoord?: Node,
13
- ) => ShaderNodeObject<MathNode>;
12
+ ) => MathNode;
14
13
  export const mx_ramptb: (
15
14
  valuet: Node | number,
16
15
  valueb: Node | number,
17
16
  texcoord?: Node,
18
- ) => ShaderNodeObject<MathNode>;
17
+ ) => MathNode;
19
18
 
20
19
  export const mx_ramp4: (
21
20
  valuetl: Node | number,
@@ -23,50 +22,50 @@ export const mx_ramp4: (
23
22
  valuebl: Node | number,
24
23
  valuebr: Node | number,
25
24
  texcoord?: Node,
26
- ) => ShaderNodeObject<MathNode>;
25
+ ) => MathNode;
27
26
 
28
27
  export const mx_splitlr: (
29
28
  valuel: Node | number,
30
29
  valuer: Node | number,
31
30
  center: Node | number,
32
31
  texcoord?: Node,
33
- ) => ShaderNodeObject<MathNode>;
32
+ ) => MathNode;
34
33
  export const mx_splittb: (
35
34
  valuet: Node | number,
36
35
  valueb: Node | number,
37
36
  center: Node | number,
38
37
  texcoord?: Node,
39
- ) => ShaderNodeObject<MathNode>;
38
+ ) => MathNode;
40
39
 
41
40
  export const mx_transform_uv: (
42
41
  uv_scale?: Node | number,
43
42
  uv_offset?: Node | number,
44
43
  uv_geo?: Node,
45
- ) => ShaderNodeObject<Node>;
44
+ ) => Node;
46
45
 
47
- export const mx_safepower: (in1: Node | number, in2?: Node | number) => ShaderNodeObject<Node>;
46
+ export const mx_safepower: (in1: Node | number, in2?: Node | number) => Node;
48
47
 
49
48
  export const mx_contrast: (
50
49
  input: Node | number,
51
50
  amount?: Node | number,
52
51
  pivot?: Node | number,
53
- ) => ShaderNodeObject<Node>;
52
+ ) => Node;
54
53
 
55
54
  export const mx_noise_float: (
56
55
  texcoord?: Node,
57
56
  amplitude?: Node | number,
58
57
  pivot?: Node | number,
59
- ) => ShaderNodeObject<Node>;
58
+ ) => Node;
60
59
  export const mx_noise_vec3: (
61
60
  texcoord?: Node,
62
61
  amplitude?: Node | number,
63
62
  pivot?: Node | number,
64
- ) => ShaderNodeObject<Node>;
63
+ ) => Node;
65
64
  export const mx_noise_vec4: (
66
65
  texcoord?: Node,
67
66
  amplitude?: Node | number,
68
67
  pivot?: Node | number,
69
- ) => ShaderNodeObject<Node>;
68
+ ) => Node;
70
69
 
71
70
  export const mx_unifiednoise2d: (
72
71
  noiseType: Node,
@@ -80,7 +79,7 @@ export const mx_unifiednoise2d: (
80
79
  octaves?: Node | number,
81
80
  lacunarity?: Node | number,
82
81
  diminish?: Node | number,
83
- ) => ShaderNodeObject<Node>;
82
+ ) => Node;
84
83
  export const mx_unifiednoise3d: (
85
84
  noiseType: Node,
86
85
  texcoord?: Node,
@@ -93,22 +92,22 @@ export const mx_unifiednoise3d: (
93
92
  octaves?: Node | number,
94
93
  lacunarity?: Node | number,
95
94
  diminish?: Node | number,
96
- ) => ShaderNodeObject<Node>;
95
+ ) => Node;
97
96
 
98
97
  export function mx_worley_noise_float(
99
98
  texcoord?: Node,
100
99
  jitter?: Node | number,
101
- ): ShaderNodeObject<Node>;
100
+ ): Node;
102
101
  export function mx_worley_noise_vec2(
103
102
  texcoord?: Node,
104
103
  jitter?: Node | number,
105
- ): ShaderNodeObject<Node>;
104
+ ): Node;
106
105
  export function mx_worley_noise_vec3(
107
106
  texcoord?: Node,
108
107
  jitter?: Node | number,
109
- ): ShaderNodeObject<Node>;
108
+ ): Node;
110
109
 
111
- export function mx_cell_noise_float(texcoord?: Node): ShaderNodeObject<Node>;
110
+ export function mx_cell_noise_float(texcoord?: Node): Node;
112
111
 
113
112
  export function mx_fractal_noise_float(
114
113
  position?: Node,
@@ -116,46 +115,46 @@ export function mx_fractal_noise_float(
116
115
  lacunarity?: Node | number,
117
116
  diminish?: Node | number,
118
117
  amplitude?: Node | number,
119
- ): ShaderNodeObject<Node>;
118
+ ): Node;
120
119
  export function mx_fractal_noise_vec2(
121
120
  position?: Node,
122
121
  octaves?: Node | number,
123
122
  lacunarity?: Node | number,
124
123
  diminish?: Node | number,
125
124
  amplitude?: Node | number,
126
- ): ShaderNodeObject<Node>;
125
+ ): Node;
127
126
  export function mx_fractal_noise_vec3(
128
127
  position?: Node,
129
128
  octaves?: Node | number,
130
129
  lacunarity?: Node | number,
131
130
  diminish?: Node | number,
132
131
  amplitude?: Node | number,
133
- ): ShaderNodeObject<Node>;
132
+ ): Node;
134
133
  export function mx_fractal_noise_vec4(
135
134
  position?: Node,
136
135
  octaves?: Node | number,
137
136
  lacunarity?: Node | number,
138
137
  diminish?: Node | number,
139
138
  amplitude?: Node | number,
140
- ): ShaderNodeObject<Node>;
139
+ ): Node;
141
140
 
142
141
  export { mx_hsvtorgb, mx_rgbtohsv, mx_srgb_texture_to_lin_rec709 };
143
142
 
144
- export const mx_add: (in1: Node, in2?: Node) => ShaderNodeObject<Node>;
145
- export const mx_subtract: (in1: Node, in2?: Node) => ShaderNodeObject<Node>;
146
- export const mx_multiply: (in1: Node, in2?: Node) => ShaderNodeObject<Node>;
147
- export const mx_divide: (in1: Node, in2?: Node) => ShaderNodeObject<Node>;
148
- export const mx_modulo: (in1: Node, in2?: Node) => ShaderNodeObject<Node>;
149
- export const mx_power: (in1: Node, in2?: Node) => ShaderNodeObject<Node>;
150
- export const mx_atan2: (in1?: Node, in2?: Node) => ShaderNodeObject<Node>;
151
- export const mx_timer: () => ShaderNodeObject<Node>;
152
- export const mx_frame: () => ShaderNodeObject<Node>;
153
- export const mx_invert: (in1: Node, amount?: Node) => ShaderNodeObject<Node>;
154
- export const mx_ifgreater: (value1: Node, value2: Node, in1: Node, in2: Node) => ShaderNodeObject<Node>;
155
- export const mx_ifgreatereq: (value1: Node, value2: Node, in1: Node, in2: Node) => ShaderNodeObject<Node>;
156
- export const mx_ifequal: (value1: Node, value2: Node, in1: Node, in2: Node) => ShaderNodeObject<Node>;
157
-
158
- export const mx_separate: (in1: Node, channelOrOut?: string | number) => ShaderNodeObject<Node>;
143
+ export const mx_add: (in1: Node, in2?: Node) => Node;
144
+ export const mx_subtract: (in1: Node, in2?: Node) => Node;
145
+ export const mx_multiply: (in1: Node, in2?: Node) => Node;
146
+ export const mx_divide: (in1: Node, in2?: Node) => Node;
147
+ export const mx_modulo: (in1: Node, in2?: Node) => Node;
148
+ export const mx_power: (in1: Node, in2?: Node) => Node;
149
+ export const mx_atan2: (in1?: Node, in2?: Node) => Node;
150
+ export const mx_timer: () => Node;
151
+ export const mx_frame: () => Node;
152
+ export const mx_invert: (in1: Node, amount?: Node) => Node;
153
+ export const mx_ifgreater: (value1: Node, value2: Node, in1: Node, in2: Node) => Node;
154
+ export const mx_ifgreatereq: (value1: Node, value2: Node, in1: Node, in2: Node) => Node;
155
+ export const mx_ifequal: (value1: Node, value2: Node, in1: Node, in2: Node) => Node;
156
+
157
+ export const mx_separate: (in1: Node, channelOrOut?: string | number) => Node;
159
158
 
160
159
  export const mx_place2d: (
161
160
  texcoord: Node,
@@ -163,10 +162,10 @@ export const mx_place2d: (
163
162
  scale?: Node,
164
163
  rotate?: Node,
165
164
  offset?: Node,
166
- ) => ShaderNodeObject<Node>;
165
+ ) => Node;
167
166
 
168
- export const mx_rotate2d: (input: Node, amount: Node) => ShaderNodeObject<Node>;
167
+ export const mx_rotate2d: (input: Node, amount: Node) => Node;
169
168
 
170
- export const mx_rotate3d: (input: Node, amount: Node, axis: Node) => ShaderNodeObject<Node>;
169
+ export const mx_rotate3d: (input: Node, amount: Node, axis: Node) => Node;
171
170
 
172
- export const mx_heighttonormal: (input: Node, scale: Node) => ShaderNodeObject<Node>;
171
+ export const mx_heighttonormal: (input: Node, scale: Node) => Node;