@types/three 0.180.0 → 0.182.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/controls/ArcballControls.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +1 -1
- three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
- three/examples/jsm/controls/FlyControls.d.ts +1 -1
- three/examples/jsm/controls/OrbitControls.d.ts +1 -1
- three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
- three/examples/jsm/controls/TrackballControls.d.ts +1 -1
- three/examples/jsm/controls/TransformControls.d.ts +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/loaders/UltraHDRLoader.d.ts +7 -0
- three/examples/jsm/loaders/VOXLoader.d.ts +22 -5
- three/examples/jsm/math/Octree.d.ts +36 -14
- three/examples/jsm/objects/SkyMesh.d.ts +11 -7
- three/examples/jsm/objects/WaterMesh.d.ts +2 -2
- three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
- three/examples/jsm/postprocessing/OutputPass.d.ts +10 -6
- three/examples/jsm/postprocessing/RenderPass.d.ts +15 -10
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
- three/examples/jsm/transpiler/AST.d.ts +17 -0
- three/examples/jsm/transpiler/TSLEncoder.d.ts +2 -0
- 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 +20 -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 +6 -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/display/radialBlur.d.ts +12 -0
- 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 +3 -3
- three/src/Three.Core.d.ts +1 -1
- three/src/Three.TSL.d.ts +21 -3
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/animation/AnimationMixer.d.ts +45 -3
- three/src/animation/AnimationUtils.d.ts +3 -8
- three/src/constants.d.ts +14 -0
- three/src/core/BufferGeometry.d.ts +3 -1
- three/src/extras/Controls.d.ts +3 -3
- three/src/lights/DirectionalLight.d.ts +10 -3
- three/src/lights/HemisphereLight.d.ts +8 -1
- three/src/lights/Light.d.ts +8 -12
- three/src/lights/LightProbe.d.ts +7 -3
- three/src/lights/PointLight.d.ts +12 -1
- three/src/lights/PointLightShadow.d.ts +1 -8
- three/src/lights/SpotLight.d.ts +17 -2
- three/src/loaders/ObjectLoader.d.ts +3 -3
- three/src/loaders/TextureLoader.d.ts +3 -3
- three/src/materials/Material.d.ts +3 -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 +26 -11
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/NodeMaterial.d.ts +9 -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 +5 -2
- 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 +17 -17
- 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 +8 -8
- 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 +15 -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 +42 -14
- 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 +1 -11
- 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 +32 -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 +4 -3
- three/src/nodes/display/PassNode.d.ts +28 -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/DFGLUT.d.ts +12 -0
- 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/PhysicalLightingModel.d.ts +8 -1
- 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 +3 -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 +12 -17
- three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
- three/src/nodes/lighting/ShadowFilterNode.d.ts +6 -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/BitcountNode.d.ts +21 -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 -77
- three/src/nodes/math/OperatorNode.d.ts +203 -59
- three/src/nodes/math/PackFloatNode.d.ts +19 -0
- three/src/nodes/math/TriNoise3D.d.ts +3 -4
- three/src/nodes/math/UnpackFloatNode.d.ts +18 -0
- 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 +3 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +7 -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 +5 -3
- three/src/nodes/utils/ViewportUtils.d.ts +1 -2
- three/src/objects/LOD.d.ts +1 -1
- three/src/objects/Skeleton.d.ts +4 -2
- three/src/renderers/WebGLRenderer.d.ts +22 -4
- three/src/renderers/common/Animation.d.ts +4 -1
- three/src/renderers/common/Binding.d.ts +6 -0
- three/src/renderers/common/Bindings.d.ts +12 -0
- three/src/renderers/common/Buffer.d.ts +24 -0
- three/src/renderers/common/CanvasTarget.d.ts +142 -0
- three/src/renderers/common/ChainMap.d.ts +8 -1
- three/src/renderers/common/Geometries.d.ts +8 -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 +6 -2
- three/src/renderers/common/RenderObject.d.ts +6 -0
- three/src/renderers/common/Renderer.d.ts +145 -46
- 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/UniformsGroup.d.ts +1 -0
- 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/shaders/ShaderLib.d.ts +1 -1
- three/src/renderers/webgl/WebGLCapabilities.d.ts +2 -2
- three/src/renderers/webgl/WebGLPrograms.d.ts +0 -1
- 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/CubeDepthTexture.d.ts +41 -0
- 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 +30 -2
- three/src/nodes/core/CacheNode.d.ts +0 -21
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +0 -11
|
@@ -2,10 +2,8 @@ import { ToneMapping } from "../../constants.js";
|
|
|
2
2
|
import RendererReferenceNode from "../accessors/RendererReferenceNode.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
5
|
|
|
7
6
|
declare class ToneMappingNode extends TempNode {
|
|
8
|
-
toneMapping: ToneMapping;
|
|
9
7
|
exposureNode: Node;
|
|
10
8
|
colorNode: Node | null;
|
|
11
9
|
|
|
@@ -18,15 +16,18 @@ export const toneMapping: (
|
|
|
18
16
|
mapping: ToneMapping,
|
|
19
17
|
exposure: Node | number,
|
|
20
18
|
color?: Node,
|
|
21
|
-
) =>
|
|
22
|
-
export const toneMappingExposure:
|
|
19
|
+
) => ToneMappingNode;
|
|
20
|
+
export const toneMappingExposure: RendererReferenceNode;
|
|
23
21
|
|
|
24
|
-
declare module "../
|
|
25
|
-
interface
|
|
22
|
+
declare module "../Nodes.js" {
|
|
23
|
+
interface Node {
|
|
26
24
|
toneMapping: (
|
|
27
|
-
color: Node,
|
|
28
25
|
mapping?: ToneMapping,
|
|
29
26
|
exposure?: Node | number,
|
|
30
|
-
) =>
|
|
27
|
+
) => ToneMappingNode;
|
|
28
|
+
toneMappingAssign: (
|
|
29
|
+
mapping?: ToneMapping,
|
|
30
|
+
exposure?: Node | number,
|
|
31
|
+
) => this;
|
|
31
32
|
}
|
|
32
33
|
}
|
|
@@ -2,7 +2,6 @@ import { Camera } from "../../cameras/Camera.js";
|
|
|
2
2
|
import { Color } from "../../math/Color.js";
|
|
3
3
|
import { Scene } from "../../scenes/Scene.js";
|
|
4
4
|
import Node from "../core/Node.js";
|
|
5
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
5
|
import PassNode from "./PassNode.js";
|
|
7
6
|
|
|
8
7
|
declare class ToonOutlinePassNode extends PassNode {
|
|
@@ -21,4 +20,4 @@ export const toonOutlinePass: (
|
|
|
21
20
|
color?: Color,
|
|
22
21
|
thickness?: number,
|
|
23
22
|
alpha?: number,
|
|
24
|
-
) =>
|
|
23
|
+
) => ToonOutlinePassNode;
|
|
@@ -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 ViewportDepthNode extends Node {
|
|
5
4
|
scope: ViewportDepthNodeScope;
|
|
@@ -33,6 +32,6 @@ export const viewZToLogarithmicDepth: (viewZ: Node, near: Node, far: Node) => No
|
|
|
33
32
|
|
|
34
33
|
export const logarithmicDepthToViewZ: (depth: Node, near: Node, far: Node) => Node;
|
|
35
34
|
|
|
36
|
-
export const depth:
|
|
37
|
-
export const linearDepth: (valueNode?: Node | null) =>
|
|
38
|
-
export const viewportLinearDepth:
|
|
35
|
+
export const depth: ViewportDepthNode;
|
|
36
|
+
export const linearDepth: (valueNode?: Node | null) => ViewportDepthNode;
|
|
37
|
+
export const viewportLinearDepth: ViewportDepthNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DepthTexture } from "../../textures/DepthTexture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
import ViewportTextureNode from "./ViewportTextureNode.js";
|
|
5
4
|
|
|
6
5
|
declare class ViewportDepthTextureNode extends ViewportTextureNode {
|
|
@@ -14,4 +13,4 @@ export default ViewportDepthTextureNode;
|
|
|
14
13
|
export const viewportDepthTexture: (
|
|
15
14
|
uvNode?: Node,
|
|
16
15
|
levelNode?: Node,
|
|
17
|
-
) =>
|
|
16
|
+
) => ViewportDepthTextureNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FramebufferTexture } from "../../textures/FramebufferTexture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
import ViewportTextureNode from "./ViewportTextureNode.js";
|
|
5
4
|
|
|
6
5
|
declare class ViewportSharedTextureNode extends ViewportTextureNode {
|
|
@@ -14,4 +13,4 @@ export default ViewportSharedTextureNode;
|
|
|
14
13
|
export const viewportSharedTexture: (
|
|
15
14
|
uvNode?: Node,
|
|
16
15
|
levelNode?: Node | null,
|
|
17
|
-
) =>
|
|
16
|
+
) => ViewportSharedTextureNode;
|
|
@@ -4,7 +4,6 @@ import { Texture } from "../../textures/Texture.js";
|
|
|
4
4
|
import TextureNode from "../accessors/TextureNode.js";
|
|
5
5
|
import { NodeUpdateType } from "../core/constants.js";
|
|
6
6
|
import Node from "../core/Node.js";
|
|
7
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
8
7
|
|
|
9
8
|
declare class ViewportTextureNode extends TextureNode {
|
|
10
9
|
generateMipmaps: boolean;
|
|
@@ -24,9 +23,9 @@ export const viewportTexture: (
|
|
|
24
23
|
uvNode?: Node,
|
|
25
24
|
levelNode?: Node | null,
|
|
26
25
|
framebufferTexture?: FramebufferTexture | null,
|
|
27
|
-
) =>
|
|
26
|
+
) => ViewportTextureNode;
|
|
28
27
|
export const viewportMipTexture: (
|
|
29
28
|
uvNode?: Node,
|
|
30
29
|
levelNode?: Node | null,
|
|
31
30
|
framebufferTexture?: FramebufferTexture | null,
|
|
32
|
-
) =>
|
|
31
|
+
) => Node;
|
three/src/nodes/fog/Fog.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
export const rangeFogFactor: (near: Node | number, far: Node | number) =>
|
|
3
|
+
export const rangeFogFactor: (near: Node | number, far: Node | number) => Node;
|
|
5
4
|
|
|
6
|
-
export const densityFogFactor: (density: Node) =>
|
|
5
|
+
export const densityFogFactor: (density: Node) => Node;
|
|
7
6
|
|
|
8
|
-
export const fog: (color: Node, factor: Node) =>
|
|
7
|
+
export const fog: (color: Node, factor: Node) => Node;
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* @deprecated
|
|
@@ -14,7 +13,7 @@ export function rangeFog(
|
|
|
14
13
|
color: Node,
|
|
15
14
|
near: Node,
|
|
16
15
|
far: Node,
|
|
17
|
-
):
|
|
16
|
+
): Node;
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* @deprecated
|
|
@@ -23,4 +22,4 @@ export function densityFog(
|
|
|
23
22
|
color: Node,
|
|
24
23
|
near: Node,
|
|
25
24
|
far: Node,
|
|
26
|
-
):
|
|
25
|
+
): Node;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
declare const BRDF_GGX: (args: {
|
|
6
5
|
lightDirection: Node;
|
|
7
6
|
f0: Node;
|
|
8
7
|
f90: Node;
|
|
9
8
|
roughness: Node;
|
|
10
|
-
f?: Node;
|
|
11
|
-
USE_IRIDESCENCE?: Node;
|
|
12
|
-
USE_ANISOTROPY?: Node;
|
|
13
|
-
}) =>
|
|
9
|
+
f?: Node | undefined;
|
|
10
|
+
USE_IRIDESCENCE?: Node | undefined;
|
|
11
|
+
USE_ANISOTROPY?: Node | undefined;
|
|
12
|
+
}) => OperatorNode;
|
|
14
13
|
|
|
15
14
|
export default BRDF_GGX;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Node from "../../core/Node.js";
|
|
2
|
+
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
+
|
|
4
|
+
declare const BRDF_GGX_Multiscatter: (args: {
|
|
5
|
+
lightDirection: Node;
|
|
6
|
+
f0: Node;
|
|
7
|
+
f90: Node;
|
|
8
|
+
roughness: Node;
|
|
9
|
+
f?: Node | undefined;
|
|
10
|
+
USE_IRIDESCENCE?: Node | undefined;
|
|
11
|
+
USE_ANISOTROPY?: Node | undefined;
|
|
12
|
+
}) => OperatorNode;
|
|
13
|
+
|
|
14
|
+
export default BRDF_GGX_Multiscatter;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
|
-
declare const BRDF_Lambert: (args: { diffuseColor: Node }) =>
|
|
4
|
+
declare const BRDF_Lambert: (args: { diffuseColor: Node }) => OperatorNode;
|
|
6
5
|
|
|
7
6
|
export default BRDF_Lambert;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
|
-
declare const BRDF_Sheen: (args: { lightDirection: Node }) =>
|
|
4
|
+
declare const BRDF_Sheen: (args: { lightDirection: Node }) => OperatorNode;
|
|
6
5
|
|
|
7
6
|
export default BRDF_Sheen;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Node from "../../core/Node.js";
|
|
2
|
+
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Precomputed DFG LUT for Image-Based Lighting
|
|
6
|
+
* Resolution: 16x16
|
|
7
|
+
* Samples: 4096 per texel
|
|
8
|
+
* Format: RG16F (2 half floats per texel: scale, bias)
|
|
9
|
+
*/
|
|
10
|
+
declare const DFGLUT: (args: { roughness: Node; dotNV: Node }) => OperatorNode;
|
|
11
|
+
|
|
12
|
+
export default DFGLUT;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
// Microfacet Models for Refraction through Rough Surfaces - equation (33)
|
|
6
5
|
// http://graphicrants.blogspot.com/2013/08/specular-brdf-reference.html
|
|
7
6
|
// alpha is "roughness squared" in Disney’s reparameterization
|
|
8
|
-
declare const D_GGX: (args: { alpha: Node; dotNH: Node }) =>
|
|
7
|
+
declare const D_GGX: (args: { alpha: Node; dotNH: Node }) => OperatorNode;
|
|
9
8
|
|
|
10
9
|
export default D_GGX;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
// https://google.github.io/filament/Filament.md.html#materialsystem/anisotropicmodel/anisotropicspecularbrdf
|
|
6
5
|
declare const D_GGX_Anisotropic: (
|
|
7
6
|
args: { alphaT: Node; alphaB: Node; dotNH: Node; dotTH: Node; dotBH: Node },
|
|
8
|
-
) =>
|
|
7
|
+
) => OperatorNode;
|
|
9
8
|
|
|
10
9
|
export default D_GGX_Anisotropic;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
|
-
declare const F_Schlick: (args: { f0: Node; f90: Node; dotVH: Node }) =>
|
|
4
|
+
declare const F_Schlick: (args: { f0: Node; f90: Node; dotVH: Node }) => OperatorNode;
|
|
6
5
|
|
|
7
6
|
export default F_Schlick;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
2
|
import OperatorNode from "../../math/OperatorNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
declare const V_GGX_SmithCorrelated: (inputs: {
|
|
6
5
|
alpha: Node;
|
|
7
6
|
dotNL: Node;
|
|
8
7
|
dotNV: Node;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => OperatorNode;
|
|
10
9
|
|
|
11
10
|
export default V_GGX_SmithCorrelated;
|
|
@@ -1,6 +1,5 @@
|
|
|
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
|
|
|
5
4
|
declare const V_GGX_SmithCorrelated: (inputs: {
|
|
6
5
|
alphaT: Node;
|
|
@@ -11,6 +10,6 @@ declare const V_GGX_SmithCorrelated: (inputs: {
|
|
|
11
10
|
dotBL: Node;
|
|
12
11
|
dotNV: Node;
|
|
13
12
|
dotNL: Node;
|
|
14
|
-
}) =>
|
|
13
|
+
}) => MathNode;
|
|
15
14
|
|
|
16
15
|
export default V_GGX_SmithCorrelated;
|
|
@@ -16,6 +16,8 @@ export default class PhysicalLightingModel extends LightingModel {
|
|
|
16
16
|
sheenSpecularIndirect: Node | null;
|
|
17
17
|
iridescenceFresnel: Node | null;
|
|
18
18
|
iridescenceF0: Node | null;
|
|
19
|
+
iridescenceF0Dielectric: Node | null;
|
|
20
|
+
iridescenceF0Metallic: Node | null;
|
|
19
21
|
|
|
20
22
|
constructor(
|
|
21
23
|
clearcoat?: boolean,
|
|
@@ -26,5 +28,10 @@ export default class PhysicalLightingModel extends LightingModel {
|
|
|
26
28
|
dispersion?: boolean,
|
|
27
29
|
);
|
|
28
30
|
|
|
29
|
-
computeMultiscattering(
|
|
31
|
+
computeMultiscattering(
|
|
32
|
+
singleScatter: Node,
|
|
33
|
+
multiScatter: Node,
|
|
34
|
+
specularF90: Node,
|
|
35
|
+
iridescenceF0?: Node | null,
|
|
36
|
+
): void;
|
|
30
37
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import LightingModel from "../core/LightingModel.js";
|
|
2
2
|
import VarNode from "../core/VarNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
export default class ShadowMaskModel extends LightingModel {
|
|
6
|
-
shadowNode:
|
|
5
|
+
shadowNode: VarNode;
|
|
7
6
|
|
|
8
7
|
constructor();
|
|
9
8
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
declare const getAlphaHashThreshold: (position: Node) =>
|
|
3
|
+
declare const getAlphaHashThreshold: (position: Node) => Node;
|
|
5
4
|
|
|
6
5
|
export default getAlphaHashThreshold;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import MathNode from "../../math/MathNode.js";
|
|
2
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
declare const getGeometryRoughness: () =>
|
|
3
|
+
declare const getGeometryRoughness: () => MathNode;
|
|
5
4
|
|
|
6
5
|
export default getGeometryRoughness;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
declare const getParallaxCorrectNormal: (
|
|
5
4
|
normal: Node,
|
|
6
5
|
cubeSize: Node,
|
|
7
6
|
cubePos: Node,
|
|
8
|
-
) =>
|
|
7
|
+
) => Node;
|
|
9
8
|
|
|
10
9
|
export default getParallaxCorrectNormal;
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
|
|
5
|
-
declare const getRoughness: (args: { roughness: Node }) =>
|
|
4
|
+
declare const getRoughness: (args: { roughness: Node }) => MathNode;
|
|
6
5
|
|
|
7
6
|
export default getRoughness;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
declare const getShIrradianceAt: (normal: Node, shCoefficients: Node) =>
|
|
3
|
+
declare const getShIrradianceAt: (normal: Node, shCoefficients: Node) => Node;
|
|
5
4
|
|
|
6
5
|
export default getShIrradianceAt;
|
|
@@ -4,7 +4,6 @@ import { Vector3 } from "../../math/Vector3.js";
|
|
|
4
4
|
import { Vector4 } from "../../math/Vector4.js";
|
|
5
5
|
import Node from "../core/Node.js";
|
|
6
6
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
7
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
8
7
|
|
|
9
8
|
export default class RangeNode extends Node {
|
|
10
9
|
minNode: Node;
|
|
@@ -18,4 +17,4 @@ export default class RangeNode extends Node {
|
|
|
18
17
|
export const range: (
|
|
19
18
|
minNode: Node | number | Color | Vector2 | Vector3 | Vector4,
|
|
20
19
|
maxNode: Node | number | Color | Vector2 | Vector3 | Vector4,
|
|
21
|
-
) =>
|
|
20
|
+
) => RangeNode;
|
|
@@ -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;
|