@types/three 0.179.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/Addons.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +0 -30
- three/examples/jsm/controls/PointerLockControls.d.ts +0 -5
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +2 -2
- three/examples/jsm/exporters/KTX2Exporter.d.ts +2 -2
- three/examples/jsm/exporters/STLExporter.d.ts +2 -2
- three/examples/jsm/exporters/USDZExporter.d.ts +2 -2
- 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/HDRCubeTextureLoader.d.ts +2 -2
- three/examples/jsm/loaders/HDRLoader.d.ts +22 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +5 -1
- three/examples/jsm/loaders/RGBELoader.d.ts +9 -15
- three/examples/jsm/materials/WoodNodeMaterial.d.ts +75 -0
- three/examples/jsm/math/ColorSpaces.d.ts +4 -0
- three/examples/jsm/objects/SkyMesh.d.ts +6 -7
- three/examples/jsm/objects/WaterMesh.d.ts +2 -2
- three/examples/jsm/postprocessing/SSRPass.d.ts +6 -29
- 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 +11 -3
- 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 +15 -10
- 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 +28 -9
- 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 +18 -14
- 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 +10 -0
- three/examples/jsm/tsl/display/hashBlur.d.ts +2 -3
- 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 +2 -1
- three/src/Three.TSL.d.ts +36 -5
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/animation/AnimationClip.d.ts +5 -0
- three/src/animation/AnimationMixer.d.ts +3 -3
- three/src/constants.d.ts +3 -1
- 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/LineBasicMaterial.d.ts +1 -0
- three/src/materials/LineDashedMaterial.d.ts +1 -0
- three/src/materials/Material.d.ts +2 -2
- three/src/materials/MeshBasicMaterial.d.ts +1 -0
- three/src/materials/MeshDepthMaterial.d.ts +1 -0
- three/src/materials/MeshDistanceMaterial.d.ts +2 -1
- three/src/materials/MeshLambertMaterial.d.ts +2 -1
- three/src/materials/MeshMatcapMaterial.d.ts +15 -0
- three/src/materials/MeshNormalMaterial.d.ts +1 -0
- three/src/materials/MeshPhongMaterial.d.ts +2 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
- three/src/materials/MeshStandardMaterial.d.ts +7 -7
- three/src/materials/MeshToonMaterial.d.ts +1 -0
- three/src/materials/PointsMaterial.d.ts +2 -1
- three/src/materials/ShaderMaterial.d.ts +9 -8
- three/src/materials/ShadowMaterial.d.ts +1 -0
- three/src/materials/SpriteMaterial.d.ts +1 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineBasicNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +2 -1
- three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshToonNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/NodeMaterial.d.ts +3 -3
- three/src/materials/nodes/PointsNodeMaterial.d.ts +17 -0
- three/src/materials/nodes/ShadowNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/SpriteNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +1 -1
- three/src/math/ColorManagement.d.ts +1 -1
- three/src/math/Vector3.d.ts +2 -2
- three/src/nodes/Nodes.d.ts +4 -1
- three/src/nodes/TSL.d.ts +4 -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 +11 -10
- 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 +31 -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 +25 -9
- 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 +22 -13
- 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 +5 -8
- three/src/nodes/core/VarNode.d.ts +11 -21
- 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 +12 -10
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
- three/src/nodes/display/ToneMappingNode.d.ts +11 -10
- 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 +4 -2
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportTextureNode.d.ts +6 -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 +99 -0
- 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 +24 -0
- 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 -80
- 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 +18 -4
- 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 +3 -3
- 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 -19
- 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/objects/InstancedMesh.d.ts +2 -3
- three/src/renderers/WebGLRenderer.d.ts +0 -25
- three/src/renderers/common/Animation.d.ts +4 -1
- three/src/renderers/common/Attributes.d.ts +1 -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 +125 -37
- 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 +21 -1
- three/src/renderers/common/TimestampQueryPool.d.ts +26 -4
- three/src/renderers/common/XRManager.d.ts +10 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
- three/src/renderers/common/nodes/NodeLibrary.d.ts +8 -12
- three/src/renderers/common/nodes/Nodes.d.ts +13 -14
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +6 -1
- 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 +10 -12
- three/src/textures/CubeTexture.d.ts +4 -11
- three/src/textures/Data3DTexture.d.ts +7 -11
- three/src/textures/DataArrayTexture.d.ts +10 -10
- three/src/textures/DataTexture.d.ts +6 -12
- three/src/textures/DepthTexture.d.ts +7 -8
- three/src/textures/ExternalTexture.d.ts +5 -3
- three/src/textures/FramebufferTexture.d.ts +6 -1
- three/src/textures/Source.d.ts +3 -3
- three/src/textures/Texture.d.ts +9 -9
- three/src/textures/VideoFrameTexture.d.ts +1 -1
- three/src/textures/VideoTexture.d.ts +2 -2
- three/src/utils.d.ts +18 -2
- three/examples/jsm/loaders/RGBMLoader.d.ts +0 -37
- three/src/nodes/core/CacheNode.d.ts +0 -21
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import TempNode from "../core/TempNode.js";
|
|
3
|
+
|
|
4
|
+
export type SubgroupFunctionNodeMethod0 = typeof SubgroupFunctionNode.SUBGROUP_ELECT;
|
|
5
|
+
|
|
6
|
+
export type SubgroupFunctionNodeMethod1 =
|
|
7
|
+
| typeof SubgroupFunctionNode.SUBGROUP_BALLOT
|
|
8
|
+
| typeof SubgroupFunctionNode.SUBGROUP_ADD
|
|
9
|
+
| typeof SubgroupFunctionNode.SUBGROUP_INCLUSIVE_ADD
|
|
10
|
+
| typeof SubgroupFunctionNode.SUBGROUP_EXCLUSIVE_AND
|
|
11
|
+
| typeof SubgroupFunctionNode.SUBGROUP_MUL
|
|
12
|
+
| typeof SubgroupFunctionNode.SUBGROUP_INCLUSIVE_MUL
|
|
13
|
+
| typeof SubgroupFunctionNode.SUBGROUP_EXCLUSIVE_MUL
|
|
14
|
+
| typeof SubgroupFunctionNode.SUBGROUP_AND
|
|
15
|
+
| typeof SubgroupFunctionNode.SUBGROUP_OR
|
|
16
|
+
| typeof SubgroupFunctionNode.SUBGROUP_XOR
|
|
17
|
+
| typeof SubgroupFunctionNode.SUBGROUP_MIN
|
|
18
|
+
| typeof SubgroupFunctionNode.SUBGROUP_MAX
|
|
19
|
+
| typeof SubgroupFunctionNode.SUBGROUP_ALL
|
|
20
|
+
| typeof SubgroupFunctionNode.SUBGROUP_ANY
|
|
21
|
+
| typeof SubgroupFunctionNode.SUBGROUP_BROADCAST_FIRST
|
|
22
|
+
| typeof SubgroupFunctionNode.QUAD_SWAP_X
|
|
23
|
+
| typeof SubgroupFunctionNode.QUAD_SWAP_Y
|
|
24
|
+
| typeof SubgroupFunctionNode.QUAD_SWAP_DIAGONAL;
|
|
25
|
+
|
|
26
|
+
export type SubgroupFunctionNodeMethod2 =
|
|
27
|
+
| typeof SubgroupFunctionNode.SUBGROUP_BROADCAST
|
|
28
|
+
| typeof SubgroupFunctionNode.SUBGROUP_SHUFFLE
|
|
29
|
+
| typeof SubgroupFunctionNode.SUBGROUP_SHUFFLE_XOR
|
|
30
|
+
| typeof SubgroupFunctionNode.SUBGROUP_SHUFFLE_UP
|
|
31
|
+
| typeof SubgroupFunctionNode.SUBGROUP_SHUFFLE_DOWN
|
|
32
|
+
| typeof SubgroupFunctionNode.QUAD_BROADCAST;
|
|
33
|
+
|
|
34
|
+
declare class SubgroupFunctionNode extends TempNode {
|
|
35
|
+
constructor(method: SubgroupFunctionNodeMethod0);
|
|
36
|
+
constructor(method: SubgroupFunctionNodeMethod1, aNode: Node);
|
|
37
|
+
constructor(method: SubgroupFunctionNodeMethod2, aNode: Node, bNode: Node);
|
|
38
|
+
|
|
39
|
+
// 0 inputs
|
|
40
|
+
static SUBGROUP_ELECT: "subgroupElect";
|
|
41
|
+
|
|
42
|
+
// 1 input
|
|
43
|
+
static SUBGROUP_BALLOT: "subgroupBallot";
|
|
44
|
+
static SUBGROUP_ADD: "subgroupAdd";
|
|
45
|
+
static SUBGROUP_INCLUSIVE_ADD: "subgroupInclusiveAdd";
|
|
46
|
+
static SUBGROUP_EXCLUSIVE_AND: "subgroupExclusiveAdd";
|
|
47
|
+
static SUBGROUP_MUL: "subgroupMul";
|
|
48
|
+
static SUBGROUP_INCLUSIVE_MUL: "subgroupInclusiveMul";
|
|
49
|
+
static SUBGROUP_EXCLUSIVE_MUL: "subgroupExclusiveMul";
|
|
50
|
+
static SUBGROUP_AND: "subgroupAnd";
|
|
51
|
+
static SUBGROUP_OR: "subgroupOr";
|
|
52
|
+
static SUBGROUP_XOR: "subgroupXor";
|
|
53
|
+
static SUBGROUP_MIN: "subgroupMin";
|
|
54
|
+
static SUBGROUP_MAX: "subgroupMax";
|
|
55
|
+
static SUBGROUP_ALL: "subgroupAll";
|
|
56
|
+
static SUBGROUP_ANY: "subgroupAny";
|
|
57
|
+
static SUBGROUP_BROADCAST_FIRST: "subgroupBroadcastFirst";
|
|
58
|
+
static QUAD_SWAP_X: "quadSwapX";
|
|
59
|
+
static QUAD_SWAP_Y: "quadSwapY";
|
|
60
|
+
static QUAD_SWAP_DIAGONAL: "quadSwapDiagonal";
|
|
61
|
+
|
|
62
|
+
// 2 inputs
|
|
63
|
+
static SUBGROUP_BROADCAST: "subgroupBroadcast";
|
|
64
|
+
static SUBGROUP_SHUFFLE: "subgroupShuffle";
|
|
65
|
+
static SUBGROUP_SHUFFLE_XOR: "subgroupShuffleXor";
|
|
66
|
+
static SUBGROUP_SHUFFLE_UP: "subgroupShuffleUp";
|
|
67
|
+
static SUBGROUP_SHUFFLE_DOWN: "subgroupShuffleDown";
|
|
68
|
+
static QUAD_BROADCAST: "quadBroadcast";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default SubgroupFunctionNode;
|
|
72
|
+
|
|
73
|
+
export const subgroupElect: () => Node;
|
|
74
|
+
|
|
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;
|
|
93
|
+
|
|
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;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
export const mx_hsvtorgb: (hsv: Node) =>
|
|
3
|
+
export const mx_hsvtorgb: (hsv: Node) => Node;
|
|
5
4
|
|
|
6
|
-
export const mx_rgbtohsv: (c_immutable: Node) =>
|
|
5
|
+
export const mx_rgbtohsv: (c_immutable: Node) => Node;
|