@types/three 0.167.2 → 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 (247) 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 +6 -0
  23. three/src/Three.d.ts +1 -0
  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/WebXRManager.d.ts +0 -2
  235. three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
  236. three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
  237. three/src/nodes/accessors/UniformsNode.d.ts +0 -23
  238. three/src/nodes/core/NodeKeywords.d.ts +0 -17
  239. three/src/nodes/display/BlendModeNode.d.ts +0 -47
  240. three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
  241. three/src/nodes/materials/NodeMaterial.d.ts +0 -124
  242. three/src/nodes/math/CondNode.d.ts +0 -22
  243. three/src/nodes/math/HashNode.d.ts +0 -16
  244. three/src/nodes/procedural/CheckerNode.d.ts +0 -15
  245. three/src/nodes/utils/DiscardNode.d.ts +0 -17
  246. three/src/nodes/utils/PackingNode.d.ts +0 -24
  247. three/src/nodes/utils/RotateUVNode.d.ts +0 -19
@@ -1,124 +0,0 @@
1
- import { LineBasicMaterial } from "../../materials/LineBasicMaterial.js";
2
- import { Material, MaterialParameters } from "../../materials/Material.js";
3
- import { MeshBasicMaterial } from "../../materials/MeshBasicMaterial.js";
4
- import { MeshMatcapMaterial } from "../../materials/MeshMatcapMaterial.js";
5
- import { MeshNormalMaterial } from "../../materials/MeshNormalMaterial.js";
6
- import { MeshPhongMaterial } from "../../materials/MeshPhongMaterial.js";
7
- import { MeshPhysicalMaterial } from "../../materials/MeshPhysicalMaterial.js";
8
- import { MeshStandardMaterial } from "../../materials/MeshStandardMaterial.js";
9
- import { MeshToonMaterial } from "../../materials/MeshToonMaterial.js";
10
- import { PointsMaterial } from "../../materials/PointsMaterial.js";
11
- import { ShadowMaterial } from "../../materials/ShadowMaterial.js";
12
- import { SpriteMaterial } from "../../materials/SpriteMaterial.js";
13
- import ClippingNode from "../accessors/ClippingNode.js";
14
- import LightingModel from "../core/LightingModel.js";
15
- import MRTNode from "../core/MRTNode.js";
16
- import Node from "../core/Node.js";
17
- import NodeBuilder from "../core/NodeBuilder.js";
18
- import LightsNode from "../lighting/LightsNode.js";
19
- import LineBasicNodeMaterial from "./LineBasicNodeMaterial.js";
20
- import MeshBasicNodeMaterial from "./MeshBasicNodeMaterial.js";
21
- import MeshMatcapNodeMaterial from "./MeshMatcapNodeMaterial.js";
22
- import MeshNormalNodeMaterial from "./MeshNormalNodeMaterial.js";
23
- import MeshPhongNodeMaterial from "./MeshPhongNodeMaterial.js";
24
- import MeshPhysicalNodeMaterial from "./MeshPhysicalNodeMaterial.js";
25
- import MeshStandardNodeMaterial from "./MeshStandardNodeMaterial.js";
26
- import MeshToonNodeMaterial from "./MeshToonNodeMaterial.js";
27
- import PointsNodeMaterial from "./PointsNodeMaterial.js";
28
- import ShadowNodeMaterial from "./ShadowNodeMaterial.js";
29
- import SpriteNodeMaterial from "./SpriteNodeMaterial.js";
30
-
31
- export interface NodeMaterialParameters extends MaterialParameters {
32
- normals?: boolean | undefined;
33
-
34
- colorSpaced?: boolean | undefined;
35
-
36
- lightsNode?: LightsNode | null | undefined;
37
- envNode?: Node | null | undefined;
38
- aoNode?: Node | null | undefined;
39
-
40
- colorNode?: Node | null | undefined;
41
- normalNode?: Node | null | undefined;
42
- opacityNode?: Node | null | undefined;
43
- backdropNode?: Node | null | undefined;
44
- backdropAlphaNode?: Node | null | undefined;
45
- alphaTestNode?: Node | null | undefined;
46
-
47
- positionNode?: Node | null | undefined;
48
-
49
- depthNode?: Node | null | undefined;
50
- shadowNode?: Node | null | undefined;
51
-
52
- outputNode?: Node | null | undefined;
53
-
54
- fragmentNode?: Node | null | undefined;
55
- vertexNode?: Node | null | undefined;
56
- }
57
-
58
- export default class NodeMaterial extends Material {
59
- readonly isNodeMaterial: true;
60
-
61
- fog: boolean;
62
- lights: boolean;
63
- normals: boolean;
64
-
65
- lightsNode: LightsNode | null;
66
- envNode: Node | null;
67
- aoNode: Node | null;
68
-
69
- colorNode: Node | null;
70
- normalNode: Node | null;
71
- opacityNode: Node | null;
72
- backdropNode: Node | null;
73
- backdropAlphaNode: Node | null;
74
- alphaTestNode: Node | null;
75
-
76
- positionNode: Node | null;
77
-
78
- depthNode: Node | null;
79
- shadowNode: Node | null;
80
- shadowPositionNode: Node | null;
81
-
82
- outputNode: Node | null;
83
- mrtNode: MRTNode | null;
84
-
85
- fragmentNode: Node | null;
86
- vertexNode: Node | null;
87
-
88
- constructor();
89
-
90
- build(builder: NodeBuilder): void;
91
- setup(builder: NodeBuilder): void;
92
- setupClipping(builder: NodeBuilder): ClippingNode | null;
93
- setupDepth(builder: NodeBuilder): void;
94
- setupPosition(builder: NodeBuilder): Node;
95
- setupDiffuseColor(builder: NodeBuilder): void;
96
- setupVariants(builder: NodeBuilder): void;
97
- setupNormal(builder: NodeBuilder): void;
98
- setupEnvironment(builder: NodeBuilder): Node | null;
99
- setupLightMap(builder: NodeBuilder): Node | null;
100
- setupLights(builder: NodeBuilder): LightsNode;
101
- setupOutgoingLight(): Node;
102
- setupLightingModel(builder: NodeBuilder): LightingModel;
103
- setupLighting(builder: NodeBuilder): Node;
104
- setupOutput(builder: NodeBuilder, outputNode: Node): Node;
105
-
106
- setDefaultValues(material: Material): void;
107
-
108
- static fromMaterial(material: LineBasicMaterial): LineBasicNodeMaterial;
109
- static fromMaterial(material: MeshBasicMaterial): MeshBasicNodeMaterial;
110
- static fromMaterial(material: MeshMatcapMaterial): MeshMatcapNodeMaterial;
111
- static fromMaterial(material: MeshNormalMaterial): MeshNormalNodeMaterial;
112
- static fromMaterial(material: MeshPhongMaterial): MeshPhongNodeMaterial;
113
- static fromMaterial(material: MeshPhysicalMaterial): MeshPhysicalNodeMaterial;
114
- static fromMaterial(material: MeshStandardMaterial): MeshStandardNodeMaterial;
115
- static fromMaterial(material: MeshToonMaterial): MeshToonNodeMaterial;
116
- static fromMaterial(material: PointsMaterial): PointsNodeMaterial;
117
- static fromMaterial(material: ShadowMaterial): ShadowNodeMaterial;
118
- static fromMaterial(material: SpriteMaterial): SpriteNodeMaterial;
119
- static fromMaterial(material: NodeMaterial): NodeMaterial;
120
- static fromMaterial(material: Material): NodeMaterial;
121
- }
122
-
123
- export function addNodeMaterial(type: string, nodeMaterial: typeof NodeMaterial): void;
124
- export function createNodeMaterialFromType(type: string): NodeMaterial;
@@ -1,22 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
-
4
- export default class CondNode extends Node {
5
- condNode: Node;
6
- ifNode: Node;
7
- elseNode: Node;
8
-
9
- constructor(condNode: Node, ifNode: Node, elseNode: Node);
10
- }
11
-
12
- export function cond(
13
- condNode: NodeRepresentation,
14
- ifNode: NodeRepresentation,
15
- elseNode: NodeRepresentation,
16
- ): ShaderNodeObject<Node>;
17
-
18
- declare module "../shadernode/ShaderNode.js" {
19
- interface NodeElements {
20
- cond: typeof cond;
21
- }
22
- }
@@ -1,16 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
-
4
- export default class HashNode extends Node {
5
- seedNode: Node;
6
-
7
- constructor(seedNode: Node);
8
- }
9
-
10
- export const hash: (seedNode: NodeRepresentation) => ShaderNodeObject<HashNode>;
11
-
12
- declare module "../shadernode/ShaderNode.js" {
13
- interface NodeElements {
14
- hash: typeof hash;
15
- }
16
- }
@@ -1,15 +0,0 @@
1
- import TempNode from "../core/TempNode.js";
2
- import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
-
4
- export default class CheckerNode extends TempNode {
5
- uvNode: Node;
6
- constructor(uvNode?: Node);
7
- }
8
-
9
- export const checker: (uvNode?: NodeRepresentation) => ShaderNodeObject<CheckerNode>;
10
-
11
- declare module "../shadernode/ShaderNode.js" {
12
- interface NodeElements {
13
- checker: typeof checker;
14
- }
15
- }
@@ -1,17 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import CondNode from "../math/CondNode.js";
3
- import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
-
5
- export default class DiscardNode extends CondNode {
6
- constructor(condNode: Node);
7
- }
8
-
9
- export const inlineDiscard: (condNode: NodeRepresentation) => ShaderNodeObject<DiscardNode>;
10
- export const discard: (condNode: NodeRepresentation) => ShaderNodeObject<Node>;
11
- export const Return: (condNode: NodeRepresentation) => ShaderNodeObject<Node>;
12
-
13
- declare module "../shadernode/ShaderNode.js" {
14
- interface NodeElements {
15
- discard: typeof discard;
16
- }
17
- }
@@ -1,24 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import TempNode from "../core/TempNode.js";
3
- import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
-
5
- export type PackingNodeScope = typeof PackingNode.DIRECTION_TO_COLOR | typeof PackingNode.COLOR_TO_DIRECTION;
6
-
7
- declare class PackingNode extends TempNode {
8
- constructor(scope: PackingNodeScope, node: Node);
9
-
10
- static DIRECTION_TO_COLOR: "directionToColor";
11
- static COLOR_TO_DIRECTION: "colorToDirection";
12
- }
13
-
14
- export default PackingNode;
15
-
16
- export const directionToColor: (node: NodeRepresentation) => ShaderNodeObject<PackingNode>;
17
- export const colorToDirection: (node: NodeRepresentation) => ShaderNodeObject<PackingNode>;
18
-
19
- declare module "../shadernode/ShaderNode.js" {
20
- interface NodeElements {
21
- directionToColor: typeof directionToColor;
22
- colorToDirection: typeof colorToDirection;
23
- }
24
- }
@@ -1,19 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import TempNode from "../core/TempNode.js";
3
- import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
-
5
- export default class RotateUVNode extends TempNode {
6
- uvNode: Node;
7
- rotationNode: Node;
8
- centerNode: Node;
9
-
10
- constructor(uvNode: Node, rotationNode: Node, centerNode?: Node);
11
- }
12
-
13
- export const rotateUV: (uvNode: Node, rotationNode: Node, centerNode?: Node) => ShaderNodeObject<RotateUVNode>;
14
-
15
- declare module "../shadernode/ShaderNode.js" {
16
- interface NodeElements {
17
- rotateUV: typeof rotateUV;
18
- }
19
- }