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