@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.
- three/README.md +1 -1
- three/examples/jsm/geometries/TextGeometry.d.ts +2 -0
- three/examples/jsm/gpgpu/BitonicSort.d.ts +21 -0
- three/examples/jsm/inspector/Inspector.d.ts +10 -0
- three/examples/jsm/inspector/RendererInspector.d.ts +4 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +95 -0
- three/examples/jsm/inspector/ui/Tab.d.ts +3 -0
- three/examples/jsm/inspector/ui/Values.d.ts +80 -0
- three/examples/jsm/interactive/SelectionBox.d.ts +9 -9
- three/examples/jsm/lighting/TiledLighting.d.ts +1 -2
- three/examples/jsm/loaders/FontLoader.d.ts +1 -1
- three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
- three/examples/jsm/objects/SkyMesh.d.ts +6 -7
- three/examples/jsm/objects/WaterMesh.d.ts +2 -2
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
- three/examples/jsm/tsl/display/AfterImageNode.d.ts +4 -5
- three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +1 -2
- three/examples/jsm/tsl/display/BleachBypass.d.ts +1 -2
- three/examples/jsm/tsl/display/BloomNode.d.ts +2 -3
- three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DenoiseNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DotScreenNode.d.ts +1 -2
- three/examples/jsm/tsl/display/FXAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/FilmNode.d.ts +1 -2
- three/examples/jsm/tsl/display/GTAONode.d.ts +11 -10
- three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +2 -3
- three/examples/jsm/tsl/display/LensflareNode.d.ts +6 -7
- three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -3
- three/examples/jsm/tsl/display/MotionBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/OutlineNode.d.ts +6 -7
- three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/PixelationPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/RGBShiftNode.d.ts +1 -2
- three/examples/jsm/tsl/display/SMAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/SSGINode.d.ts +30 -0
- three/examples/jsm/tsl/display/SSRNode.d.ts +12 -13
- three/examples/jsm/tsl/display/SSSNode.d.ts +18 -0
- three/examples/jsm/tsl/display/Sepia.d.ts +1 -2
- three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +1 -2
- three/examples/jsm/tsl/display/StereoPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/TRAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/TransitionNode.d.ts +1 -2
- three/examples/jsm/tsl/display/boxBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/hashBlur.d.ts +1 -2
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +3 -4
- three/examples/jsm/tsl/math/Bayer.d.ts +1 -2
- three/examples/jsm/tsl/utils/Raymarching.d.ts +2 -3
- three/package.json +2 -2
- three/src/Three.Core.d.ts +1 -1
- three/src/Three.TSL.d.ts +7 -1
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/animation/AnimationMixer.d.ts +3 -3
- three/src/lights/DirectionalLight.d.ts +0 -1
- three/src/loaders/ObjectLoader.d.ts +3 -3
- three/src/loaders/TextureLoader.d.ts +3 -3
- three/src/materials/Material.d.ts +2 -2
- three/src/materials/MeshLambertMaterial.d.ts +1 -1
- three/src/materials/MeshMatcapMaterial.d.ts +14 -0
- three/src/materials/MeshPhongMaterial.d.ts +1 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
- three/src/materials/MeshStandardMaterial.d.ts +7 -7
- three/src/materials/PointsMaterial.d.ts +1 -1
- three/src/materials/ShaderMaterial.d.ts +8 -8
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/NodeMaterial.d.ts +2 -3
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +1 -2
- three/src/math/Vector3.d.ts +2 -2
- three/src/nodes/Nodes.d.ts +1 -1
- three/src/nodes/TSL.d.ts +1 -1
- three/src/nodes/accessors/AccessorsUtils.d.ts +4 -5
- three/src/nodes/accessors/Arrays.d.ts +2 -3
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/Bitangent.d.ts +4 -5
- three/src/nodes/accessors/BufferAttributeNode.d.ts +8 -9
- three/src/nodes/accessors/BufferNode.d.ts +2 -2
- three/src/nodes/accessors/BuiltinNode.d.ts +1 -2
- three/src/nodes/accessors/Camera.d.ts +10 -11
- three/src/nodes/accessors/ClippingNode.d.ts +3 -6
- three/src/nodes/accessors/CubeTextureNode.d.ts +8 -9
- three/src/nodes/accessors/InstanceNode.d.ts +1 -2
- three/src/nodes/accessors/InstancedMeshNode.d.ts +1 -2
- three/src/nodes/accessors/Lights.d.ts +6 -7
- three/src/nodes/accessors/MaterialNode.d.ts +38 -39
- three/src/nodes/accessors/MaterialProperties.d.ts +3 -4
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +2 -2
- three/src/nodes/accessors/ModelNode.d.ts +12 -13
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -2
- three/src/nodes/accessors/MorphNode.d.ts +1 -2
- three/src/nodes/accessors/Normal.d.ts +13 -14
- three/src/nodes/accessors/Object3DNode.d.ts +6 -7
- three/src/nodes/accessors/PointUVNode.d.ts +1 -2
- three/src/nodes/accessors/Position.d.ts +7 -8
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +2 -3
- three/src/nodes/accessors/ReferenceNode.d.ts +2 -3
- three/src/nodes/accessors/ReflectVector.d.ts +4 -5
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -2
- three/src/nodes/accessors/SceneNode.d.ts +3 -4
- three/src/nodes/accessors/SkinningNode.d.ts +5 -6
- three/src/nodes/accessors/StorageBufferNode.d.ts +5 -5
- three/src/nodes/accessors/StorageTextureNode.d.ts +7 -4
- three/src/nodes/accessors/Tangent.d.ts +4 -6
- three/src/nodes/accessors/TangentUtils.d.ts +2 -3
- three/src/nodes/accessors/Texture3DNode.d.ts +3 -4
- three/src/nodes/accessors/TextureBicubic.d.ts +2 -3
- three/src/nodes/accessors/TextureNode.d.ts +29 -24
- three/src/nodes/accessors/TextureSizeNode.d.ts +1 -2
- three/src/nodes/accessors/UV.d.ts +1 -2
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -3
- three/src/nodes/accessors/UserDataNode.d.ts +1 -2
- three/src/nodes/accessors/VelocityNode.d.ts +1 -2
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -2
- three/src/nodes/code/CodeNode.d.ts +4 -5
- three/src/nodes/code/ExpressionNode.d.ts +1 -2
- three/src/nodes/code/FunctionCallNode.d.ts +6 -5
- three/src/nodes/code/FunctionNode.d.ts +4 -6
- three/src/nodes/code/ScriptableNode.d.ts +1 -2
- three/src/nodes/code/ScriptableValueNode.d.ts +1 -2
- three/src/nodes/core/ArrayNode.d.ts +6 -6
- three/src/nodes/core/AssignNode.d.ts +1 -8
- three/src/nodes/core/AttributeNode.d.ts +1 -2
- three/src/nodes/core/BypassNode.d.ts +5 -5
- three/src/nodes/core/ContextNode.d.ts +24 -12
- three/src/nodes/core/IndexNode.d.ts +10 -7
- three/src/nodes/core/InspectorNode.d.ts +16 -0
- three/src/nodes/core/IsolateNode.d.ts +36 -0
- three/src/nodes/core/MRTNode.d.ts +3 -4
- three/src/nodes/core/Node.d.ts +18 -2
- three/src/nodes/core/NodeUtils.d.ts +0 -10
- three/src/nodes/core/OutputStructNode.d.ts +1 -2
- three/src/nodes/core/ParameterNode.d.ts +1 -2
- three/src/nodes/core/PropertyNode.d.ts +30 -31
- three/src/nodes/core/StackNode.d.ts +1 -4
- three/src/nodes/core/StructNode.d.ts +3 -4
- three/src/nodes/core/SubBuildNode.d.ts +1 -2
- three/src/nodes/core/UniformNode.d.ts +3 -6
- three/src/nodes/core/VarNode.d.ts +12 -8
- three/src/nodes/core/VaryingNode.d.ts +12 -10
- three/src/nodes/display/BlendModes.d.ts +11 -12
- three/src/nodes/display/BumpMapNode.d.ts +1 -2
- three/src/nodes/display/ColorAdjustment.d.ts +7 -8
- three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -3
- three/src/nodes/display/ColorSpaceNode.d.ts +19 -9
- three/src/nodes/display/FrontFacingNode.d.ts +3 -4
- three/src/nodes/display/NormalMapNode.d.ts +1 -2
- three/src/nodes/display/PassNode.d.ts +20 -11
- three/src/nodes/display/PosterizeNode.d.ts +1 -2
- three/src/nodes/display/RenderOutputNode.d.ts +11 -6
- three/src/nodes/display/ScreenNode.d.ts +9 -10
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
- three/src/nodes/display/ToneMappingNode.d.ts +9 -8
- three/src/nodes/display/ToonOutlinePassNode.d.ts +1 -2
- three/src/nodes/display/ViewportDepthNode.d.ts +3 -4
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +1 -2
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +1 -2
- three/src/nodes/display/ViewportTextureNode.d.ts +2 -3
- three/src/nodes/fog/Fog.d.ts +5 -6
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +4 -5
- three/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.d.ts +14 -0
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -2
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -2
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -2
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -2
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -2
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -2
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +1 -2
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -2
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -2
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -2
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +1 -2
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -2
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +1 -2
- three/src/nodes/functions/material/getRoughness.d.ts +1 -2
- three/src/nodes/functions/material/getShIrradianceAt.d.ts +1 -2
- three/src/nodes/geometry/RangeNode.d.ts +1 -2
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +10 -11
- three/src/nodes/gpgpu/BarrierNode.d.ts +3 -4
- three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +5 -6
- three/src/nodes/gpgpu/ComputeNode.d.ts +21 -13
- three/src/nodes/gpgpu/SubgroupFunctionNode.d.ts +25 -26
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +1 -2
- three/src/nodes/lighting/AnalyticLightNode.d.ts +1 -2
- three/src/nodes/lighting/LightUtils.d.ts +1 -2
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -2
- three/src/nodes/lighting/LightsNode.d.ts +1 -2
- three/src/nodes/lighting/PointLightNode.d.ts +5 -6
- three/src/nodes/lighting/PointShadowNode.d.ts +4 -5
- three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
- three/src/nodes/lighting/ShadowFilterNode.d.ts +4 -5
- three/src/nodes/lighting/ShadowNode.d.ts +1 -2
- three/src/nodes/lighting/SpotLightNode.d.ts +1 -2
- three/src/nodes/materialx/MaterialXNodes.d.ts +41 -42
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -3
- three/src/nodes/materialx/lib/mx_noise.d.ts +73 -74
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -2
- three/src/nodes/math/BitcastNode.d.ts +5 -6
- three/src/nodes/math/ConditionalNode.d.ts +11 -5
- three/src/nodes/math/Hash.d.ts +1 -2
- three/src/nodes/math/MathNode.d.ts +223 -77
- three/src/nodes/math/OperatorNode.d.ts +203 -59
- three/src/nodes/math/TriNoise3D.d.ts +3 -4
- three/src/nodes/pmrem/PMREMNode.d.ts +1 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +3 -4
- three/src/nodes/procedural/Checker.d.ts +1 -2
- three/src/nodes/shapes/Shapes.d.ts +1 -2
- three/src/nodes/tsl/TSLBase.d.ts +2 -1
- three/src/nodes/tsl/TSLCore.d.ts +235 -128
- three/src/nodes/utils/CubeMapNode.d.ts +1 -2
- three/src/nodes/utils/DebugNode.d.ts +9 -5
- three/src/nodes/utils/Discard.d.ts +6 -6
- three/src/nodes/utils/EquirectUV.d.ts +1 -2
- three/src/nodes/utils/EventNode.d.ts +8 -3
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +1 -2
- three/src/nodes/utils/LoopNode.d.ts +7 -6
- three/src/nodes/utils/MatcapUV.d.ts +1 -2
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -2
- three/src/nodes/utils/Oscillators.d.ts +4 -5
- three/src/nodes/utils/Packing.d.ts +2 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +5 -4
- three/src/nodes/utils/RTTNode.d.ts +2 -3
- three/src/nodes/utils/ReflectorNode.d.ts +2 -3
- three/src/nodes/utils/RemapNode.d.ts +29 -7
- three/src/nodes/utils/RotateNode.d.ts +1 -2
- three/src/nodes/utils/SampleNode.d.ts +1 -2
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -2
- three/src/nodes/utils/SpriteUtils.d.ts +1 -2
- three/src/nodes/utils/StorageArrayElementNode.d.ts +1 -2
- three/src/nodes/utils/Timer.d.ts +3 -4
- three/src/nodes/utils/TriplanarTextures.d.ts +2 -3
- three/src/nodes/utils/UVUtils.d.ts +2 -3
- three/src/nodes/utils/ViewportUtils.d.ts +1 -2
- three/src/renderers/common/Animation.d.ts +4 -1
- three/src/renderers/common/Bindings.d.ts +12 -0
- three/src/renderers/common/CanvasTarget.d.ts +142 -0
- three/src/renderers/common/Geometries.d.ts +1 -0
- three/src/renderers/common/InspectorBase.d.ts +105 -0
- three/src/renderers/common/PostProcessing.d.ts +3 -0
- three/src/renderers/common/QuadMesh.d.ts +3 -0
- three/src/renderers/common/RenderContexts.d.ts +3 -1
- three/src/renderers/common/Renderer.d.ts +124 -36
- three/src/renderers/common/SampledTexture.d.ts +2 -0
- three/src/renderers/common/Sampler.d.ts +2 -0
- three/src/renderers/common/Textures.d.ts +20 -0
- three/src/renderers/common/TimestampQueryPool.d.ts +24 -1
- three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
- three/src/renderers/common/nodes/NodeLibrary.d.ts +3 -7
- three/src/renderers/common/nodes/Nodes.d.ts +13 -14
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +5 -0
- three/src/scenes/Scene.d.ts +2 -2
- three/src/textures/CanvasTexture.d.ts +3 -3
- three/src/textures/CompressedArrayTexture.d.ts +6 -9
- three/src/textures/CompressedCubeTexture.d.ts +3 -3
- three/src/textures/CompressedTexture.d.ts +6 -8
- three/src/textures/CubeTexture.d.ts +4 -11
- three/src/textures/Data3DTexture.d.ts +5 -10
- three/src/textures/DataArrayTexture.d.ts +10 -10
- three/src/textures/DataTexture.d.ts +4 -11
- three/src/textures/DepthTexture.d.ts +7 -8
- three/src/textures/ExternalTexture.d.ts +3 -1
- three/src/textures/FramebufferTexture.d.ts +6 -1
- three/src/textures/Source.d.ts +3 -3
- three/src/textures/Texture.d.ts +8 -8
- three/src/textures/VideoFrameTexture.d.ts +1 -1
- three/src/textures/VideoTexture.d.ts +2 -2
- three/src/utils.d.ts +18 -2
- 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
|
-
) =>
|
|
37
|
+
) => AtomicFunctionNode;
|
|
39
38
|
|
|
40
39
|
export const atomicLoad: (
|
|
41
40
|
pointerNode: Node,
|
|
42
|
-
) =>
|
|
41
|
+
) => AtomicFunctionNode;
|
|
43
42
|
|
|
44
43
|
export const atomicStore: (
|
|
45
44
|
pointerNode: Node,
|
|
46
45
|
valueNode: Node | number,
|
|
47
|
-
) =>
|
|
46
|
+
) => AtomicFunctionNode;
|
|
48
47
|
|
|
49
48
|
export const atomicAdd: (
|
|
50
49
|
pointerNode: Node,
|
|
51
50
|
valueNode: Node | number,
|
|
52
|
-
) =>
|
|
51
|
+
) => AtomicFunctionNode;
|
|
53
52
|
|
|
54
53
|
export const atomicSub: (
|
|
55
54
|
pointerNode: Node,
|
|
56
55
|
valueNode: Node | number,
|
|
57
|
-
) =>
|
|
56
|
+
) => AtomicFunctionNode;
|
|
58
57
|
|
|
59
58
|
export const atomicMax: (
|
|
60
59
|
pointerNode: Node,
|
|
61
60
|
valueNode: Node,
|
|
62
|
-
) =>
|
|
61
|
+
) => AtomicFunctionNode;
|
|
63
62
|
|
|
64
63
|
export const atomicMin: (
|
|
65
64
|
pointerNode: Node,
|
|
66
65
|
valueNode: Node,
|
|
67
|
-
) =>
|
|
66
|
+
) => AtomicFunctionNode;
|
|
68
67
|
|
|
69
68
|
export const atomicAnd: (
|
|
70
69
|
pointerNode: Node,
|
|
71
70
|
valueNode: Node,
|
|
72
|
-
) =>
|
|
71
|
+
) => AtomicFunctionNode;
|
|
73
72
|
|
|
74
73
|
export const atomicOr: (
|
|
75
74
|
pointerNode: Node,
|
|
76
75
|
valueNode: Node,
|
|
77
|
-
) =>
|
|
76
|
+
) => AtomicFunctionNode;
|
|
78
77
|
|
|
79
78
|
export const atomicXor: (
|
|
80
79
|
pointerNode: Node,
|
|
81
80
|
valueNode: Node,
|
|
82
|
-
) =>
|
|
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: () =>
|
|
11
|
-
export const storageBarrier: () =>
|
|
12
|
-
export const textureBarrier: () =>
|
|
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:
|
|
11
|
-
export const workgroupId:
|
|
12
|
-
export const globalId:
|
|
13
|
-
export const localId:
|
|
14
|
-
export const subgroupSize:
|
|
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)
|
|
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)
|
|
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[]) =>
|
|
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
|
-
) =>
|
|
37
|
-
|
|
38
|
-
declare module "../
|
|
39
|
-
interface
|
|
40
|
-
compute:
|
|
41
|
-
|
|
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: () =>
|
|
73
|
+
export const subgroupElect: () => Node;
|
|
75
74
|
|
|
76
|
-
export const subgroupBallot: (pred: Node) =>
|
|
77
|
-
export const subgroupAdd: (e: Node) =>
|
|
78
|
-
export const subgroupInclusiveAdd: (e: Node) =>
|
|
79
|
-
export const subgroupExclusiveAdd: (e: Node) =>
|
|
80
|
-
export const subgroupMul: (e: Node) =>
|
|
81
|
-
export const subgroupInclusiveMul: (e: Node) =>
|
|
82
|
-
export const subgroupExclusiveMul: (e: Node) =>
|
|
83
|
-
export const subgroupAnd: (e: Node) =>
|
|
84
|
-
export const subgroupOr: (e: Node) =>
|
|
85
|
-
export const subgroupXor: (e: Node) =>
|
|
86
|
-
export const subgroupMin: (e: Node) =>
|
|
87
|
-
export const subgroupMax: (e: Node) =>
|
|
88
|
-
export const subgroupAll: () =>
|
|
89
|
-
export const subgroupAny: () =>
|
|
90
|
-
export const subgroupBroadcastFirst: (e: Node, id: Node) =>
|
|
91
|
-
export const quadSwapX: (e: Node) =>
|
|
92
|
-
export const quadSwapY: (e: Node) =>
|
|
93
|
-
export const quadSwapDiagonal: (e: 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) =>
|
|
96
|
-
export const subgroupShuffle: (v: Node, id: Node) =>
|
|
97
|
-
export const subgroupShuffleXor: (v: Node, mask: Node) =>
|
|
98
|
-
export const subgroupShuffleUp: (v: Node, delta: Node) =>
|
|
99
|
-
export const subgroupShuffleDown: (v: Node, delta: Node) =>
|
|
100
|
-
export const quadBroadcast: (e: 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) =>
|
|
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():
|
|
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
|
-
}) =>
|
|
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
|
-
) =>
|
|
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[]) =>
|
|
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:
|
|
10
|
-
lightViewPosition:
|
|
11
|
-
cutoffDistance:
|
|
12
|
-
decayExponent:
|
|
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():
|
|
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) =>
|
|
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
|
-
) =>
|
|
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
|
-
) =>
|
|
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) =>
|
|
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:
|
|
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
|
-
) =>
|
|
8
|
+
) => Node;
|
|
10
9
|
|
|
11
10
|
export const PCFShadowFilter: (
|
|
12
11
|
depthTexture: Node,
|
|
13
12
|
shadowCoord: Node,
|
|
14
13
|
shadow: Node,
|
|
15
|
-
) =>
|
|
14
|
+
) => Node;
|
|
16
15
|
|
|
17
16
|
export const PCFSoftShadowFilter: (
|
|
18
17
|
depthTexture: Node,
|
|
19
18
|
shadowCoord: Node,
|
|
20
19
|
shadow: Node,
|
|
21
|
-
) =>
|
|
20
|
+
) => Node;
|
|
22
21
|
|
|
23
22
|
export const VSMShadowFilter: (
|
|
24
23
|
depthTexture: Node,
|
|
25
24
|
shadowCoord: Node,
|
|
26
|
-
) =>
|
|
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) =>
|
|
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):
|
|
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) =>
|
|
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
|
-
) =>
|
|
12
|
+
) => MathNode;
|
|
14
13
|
export const mx_ramptb: (
|
|
15
14
|
valuet: Node | number,
|
|
16
15
|
valueb: Node | number,
|
|
17
16
|
texcoord?: Node,
|
|
18
|
-
) =>
|
|
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
|
-
) =>
|
|
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
|
-
) =>
|
|
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
|
-
) =>
|
|
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
|
-
) =>
|
|
44
|
+
) => Node;
|
|
46
45
|
|
|
47
|
-
export const mx_safepower: (in1: Node | number, in2?: Node | number) =>
|
|
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
|
-
) =>
|
|
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
|
-
) =>
|
|
58
|
+
) => Node;
|
|
60
59
|
export const mx_noise_vec3: (
|
|
61
60
|
texcoord?: Node,
|
|
62
61
|
amplitude?: Node | number,
|
|
63
62
|
pivot?: Node | number,
|
|
64
|
-
) =>
|
|
63
|
+
) => Node;
|
|
65
64
|
export const mx_noise_vec4: (
|
|
66
65
|
texcoord?: Node,
|
|
67
66
|
amplitude?: Node | number,
|
|
68
67
|
pivot?: Node | number,
|
|
69
|
-
) =>
|
|
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
|
-
) =>
|
|
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
|
-
) =>
|
|
95
|
+
) => Node;
|
|
97
96
|
|
|
98
97
|
export function mx_worley_noise_float(
|
|
99
98
|
texcoord?: Node,
|
|
100
99
|
jitter?: Node | number,
|
|
101
|
-
):
|
|
100
|
+
): Node;
|
|
102
101
|
export function mx_worley_noise_vec2(
|
|
103
102
|
texcoord?: Node,
|
|
104
103
|
jitter?: Node | number,
|
|
105
|
-
):
|
|
104
|
+
): Node;
|
|
106
105
|
export function mx_worley_noise_vec3(
|
|
107
106
|
texcoord?: Node,
|
|
108
107
|
jitter?: Node | number,
|
|
109
|
-
):
|
|
108
|
+
): Node;
|
|
110
109
|
|
|
111
|
-
export function mx_cell_noise_float(texcoord?: 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
|
-
):
|
|
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
|
-
):
|
|
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
|
-
):
|
|
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
|
-
):
|
|
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) =>
|
|
145
|
-
export const mx_subtract: (in1: Node, in2?: Node) =>
|
|
146
|
-
export const mx_multiply: (in1: Node, in2?: Node) =>
|
|
147
|
-
export const mx_divide: (in1: Node, in2?: Node) =>
|
|
148
|
-
export const mx_modulo: (in1: Node, in2?: Node) =>
|
|
149
|
-
export const mx_power: (in1: Node, in2?: Node) =>
|
|
150
|
-
export const mx_atan2: (in1?: Node, in2?: Node) =>
|
|
151
|
-
export const mx_timer: () =>
|
|
152
|
-
export const mx_frame: () =>
|
|
153
|
-
export const mx_invert: (in1: Node, amount?: Node) =>
|
|
154
|
-
export const mx_ifgreater: (value1: Node, value2: Node, in1: Node, in2: Node) =>
|
|
155
|
-
export const mx_ifgreatereq: (value1: Node, value2: Node, in1: Node, in2: Node) =>
|
|
156
|
-
export const mx_ifequal: (value1: Node, value2: Node, in1: Node, in2: Node) =>
|
|
157
|
-
|
|
158
|
-
export const mx_separate: (in1: Node, channelOrOut?: string | number) =>
|
|
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
|
-
) =>
|
|
165
|
+
) => Node;
|
|
167
166
|
|
|
168
|
-
export const mx_rotate2d: (input: Node, amount: Node) =>
|
|
167
|
+
export const mx_rotate2d: (input: Node, amount: Node) => Node;
|
|
169
168
|
|
|
170
|
-
export const mx_rotate3d: (input: Node, amount: Node, axis: Node) =>
|
|
169
|
+
export const mx_rotate3d: (input: Node, amount: Node, axis: Node) => Node;
|
|
171
170
|
|
|
172
|
-
export const mx_heighttonormal: (input: Node, scale: Node) =>
|
|
171
|
+
export const mx_heighttonormal: (input: Node, scale: Node) => Node;
|