@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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import Node from "./Node.js";
|
|
3
2
|
|
|
4
3
|
export default class OutputStructNode extends Node {
|
|
@@ -9,4 +8,4 @@ export default class OutputStructNode extends Node {
|
|
|
9
8
|
constructor(...members: Node[]);
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
export const outputStruct: (...members: Node[]) =>
|
|
11
|
+
export const outputStruct: (...members: Node[]) => OutputStructNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import PropertyNode from "./PropertyNode.js";
|
|
3
2
|
|
|
4
3
|
declare class ParameterNode extends PropertyNode {
|
|
@@ -9,4 +8,4 @@ declare class ParameterNode extends PropertyNode {
|
|
|
9
8
|
|
|
10
9
|
export default ParameterNode;
|
|
11
10
|
|
|
12
|
-
export const parameter: (type: string, name?: string | null) =>
|
|
11
|
+
export const parameter: (type: string, name?: string | null) => ParameterNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import Node from "./Node.js";
|
|
3
2
|
|
|
4
3
|
export default class PropertyNode extends Node {
|
|
@@ -10,34 +9,34 @@ export default class PropertyNode extends Node {
|
|
|
10
9
|
constructor(nodeType?: string | null, name?: string | null, varying?: boolean);
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
export const property: (type?: string | null, name?: string | null) =>
|
|
14
|
-
export const varyingProperty: (type?: string | null, name?: string | null) =>
|
|
12
|
+
export const property: (type?: string | null, name?: string | null) => PropertyNode;
|
|
13
|
+
export const varyingProperty: (type?: string | null, name?: string | null) => PropertyNode;
|
|
15
14
|
|
|
16
|
-
export const diffuseColor:
|
|
17
|
-
export const emissive:
|
|
18
|
-
export const roughness:
|
|
19
|
-
export const metalness:
|
|
20
|
-
export const clearcoat:
|
|
21
|
-
export const clearcoatRoughness:
|
|
22
|
-
export const sheen:
|
|
23
|
-
export const sheenRoughness:
|
|
24
|
-
export const iridescence:
|
|
25
|
-
export const iridescenceIOR:
|
|
26
|
-
export const iridescenceThickness:
|
|
27
|
-
export const alphaT:
|
|
28
|
-
export const anisotropy:
|
|
29
|
-
export const anisotropyT:
|
|
30
|
-
export const anisotropyB:
|
|
31
|
-
export const specularColor:
|
|
32
|
-
export const specularF90:
|
|
33
|
-
export const shininess:
|
|
34
|
-
export const output:
|
|
35
|
-
export const dashSize:
|
|
36
|
-
export const gapSize:
|
|
37
|
-
export const pointWidth:
|
|
38
|
-
export const ior:
|
|
39
|
-
export const transmission:
|
|
40
|
-
export const thickness:
|
|
41
|
-
export const attenuationDistance:
|
|
42
|
-
export const attenuationColor:
|
|
43
|
-
export const dispersion:
|
|
15
|
+
export const diffuseColor: PropertyNode;
|
|
16
|
+
export const emissive: PropertyNode;
|
|
17
|
+
export const roughness: PropertyNode;
|
|
18
|
+
export const metalness: PropertyNode;
|
|
19
|
+
export const clearcoat: PropertyNode;
|
|
20
|
+
export const clearcoatRoughness: PropertyNode;
|
|
21
|
+
export const sheen: PropertyNode;
|
|
22
|
+
export const sheenRoughness: PropertyNode;
|
|
23
|
+
export const iridescence: PropertyNode;
|
|
24
|
+
export const iridescenceIOR: PropertyNode;
|
|
25
|
+
export const iridescenceThickness: PropertyNode;
|
|
26
|
+
export const alphaT: PropertyNode;
|
|
27
|
+
export const anisotropy: PropertyNode;
|
|
28
|
+
export const anisotropyT: PropertyNode;
|
|
29
|
+
export const anisotropyB: PropertyNode;
|
|
30
|
+
export const specularColor: PropertyNode;
|
|
31
|
+
export const specularF90: PropertyNode;
|
|
32
|
+
export const shininess: PropertyNode;
|
|
33
|
+
export const output: PropertyNode;
|
|
34
|
+
export const dashSize: PropertyNode;
|
|
35
|
+
export const gapSize: PropertyNode;
|
|
36
|
+
export const pointWidth: PropertyNode;
|
|
37
|
+
export const ior: PropertyNode;
|
|
38
|
+
export const transmission: PropertyNode;
|
|
39
|
+
export const thickness: PropertyNode;
|
|
40
|
+
export const attenuationDistance: PropertyNode;
|
|
41
|
+
export const attenuationColor: PropertyNode;
|
|
42
|
+
export const dispersion: PropertyNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import Node from "./Node.js";
|
|
3
2
|
|
|
4
3
|
declare class StackNode extends Node {
|
|
@@ -8,8 +7,6 @@ declare class StackNode extends Node {
|
|
|
8
7
|
|
|
9
8
|
constructor();
|
|
10
9
|
|
|
11
|
-
add(node: Node): this;
|
|
12
|
-
|
|
13
10
|
If(boolNode: Node, method: () => void): this;
|
|
14
11
|
|
|
15
12
|
ElseIf(boolNode: Node, method: () => void): this;
|
|
@@ -25,4 +22,4 @@ declare class StackNode extends Node {
|
|
|
25
22
|
|
|
26
23
|
export default StackNode;
|
|
27
24
|
|
|
28
|
-
export const stack: () =>
|
|
25
|
+
export const stack: () => StackNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import Node from "./Node.js";
|
|
3
2
|
import StructTypeNode, { MembersLayout } from "./StructTypeNode.js";
|
|
4
3
|
|
|
@@ -11,9 +10,9 @@ declare class StructNode extends Node {
|
|
|
11
10
|
export default StructNode;
|
|
12
11
|
|
|
13
12
|
export interface Struct {
|
|
14
|
-
():
|
|
15
|
-
(values: Node[]):
|
|
16
|
-
(...values: Node[]):
|
|
13
|
+
(): StructNode;
|
|
14
|
+
(values: Node[]): StructNode;
|
|
15
|
+
(...values: Node[]): StructNode;
|
|
17
16
|
layout: StructTypeNode;
|
|
18
17
|
isStruct: true;
|
|
19
18
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import Node from "./Node.js";
|
|
3
2
|
|
|
4
3
|
declare class SubBuildNode extends Node {
|
|
@@ -12,4 +11,4 @@ declare class SubBuildNode extends Node {
|
|
|
12
11
|
|
|
13
12
|
export default SubBuildNode;
|
|
14
13
|
|
|
15
|
-
export const subBuild: (node: Node, name: string, type?: string | null) =>
|
|
14
|
+
export const subBuild: (node: Node, name: string, type?: string | null) => SubBuildNode;
|
|
@@ -27,7 +27,7 @@ declare class UniformNode<TValue> extends InputNode<TValue> {
|
|
|
27
27
|
* @param {string} name - The name of the uniform.
|
|
28
28
|
* @return {UniformNode} A reference to this node.
|
|
29
29
|
*/
|
|
30
|
-
setName(name: string)
|
|
30
|
+
setName: (name: string) => this;
|
|
31
31
|
/**
|
|
32
32
|
* Sets the {@link UniformNode#name} property.
|
|
33
33
|
*
|
|
@@ -35,7 +35,7 @@ declare class UniformNode<TValue> extends InputNode<TValue> {
|
|
|
35
35
|
* @param {string} name - The name of the uniform.
|
|
36
36
|
* @return {UniformNode} A reference to this node.
|
|
37
37
|
*/
|
|
38
|
-
label(name: string)
|
|
38
|
+
label: (name: string) => this;
|
|
39
39
|
/**
|
|
40
40
|
* Sets the {@link UniformNode#groupNode} property.
|
|
41
41
|
*
|
|
@@ -67,11 +67,8 @@ export default UniformNode;
|
|
|
67
67
|
*
|
|
68
68
|
* @tsl
|
|
69
69
|
* @function
|
|
70
|
-
* @param {any}
|
|
71
|
-
* @param {string} [
|
|
70
|
+
* @param {any|string} value - The value of this uniform or your type. Usually a JS primitive or three.js object (vector, matrix, color, texture).
|
|
71
|
+
* @param {string} [type] - The node type. If no explicit type is defined, the node tries to derive the type from its value.
|
|
72
72
|
* @returns {UniformNode}
|
|
73
73
|
*/
|
|
74
|
-
export declare const uniform: <TValue>(
|
|
75
|
-
arg1: InputNode<TValue> | TValue,
|
|
76
|
-
arg2?: Node | string,
|
|
77
|
-
) => import("../tsl/TSLCore.js").ShaderNodeObject<UniformNode<TValue>>;
|
|
74
|
+
export declare const uniform: <TValue>(value: InputNode<TValue> | TValue, type?: Node | string) => UniformNode<TValue>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
1
|
import Node from "./Node.js";
|
|
3
2
|
|
|
4
3
|
declare class VarNode extends Node {
|
|
@@ -19,30 +18,21 @@ declare class VarNode extends Node {
|
|
|
19
18
|
|
|
20
19
|
export default VarNode;
|
|
21
20
|
|
|
22
|
-
export const Var: (node: Node, name?: string | null) =>
|
|
21
|
+
export const Var: (node: Node, name?: string | null) => VarNode;
|
|
23
22
|
|
|
24
|
-
export const Const: (node: Node, name?: string | null) =>
|
|
23
|
+
export const Const: (node: Node, name?: string | null) => VarNode;
|
|
25
24
|
|
|
26
25
|
export const VarIntent: (node: Node) => Node;
|
|
27
26
|
|
|
28
|
-
declare module "../
|
|
29
|
-
interface
|
|
30
|
-
toVar: (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
declare module "../Nodes.js" {
|
|
28
|
+
interface Node {
|
|
29
|
+
toVar: (name?: string | null) => VarNode;
|
|
30
|
+
toVarAssign: (name?: string | null) => this;
|
|
31
|
+
|
|
32
|
+
toConst: (name?: string | null) => VarNode;
|
|
33
|
+
toConstAssign: (name?: string | null) => this;
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*/
|
|
39
|
-
export const temp: (node: Node, name?: string | null) => ShaderNodeObject<VarNode>;
|
|
40
|
-
|
|
41
|
-
declare module "../tsl/TSLCore.js" {
|
|
42
|
-
interface NodeElements {
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use ".toVar()" instead.
|
|
45
|
-
*/
|
|
46
|
-
temp: typeof temp;
|
|
35
|
+
toVarIntent: () => Node;
|
|
36
|
+
toVarIntentAssign: () => this;
|
|
47
37
|
}
|
|
48
38
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InterpolationSamplingMode, InterpolationSamplingType } from "../../constants.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
import Node from "./Node.js";
|
|
4
3
|
import NodeBuilder from "./NodeBuilder.js";
|
|
5
4
|
import NodeVarying from "./NodeVarying.js";
|
|
@@ -18,22 +17,25 @@ export default class VaryingNode extends Node {
|
|
|
18
17
|
setupVarying(builder: NodeBuilder): NodeVarying;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
export const varying: (node: Node, name?: string) =>
|
|
20
|
+
export const varying: (node: Node, name?: string) => VaryingNode;
|
|
22
21
|
|
|
23
|
-
export const vertexStage: (node: Node) =>
|
|
22
|
+
export const vertexStage: (node: Node) => VaryingNode;
|
|
24
23
|
|
|
25
|
-
declare module "../
|
|
26
|
-
interface
|
|
27
|
-
toVarying:
|
|
28
|
-
|
|
24
|
+
declare module "../Nodes.js" {
|
|
25
|
+
interface Node {
|
|
26
|
+
toVarying: (name?: string) => VaryingNode;
|
|
27
|
+
toVaryingAssign: (name?: string) => this;
|
|
28
|
+
|
|
29
|
+
toVertexStage: () => VaryingNode;
|
|
30
|
+
toVertexStageAssign: () => this;
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
|
-
* @deprecated .
|
|
33
|
+
* @deprecated .vertexStage() has been renamed to .toVertexStage().
|
|
32
34
|
*/
|
|
33
|
-
|
|
35
|
+
vertexStage: () => VaryingNode;
|
|
34
36
|
/**
|
|
35
37
|
* @deprecated .vertexStage() has been renamed to .toVertexStage().
|
|
36
38
|
*/
|
|
37
|
-
|
|
39
|
+
vertexStageAssign: () => this;
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
export const blendBurn: (base: Node, blend: Node) =>
|
|
3
|
+
export const blendBurn: (base: Node, blend: Node) => Node;
|
|
5
4
|
|
|
6
|
-
export const blendDodge: (base: Node, blend: Node) =>
|
|
5
|
+
export const blendDodge: (base: Node, blend: Node) => Node;
|
|
7
6
|
|
|
8
|
-
export const blendScreen: (base: Node, blend: Node) =>
|
|
7
|
+
export const blendScreen: (base: Node, blend: Node) => Node;
|
|
9
8
|
|
|
10
|
-
export const blendOverlay: (base: Node, blend: Node) =>
|
|
9
|
+
export const blendOverlay: (base: Node, blend: Node) => Node;
|
|
11
10
|
|
|
12
|
-
export const blendColor: (base: Node, blend: Node) =>
|
|
11
|
+
export const blendColor: (base: Node, blend: Node) => Node;
|
|
13
12
|
|
|
14
|
-
export const premultiplyAlpha: (color: Node) =>
|
|
13
|
+
export const premultiplyAlpha: (color: Node) => Node;
|
|
15
14
|
|
|
16
|
-
export const unpremultiplyAlpha: (color: Node) =>
|
|
15
|
+
export const unpremultiplyAlpha: (color: Node) => Node;
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
* @deprecated
|
|
20
19
|
*/
|
|
21
|
-
export const burn: (base: Node, blend: Node) =>
|
|
20
|
+
export const burn: (base: Node, blend: Node) => Node;
|
|
22
21
|
|
|
23
22
|
/**
|
|
24
23
|
* @deprecated
|
|
25
24
|
*/
|
|
26
|
-
export const dodge: (base: Node, blend: Node) =>
|
|
25
|
+
export const dodge: (base: Node, blend: Node) => Node;
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
28
|
* @deprecated
|
|
30
29
|
*/
|
|
31
|
-
export const screen: (base: Node, blend: Node) =>
|
|
30
|
+
export const screen: (base: Node, blend: Node) => Node;
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* @deprecated
|
|
35
34
|
*/
|
|
36
|
-
export const overlay: (base: Node, blend: Node) =>
|
|
35
|
+
export const overlay: (base: Node, blend: Node) => Node;
|
|
@@ -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
|
declare class BumpMapNode extends TempNode {
|
|
6
5
|
textureNode: Node;
|
|
@@ -14,4 +13,4 @@ export default BumpMapNode;
|
|
|
14
13
|
export const bumpMap: (
|
|
15
14
|
textureNode: Node,
|
|
16
15
|
scaleNode?: Node | null,
|
|
17
|
-
) =>
|
|
16
|
+
) => BumpMapNode;
|
|
@@ -1,30 +1,29 @@
|
|
|
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
|
-
export const grayscale: (color: Node) =>
|
|
4
|
+
export const grayscale: (color: Node) => Node;
|
|
6
5
|
|
|
7
6
|
export const saturation: (
|
|
8
7
|
color: Node,
|
|
9
8
|
adjustment?: Node | number,
|
|
10
|
-
) =>
|
|
9
|
+
) => Node;
|
|
11
10
|
|
|
12
11
|
export const vibrance: (
|
|
13
12
|
color: Node,
|
|
14
13
|
adjustment?: Node | number,
|
|
15
|
-
) =>
|
|
14
|
+
) => Node;
|
|
16
15
|
|
|
17
16
|
export const hue: (
|
|
18
17
|
color: Node,
|
|
19
18
|
adjustment?: Node | number,
|
|
20
|
-
) =>
|
|
19
|
+
) => Node;
|
|
21
20
|
|
|
22
21
|
export const luminance: (
|
|
23
22
|
color: Node,
|
|
24
23
|
luminanceCoefficients?: Node,
|
|
25
|
-
) =>
|
|
24
|
+
) => MathNode;
|
|
26
25
|
|
|
27
|
-
export const threshold: (color: Node, thershold: Node) =>
|
|
26
|
+
export const threshold: (color: Node, thershold: Node) => MathNode;
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Color Decision List (CDL) v1.2
|
|
@@ -53,4 +52,4 @@ export const cdl: (
|
|
|
53
52
|
power?: Node,
|
|
54
53
|
saturation?: Node,
|
|
55
54
|
luminanceCoefficients?: Node,
|
|
56
|
-
) =>
|
|
55
|
+
) => 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 sRGBTransferEOTF: (color: Node) =>
|
|
3
|
+
export const sRGBTransferEOTF: (color: Node) => Node;
|
|
5
4
|
|
|
6
|
-
export const sRGBTransferOETF: (color: Node) =>
|
|
5
|
+
export const sRGBTransferOETF: (color: Node) => Node;
|
|
@@ -2,7 +2,6 @@ import { LinearSRGBColorSpace, SRGBColorSpace } from "../../constants.js";
|
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
4
|
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
5
|
|
|
7
6
|
export type WorkingOrOutputColorSpace = "WorkingColorSpace" | "OutputColorSpace";
|
|
8
7
|
|
|
@@ -30,21 +29,32 @@ export default class ColorSpaceNode extends TempNode {
|
|
|
30
29
|
export const workingToColorSpace: (
|
|
31
30
|
node: Node,
|
|
32
31
|
targetColorSpace: string,
|
|
33
|
-
) =>
|
|
32
|
+
) => ColorSpaceNode;
|
|
34
33
|
export const colorSpaceToWorking: (
|
|
35
34
|
node: Node,
|
|
36
35
|
sourceColorSpace: string,
|
|
37
|
-
) =>
|
|
36
|
+
) => ColorSpaceNode;
|
|
38
37
|
|
|
39
38
|
export const convertColorSpace: (
|
|
40
39
|
node: Node,
|
|
41
40
|
sourceColorSpace: string,
|
|
42
41
|
targetColorSpace: string,
|
|
43
|
-
) =>
|
|
44
|
-
|
|
45
|
-
declare module "../
|
|
46
|
-
interface
|
|
47
|
-
workingToColorSpace:
|
|
48
|
-
|
|
42
|
+
) => ColorSpaceNode;
|
|
43
|
+
|
|
44
|
+
declare module "../Nodes.js" {
|
|
45
|
+
interface Node {
|
|
46
|
+
workingToColorSpace: (
|
|
47
|
+
targetColorSpace: string,
|
|
48
|
+
) => ColorSpaceNode;
|
|
49
|
+
workingToColorSpaceAssign: (
|
|
50
|
+
targetColorSpace: string,
|
|
51
|
+
) => this;
|
|
52
|
+
|
|
53
|
+
colorSpaceToWorking: (
|
|
54
|
+
sourceColorSpace: string,
|
|
55
|
+
) => ColorSpaceNode;
|
|
56
|
+
colorSpaceToWorkingAssign: (
|
|
57
|
+
sourceColorSpace: string,
|
|
58
|
+
) => this;
|
|
49
59
|
}
|
|
50
60
|
}
|
|
@@ -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 FrontFacingNode extends Node {
|
|
5
4
|
isFrontFacingNode: true;
|
|
@@ -8,6 +7,6 @@ declare class FrontFacingNode extends Node {
|
|
|
8
7
|
|
|
9
8
|
export default FrontFacingNode;
|
|
10
9
|
|
|
11
|
-
export const frontFacing:
|
|
12
|
-
export const faceDirection:
|
|
13
|
-
export const directionToFaceDirection: (direction: Node) =>
|
|
10
|
+
export const frontFacing: FrontFacingNode;
|
|
11
|
+
export const faceDirection: Node;
|
|
12
|
+
export const directionToFaceDirection: (direction: Node) => Node;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NormalMapTypes } from "../../constants.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
5
|
declare class NormalMapNode extends TempNode {
|
|
7
6
|
node: Node;
|
|
@@ -14,4 +13,4 @@ declare class NormalMapNode extends TempNode {
|
|
|
14
13
|
|
|
15
14
|
export default NormalMapNode;
|
|
16
15
|
|
|
17
|
-
export const normalMap: (node: Node, scaleNode?: Node) =>
|
|
16
|
+
export const normalMap: (node: Node, scaleNode?: Node) => NormalMapNode;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Camera } from "../../cameras/Camera.js";
|
|
2
2
|
import { Layers } from "../../core/Layers.js";
|
|
3
|
+
import { Object3D } from "../../core/Object3D.js";
|
|
3
4
|
import { RenderTarget, RenderTargetOptions } from "../../core/RenderTarget.js";
|
|
4
5
|
import { Vector4 } from "../../math/Vector4.js";
|
|
5
6
|
import Renderer from "../../renderers/common/Renderer.js";
|
|
6
|
-
import { Scene } from "../../scenes/Scene.js";
|
|
7
7
|
import { Texture } from "../../textures/Texture.js";
|
|
8
8
|
import TextureNode from "../accessors/TextureNode.js";
|
|
9
9
|
import MRTNode from "../core/MRTNode.js";
|
|
10
10
|
import Node from "../core/Node.js";
|
|
11
11
|
import TempNode from "../core/TempNode.js";
|
|
12
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
13
12
|
|
|
14
13
|
declare class PassTextureNode extends TextureNode {
|
|
15
14
|
passNode: PassNode;
|
|
@@ -28,17 +27,27 @@ declare class PassMultipleTextureNode extends PassTextureNode {
|
|
|
28
27
|
|
|
29
28
|
declare class PassNode extends TempNode {
|
|
30
29
|
scope: PassNodeScope;
|
|
31
|
-
scene:
|
|
30
|
+
scene: Object3D;
|
|
32
31
|
camera: Camera;
|
|
33
32
|
|
|
34
33
|
renderTarget: RenderTarget;
|
|
35
34
|
|
|
36
35
|
readonly isPassNode: true;
|
|
37
36
|
|
|
38
|
-
constructor(scope: PassNodeScope, scene:
|
|
37
|
+
constructor(scope: PassNodeScope, scene: Object3D, camera: Camera, options?: RenderTargetOptions);
|
|
39
38
|
|
|
39
|
+
setResolutionScale(resolution: number): this;
|
|
40
|
+
|
|
41
|
+
getResolutionScale(): number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use {@link PassNode#setResolutionScale `setResolutionScale()`} instead.
|
|
45
|
+
*/
|
|
40
46
|
setResolution(resolution: number): this;
|
|
41
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use {@link PassNode#getResolutionScale `getResolutionScale()`} instead.
|
|
50
|
+
*/
|
|
42
51
|
getResolution(): number;
|
|
43
52
|
|
|
44
53
|
setLayers(layers: Layers): this;
|
|
@@ -55,13 +64,13 @@ declare class PassNode extends TempNode {
|
|
|
55
64
|
|
|
56
65
|
toggleTexture(name: string): void;
|
|
57
66
|
|
|
58
|
-
getTextureNode(name?: string):
|
|
67
|
+
getTextureNode(name?: string): TextureNode;
|
|
59
68
|
|
|
60
|
-
getPreviousTextureNode(name?: string):
|
|
69
|
+
getPreviousTextureNode(name?: string): Node;
|
|
61
70
|
|
|
62
|
-
getViewZNode(name?: string):
|
|
71
|
+
getViewZNode(name?: string): Node;
|
|
63
72
|
|
|
64
|
-
getLinearDepthNode(name?: string):
|
|
73
|
+
getLinearDepthNode(name?: string): Node;
|
|
65
74
|
|
|
66
75
|
compileAsync(renderer: Renderer): Promise<void>;
|
|
67
76
|
|
|
@@ -85,6 +94,6 @@ export type PassNodeScope = typeof PassNode.COLOR | typeof PassNode.DEPTH;
|
|
|
85
94
|
|
|
86
95
|
export default PassNode;
|
|
87
96
|
|
|
88
|
-
export const pass: (scene:
|
|
89
|
-
export const passTexture: (pass: PassNode, texture: Texture) =>
|
|
90
|
-
export const depthPass: (scene:
|
|
97
|
+
export const pass: (scene: Object3D, camera: Camera, options?: RenderTargetOptions) => PassNode;
|
|
98
|
+
export const passTexture: (pass: PassNode, texture: Texture) => PassTextureNode;
|
|
99
|
+
export const depthPass: (scene: Object3D, camera: Camera, options?: RenderTargetOptions) => PassNode;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
export default class PosterizeNode extends Node {
|
|
5
4
|
sourceNode: Node;
|
|
@@ -11,4 +10,4 @@ export default class PosterizeNode extends Node {
|
|
|
11
10
|
export const posterize: (
|
|
12
11
|
sourceNode: Node,
|
|
13
12
|
stepsNode: Node | number,
|
|
14
|
-
) =>
|
|
13
|
+
) => PosterizeNode;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ToneMapping } from "../../constants.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
5
|
declare class RenderOutputNode extends TempNode {
|
|
7
6
|
colorNode: Node;
|
|
8
|
-
toneMapping: ToneMapping | null;
|
|
9
7
|
outputColorSpace: string | null;
|
|
10
8
|
|
|
11
9
|
readonly isRenderOutput: true;
|
|
@@ -19,10 +17,17 @@ export const renderOutput: (
|
|
|
19
17
|
color: Node,
|
|
20
18
|
toneMapping?: ToneMapping | null,
|
|
21
19
|
outputColorSpace?: string | null,
|
|
22
|
-
) =>
|
|
20
|
+
) => RenderOutputNode;
|
|
23
21
|
|
|
24
|
-
declare module "../
|
|
25
|
-
interface
|
|
26
|
-
renderOutput:
|
|
22
|
+
declare module "../Nodes.js" {
|
|
23
|
+
interface Node {
|
|
24
|
+
renderOutput: (
|
|
25
|
+
toneMapping?: ToneMapping | null,
|
|
26
|
+
outputColorSpace?: string | null,
|
|
27
|
+
) => RenderOutputNode;
|
|
28
|
+
renderOutputAssign: (
|
|
29
|
+
toneMapping?: ToneMapping | null,
|
|
30
|
+
outputColorSpace?: string | null,
|
|
31
|
+
) => this;
|
|
27
32
|
}
|
|
28
33
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
export type ScreenNodeScope =
|
|
5
4
|
| typeof ScreenNode.COORDINATE
|
|
6
5
|
| typeof ScreenNode.VIEWPORT
|
|
7
6
|
| typeof ScreenNode.SIZE
|
|
8
|
-
| typeof ScreenNode.UV
|
|
7
|
+
| typeof ScreenNode.UV
|
|
8
|
+
| typeof ScreenNode.DPR;
|
|
9
9
|
|
|
10
10
|
declare class ScreenNode extends Node {
|
|
11
11
|
scope: ScreenNodeScope;
|
|
@@ -18,26 +18,28 @@ declare class ScreenNode extends Node {
|
|
|
18
18
|
static VIEWPORT: "viewport";
|
|
19
19
|
static SIZE: "size";
|
|
20
20
|
static UV: "uv";
|
|
21
|
+
static DPR: "dpr";
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export default ScreenNode;
|
|
24
25
|
|
|
25
26
|
// Screen
|
|
26
27
|
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
28
|
+
export const screenDPR: ScreenNode;
|
|
29
|
+
export const screenUV: ScreenNode;
|
|
30
|
+
export const screenSize: ScreenNode;
|
|
31
|
+
export const screenCoordinate: ScreenNode;
|
|
30
32
|
|
|
31
33
|
// Viewport
|
|
32
34
|
|
|
33
|
-
export const viewport:
|
|
34
|
-
export const viewportSize:
|
|
35
|
-
export const viewportCoordinate:
|
|
36
|
-
export const viewportUV:
|
|
35
|
+
export const viewport: ScreenNode;
|
|
36
|
+
export const viewportSize: Node;
|
|
37
|
+
export const viewportCoordinate: Node;
|
|
38
|
+
export const viewportUV: Node;
|
|
37
39
|
|
|
38
40
|
// Deprecated
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
43
|
* @deprecated "viewportResolution" is deprecated. Use "screenSize" instead.
|
|
42
44
|
*/
|
|
43
|
-
export const viewportResolution:
|
|
45
|
+
export const viewportResolution: ScreenNode;
|