@types/three 0.167.2 → 0.169.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 +2 -2
- three/build/three.webgpu.nodes.d.ts +1 -0
- three/build/three.webgpu.nodes.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +1 -4
- three/examples/jsm/capabilities/WebGL.d.ts +11 -3
- three/examples/jsm/controls/ArcballControls.d.ts +111 -77
- three/examples/jsm/controls/DragControls.d.ts +43 -29
- three/examples/jsm/controls/FirstPersonControls.d.ts +82 -12
- three/examples/jsm/controls/FlyControls.d.ts +35 -11
- three/examples/jsm/controls/OrbitControls.d.ts +84 -137
- three/examples/jsm/controls/PointerLockControls.d.ts +68 -9
- three/examples/jsm/controls/TrackballControls.d.ts +110 -26
- three/examples/jsm/controls/TransformControls.d.ts +152 -25
- three/examples/jsm/effects/AnaglyphEffect.d.ts +11 -5
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +7 -4
- three/examples/jsm/environments/RoomEnvironment.d.ts +2 -2
- three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
- three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
- three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
- three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
- three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
- three/examples/jsm/lines/Line2.d.ts +15 -1
- three/examples/jsm/lines/LineGeometry.d.ts +18 -1
- three/examples/jsm/lines/LineMaterial.d.ts +65 -12
- three/examples/jsm/lines/LineSegments2.d.ts +25 -2
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
- three/examples/jsm/loaders/DRACOLoader.d.ts +6 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +4 -0
- three/examples/jsm/modifiers/CurveModifier.d.ts +7 -3
- three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
- three/examples/jsm/objects/Lensflare.d.ts +13 -9
- three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
- three/examples/jsm/objects/SkyMesh.d.ts +17 -0
- three/examples/jsm/objects/Water2.d.ts +2 -2
- three/examples/jsm/objects/Water2Mesh.d.ts +42 -0
- three/examples/jsm/objects/WaterMesh.d.ts +31 -0
- three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +11 -2
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
- three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
- three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
- three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
- three/examples/jsm/utils/TextureUtilsGPU.d.ts +3 -0
- three/package.json +4 -3
- three/src/Three.WebGPU.Nodes.d.ts +201 -0
- three/src/Three.WebGPU.d.ts +7 -0
- three/src/Three.d.ts +1 -0
- three/src/audio/Audio.d.ts +4 -1
- three/src/core/BufferAttribute.d.ts +0 -15
- three/src/core/EventDispatcher.d.ts +0 -3
- three/src/core/InterleavedBuffer.d.ts +0 -12
- three/src/core/Object3D.d.ts +3 -1
- three/src/core/Raycaster.d.ts +2 -1
- three/src/extras/Controls.d.ts +54 -0
- three/src/loaders/MaterialLoader.d.ts +2 -0
- three/src/{nodes/loaders → loaders/nodes}/NodeLoader.d.ts +8 -3
- three/src/loaders/nodes/NodeMaterialLoader.d.ts +11 -0
- three/src/loaders/nodes/NodeObjectLoader.d.ts +22 -0
- three/src/materials/Material.d.ts +17 -13
- three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +33 -0
- three/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/LineBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +29 -0
- three/src/{nodes/materials → materials/nodes}/MeshBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -0
- three/src/{nodes/materials → materials/nodes}/MeshMatcapNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshNormalNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/MeshPhongNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshPhysicalNodeMaterial.d.ts +5 -2
- three/src/{nodes/materials → materials/nodes}/MeshSSSNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshStandardNodeMaterial.d.ts +3 -3
- three/src/{nodes/materials → materials/nodes}/MeshToonNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +89 -0
- three/src/{nodes/materials/Materials.d.ts → materials/nodes/NodeMaterials.d.ts} +5 -2
- three/src/{nodes/materials → materials/nodes}/PointsNodeMaterial.d.ts +1 -2
- three/src/{nodes/materials → materials/nodes}/ShadowNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/SpriteNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/VolumeNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +81 -0
- three/src/math/Quaternion.d.ts +4 -3
- three/src/math/Triangle.d.ts +24 -0
- three/src/nodes/Nodes.d.ts +117 -362
- three/src/nodes/TSL.d.ts +175 -0
- three/src/nodes/accessors/AccessorsUtils.d.ts +1 -1
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/{BitangentNode.d.ts → Bitangent.d.ts} +1 -1
- three/src/nodes/accessors/BufferAttributeNode.d.ts +5 -4
- three/src/nodes/accessors/BufferNode.d.ts +1 -1
- three/src/nodes/accessors/{CameraNode.d.ts → Camera.d.ts} +1 -1
- three/src/nodes/accessors/ClippingNode.d.ts +1 -1
- three/src/nodes/accessors/CubeTextureNode.d.ts +1 -7
- three/src/nodes/accessors/InstanceNode.d.ts +1 -1
- three/src/nodes/accessors/MaterialNode.d.ts +3 -4
- three/src/nodes/accessors/MaterialProperties.d.ts +4 -0
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +3 -1
- three/src/nodes/accessors/ModelNode.d.ts +8 -4
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -1
- three/src/nodes/accessors/MorphNode.d.ts +15 -0
- three/src/nodes/accessors/Normal.d.ts +25 -0
- three/src/nodes/accessors/Object3DNode.d.ts +2 -6
- three/src/nodes/accessors/PointUVNode.d.ts +1 -1
- three/src/nodes/accessors/{PositionNode.d.ts → Position.d.ts} +2 -1
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +27 -0
- three/src/nodes/accessors/ReferenceNode.d.ts +7 -5
- three/src/nodes/accessors/{ReflectVectorNode.d.ts → ReflectVector.d.ts} +1 -1
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
- three/src/nodes/accessors/SceneNode.d.ts +20 -0
- three/src/nodes/accessors/SkinningNode.d.ts +11 -1
- three/src/nodes/accessors/StorageBufferNode.d.ts +2 -2
- three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/src/nodes/accessors/{TangentNode.d.ts → Tangent.d.ts} +1 -1
- three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
- three/src/nodes/accessors/TextureBicubic.d.ts +4 -0
- three/src/nodes/accessors/TextureNode.d.ts +26 -7
- three/src/nodes/accessors/TextureSizeNode.d.ts +18 -0
- three/src/nodes/accessors/{UVNode.d.ts → UV.d.ts} +1 -1
- three/src/nodes/accessors/UniformArrayNode.d.ts +30 -0
- three/src/nodes/accessors/UserDataNode.d.ts +1 -1
- three/src/nodes/accessors/VelocityNode.d.ts +16 -0
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
- three/src/nodes/code/CodeNode.d.ts +1 -1
- three/src/nodes/code/ExpressionNode.d.ts +1 -1
- three/src/nodes/code/FunctionCallNode.d.ts +2 -2
- three/src/nodes/code/FunctionNode.d.ts +5 -6
- three/src/nodes/code/ScriptableNode.d.ts +22 -0
- three/src/nodes/code/ScriptableValueNode.d.ts +10 -0
- three/src/nodes/core/AssignNode.d.ts +2 -2
- three/src/nodes/core/AttributeNode.d.ts +2 -5
- three/src/nodes/core/BypassNode.d.ts +2 -2
- three/src/nodes/core/CacheNode.d.ts +2 -2
- three/src/nodes/core/ContextNode.d.ts +10 -7
- three/src/nodes/core/IndexNode.d.ts +11 -3
- three/src/nodes/core/MRTNode.d.ts +7 -2
- three/src/nodes/core/Node.d.ts +4 -7
- three/src/nodes/core/NodeUtils.d.ts +5 -1
- three/src/nodes/core/OutputStructNode.d.ts +1 -1
- three/src/nodes/core/ParameterNode.d.ts +12 -0
- three/src/nodes/core/PropertyNode.d.ts +1 -1
- three/src/nodes/core/StackNode.d.ts +12 -2
- three/src/nodes/core/StructTypeNode.d.ts +1 -0
- three/src/nodes/core/UniformNode.d.ts +2 -1
- three/src/nodes/core/VarNode.d.ts +2 -10
- three/src/nodes/core/VaryingNode.d.ts +2 -2
- three/src/nodes/display/AfterImageNode.d.ts +1 -7
- three/src/nodes/display/AnaglyphPassNode.d.ts +14 -0
- three/src/nodes/display/AnamorphicNode.d.ts +1 -7
- three/src/nodes/display/BleachBypass.d.ts +4 -0
- three/src/nodes/display/BlendMode.d.ts +10 -0
- three/src/nodes/display/BloomNode.d.ts +1 -7
- three/src/nodes/display/BumpMapNode.d.ts +16 -0
- three/src/nodes/display/ColorAdjustment.d.ts +27 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +6 -0
- three/src/nodes/display/ColorSpaceNode.d.ts +40 -21
- three/src/nodes/display/DenoiseNode.d.ts +3 -9
- three/src/nodes/display/DepthOfFieldNode.d.ts +4 -8
- three/src/nodes/display/DotScreenNode.d.ts +4 -8
- three/src/nodes/display/FXAANode.d.ts +3 -9
- three/src/nodes/display/FilmNode.d.ts +3 -9
- three/src/nodes/display/FrontFacingNode.d.ts +4 -2
- three/src/nodes/display/GTAONode.d.ts +3 -9
- three/src/nodes/display/GaussianBlurNode.d.ts +4 -8
- three/src/nodes/display/Lut3DNode.d.ts +3 -9
- three/src/nodes/display/MotionBlur.d.ts +8 -0
- three/src/nodes/display/NormalMapNode.d.ts +4 -8
- three/src/nodes/display/ParallaxBarrierPassNode.d.ts +14 -0
- three/src/nodes/display/PassNode.d.ts +11 -2
- three/src/nodes/display/PixelationPassNode.d.ts +1 -37
- three/src/nodes/display/PosterizeNode.d.ts +1 -7
- three/src/nodes/display/RGBShiftNode.d.ts +1 -7
- three/src/nodes/display/RenderOutputNode.d.ts +2 -2
- three/src/nodes/display/SSAAPassNode.d.ts +26 -0
- three/src/nodes/display/ScreenNode.d.ts +48 -0
- three/src/nodes/display/Sepia.d.ts +4 -0
- three/src/nodes/display/SobelOperatorNode.d.ts +4 -8
- three/src/nodes/display/StereoCompositePassNode.d.ts +17 -0
- three/src/nodes/display/StereoPassNode.d.ts +17 -0
- three/src/nodes/display/ToneMappingFunctions.d.ts +14 -0
- three/src/nodes/display/ToneMappingNode.d.ts +5 -6
- three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
- three/src/nodes/display/TransitionNode.d.ts +3 -9
- three/src/nodes/display/ViewportDepthNode.d.ts +6 -2
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -8
- three/src/nodes/display/ViewportTextureNode.d.ts +4 -9
- three/src/nodes/fog/FogExp2Node.d.ts +4 -8
- three/src/nodes/fog/FogNode.d.ts +4 -8
- three/src/nodes/fog/FogRangeNode.d.ts +4 -8
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -1
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +10 -0
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -1
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
- three/src/nodes/functions/material/getRoughness.d.ts +1 -1
- three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
- three/src/nodes/geometry/RangeNode.d.ts +1 -1
- three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
- three/src/nodes/lighting/AmbientLightNode.d.ts +8 -0
- three/src/nodes/lighting/DirectionalLightNode.d.ts +8 -0
- three/src/nodes/lighting/IESSpotLightNode.d.ts +5 -0
- three/src/nodes/lighting/LightNode.d.ts +18 -0
- three/src/nodes/lighting/LightProbeNode.d.ts +11 -0
- three/src/nodes/lighting/LightUtils.d.ts +3 -3
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -7
- three/src/nodes/lighting/LightsNode.d.ts +9 -13
- three/src/nodes/materialx/MaterialXNodes.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -2
- three/src/nodes/materialx/lib/mx_noise.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -1
- three/src/nodes/math/ConditionalNode.d.ts +39 -0
- three/src/nodes/math/Hash.d.ts +4 -0
- three/src/nodes/math/MathNode.d.ts +2 -2
- three/src/nodes/math/MathUtils.d.ts +0 -10
- three/src/nodes/math/OperatorNode.d.ts +18 -4
- three/src/nodes/math/TriNoise3D.d.ts +1 -1
- three/src/nodes/parsers/GLSLNodeFunction.d.ts +9 -0
- three/src/nodes/parsers/GLSLNodeParser.d.ts +8 -0
- three/src/nodes/pmrem/PMREMNode.d.ts +4 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +28 -0
- three/src/nodes/procedural/Checker.d.ts +4 -0
- three/src/nodes/tsl/TSLBase.d.ts +21 -0
- three/src/nodes/{shadernode/ShaderNode.d.ts → tsl/TSLCore.d.ts} +23 -23
- three/src/nodes/utils/CubeMapNode.d.ts +13 -0
- three/src/nodes/utils/Discard.d.ts +11 -0
- three/src/nodes/utils/EquirectUVNode.d.ts +1 -1
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +13 -0
- three/src/nodes/utils/LoopNode.d.ts +22 -0
- three/src/nodes/utils/MatcapUVNode.d.ts +1 -1
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/src/nodes/utils/OscNode.d.ts +1 -1
- three/src/nodes/utils/Packing.d.ts +5 -0
- three/src/nodes/utils/RTTNode.d.ts +7 -7
- three/src/nodes/utils/ReflectorNode.d.ts +1 -1
- three/src/nodes/utils/RemapNode.d.ts +2 -2
- three/src/nodes/utils/RotateNode.d.ts +1 -7
- three/src/nodes/utils/SetNode.d.ts +11 -0
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -1
- three/src/nodes/utils/SpriteUtils.d.ts +6 -0
- three/src/nodes/utils/{StoargeArrayElementNode.d.ts → StorageArrayElementNode.d.ts} +1 -7
- three/src/nodes/utils/TimerNode.d.ts +1 -1
- three/src/nodes/utils/TriplanarTexturesNode.d.ts +1 -7
- three/src/nodes/utils/UVUtils.d.ts +14 -0
- three/src/nodes/utils/ViewportUtils.d.ts +4 -0
- three/src/objects/BatchedMesh.d.ts +33 -0
- three/src/objects/Group.d.ts +0 -6
- three/src/objects/LOD.d.ts +7 -0
- three/src/renderers/WebGLRenderer.d.ts +2 -12
- three/src/renderers/common/BindGroup.d.ts +8 -1
- three/src/renderers/common/Bindings.d.ts +2 -2
- three/src/renderers/common/BundleGroup.d.ts +10 -0
- three/src/renderers/common/ClippingContext.d.ts +1 -0
- three/src/renderers/common/QuadMesh.d.ts +2 -0
- three/src/renderers/common/RenderBundles.d.ts +3 -3
- three/src/renderers/common/RenderContext.d.ts +2 -0
- three/src/renderers/common/RenderContexts.d.ts +6 -4
- three/src/renderers/common/RenderList.d.ts +2 -1
- three/src/renderers/common/RenderObject.d.ts +19 -1
- three/src/renderers/common/RenderObjects.d.ts +1 -1
- three/src/renderers/common/Renderer.d.ts +24 -5
- three/src/renderers/common/SampledTexture.d.ts +7 -1
- three/src/renderers/common/Textures.d.ts +1 -0
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
- three/src/renderers/common/nodes/NodeLibrary.d.ts +56 -0
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +3 -3
- three/src/renderers/common/nodes/Nodes.d.ts +15 -9
- three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
- three/src/renderers/webgl/WebGLPrograms.d.ts +1 -0
- three/src/renderers/webgl/WebGLProperties.d.ts +5 -4
- three/src/renderers/webgpu/WebGPUBackend.d.ts +6 -2
- three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
- three/src/renderers/webgpu/WebGPURenderer.d.ts +5 -1
- three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +2 -2
- three/src/renderers/webxr/WebXRManager.d.ts +0 -2
- three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
- three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
- three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
- three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
- three/src/nodes/accessors/NormalNode.d.ts +0 -12
- three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
- three/src/nodes/accessors/UniformsNode.d.ts +0 -23
- three/src/nodes/core/NodeKeywords.d.ts +0 -17
- three/src/nodes/display/BlendModeNode.d.ts +0 -47
- three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
- three/src/nodes/display/ViewportNode.d.ts +0 -31
- three/src/nodes/loaders/NodeMaterialLoader.d.ts +0 -8
- three/src/nodes/loaders/NodeObjectLoader.d.ts +0 -10
- three/src/nodes/materials/NodeMaterial.d.ts +0 -124
- three/src/nodes/math/CondNode.d.ts +0 -22
- three/src/nodes/math/HashNode.d.ts +0 -16
- three/src/nodes/procedural/CheckerNode.d.ts +0 -15
- three/src/nodes/utils/DiscardNode.d.ts +0 -17
- three/src/nodes/utils/PackingNode.d.ts +0 -24
- three/src/nodes/utils/RotateUVNode.d.ts +0 -19
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
export const burn: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
5
|
+
|
|
6
|
+
export const dodge: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
7
|
+
|
|
8
|
+
export const screen: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
9
|
+
|
|
10
|
+
export const overlay: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
@@ -2,7 +2,7 @@ import TextureNode from "../accessors/TextureNode.js";
|
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
4
|
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
5
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
6
|
|
|
7
7
|
declare class BloomNode extends TempNode {
|
|
8
8
|
inputNode: Node;
|
|
@@ -26,10 +26,4 @@ export const bloom: (
|
|
|
26
26
|
threshold?: number,
|
|
27
27
|
) => ShaderNodeObject<BloomNode>;
|
|
28
28
|
|
|
29
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
30
|
-
interface NodeElements {
|
|
31
|
-
bloom: typeof bloom;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
29
|
export default BloomNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import TempNode from "../core/TempNode.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
declare class BumpMapNode extends TempNode {
|
|
5
|
+
textureNode: Node;
|
|
6
|
+
scaleNode: Node | null;
|
|
7
|
+
|
|
8
|
+
constructor(textureNode: Node, scaleNode?: Node | null);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default BumpMapNode;
|
|
12
|
+
|
|
13
|
+
export const bumpMap: (
|
|
14
|
+
textureNode: NodeRepresentation,
|
|
15
|
+
scaleNode?: NodeRepresentation | null,
|
|
16
|
+
) => ShaderNodeObject<BumpMapNode>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import MathNode from "../math/MathNode.js";
|
|
3
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
|
+
|
|
5
|
+
export const grayscale: (color: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
6
|
+
|
|
7
|
+
export const saturation: (
|
|
8
|
+
color: NodeRepresentation,
|
|
9
|
+
adjustment?: NodeRepresentation,
|
|
10
|
+
) => ShaderNodeObject<Node>;
|
|
11
|
+
|
|
12
|
+
export const vibrance: (
|
|
13
|
+
color: NodeRepresentation,
|
|
14
|
+
adjustment?: NodeRepresentation,
|
|
15
|
+
) => ShaderNodeObject<Node>;
|
|
16
|
+
|
|
17
|
+
export const hue: (
|
|
18
|
+
color: NodeRepresentation,
|
|
19
|
+
adjustment?: NodeRepresentation,
|
|
20
|
+
) => ShaderNodeObject<Node>;
|
|
21
|
+
|
|
22
|
+
export const luminance: (
|
|
23
|
+
color: NodeRepresentation,
|
|
24
|
+
luminanceCoefficients?: NodeRepresentation,
|
|
25
|
+
) => ShaderNodeObject<MathNode>;
|
|
26
|
+
|
|
27
|
+
export const threshold: (color: NodeRepresentation, thershold: NodeRepresentation) => ShaderNodeObject<MathNode>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
export const sRGBToLinearSRGB: (color: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
5
|
+
|
|
6
|
+
export const linearSRGBTosRGB: (color: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
@@ -1,35 +1,54 @@
|
|
|
1
|
-
import { ColorSpace } from "../../constants.js";
|
|
1
|
+
import { ColorSpace, LinearSRGBColorSpace, SRGBColorSpace } from "../../constants.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
+
import NodeBuilder from "../core/NodeBuilder.js";
|
|
3
4
|
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
5
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
6
|
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export type WorkingOrOutputColorSpace = "WorkingColorSpace" | "OutputColorSpace";
|
|
8
|
+
|
|
9
|
+
export type ColorSpaceMethod = "LinearTosRGB" | "sRGBToLinear" | "LinearToLinear" | "sRGBTosRGB";
|
|
10
|
+
|
|
11
|
+
export function getColorSpaceMethod(
|
|
12
|
+
source: typeof LinearSRGBColorSpace | typeof SRGBColorSpace,
|
|
13
|
+
target: typeof LinearSRGBColorSpace | typeof SRGBColorSpace,
|
|
14
|
+
): ColorSpaceMethod;
|
|
10
15
|
|
|
11
16
|
export default class ColorSpaceNode extends TempNode {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
colorNode: Node;
|
|
18
|
+
source: WorkingOrOutputColorSpace | ColorSpace;
|
|
19
|
+
target: WorkingOrOutputColorSpace | ColorSpace;
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
constructor(
|
|
22
|
+
colorNode: Node,
|
|
23
|
+
source: WorkingOrOutputColorSpace | ColorSpace,
|
|
24
|
+
target: WorkingOrOutputColorSpace | ColorSpace,
|
|
25
|
+
);
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
getColorSpace(nodeBuilder: NodeBuilder, colorSpace: WorkingOrOutputColorSpace): ColorSpace;
|
|
20
28
|
}
|
|
21
29
|
|
|
22
|
-
export const
|
|
23
|
-
|
|
30
|
+
export const toOutputColorSpace: (
|
|
31
|
+
node: NodeRepresentation,
|
|
32
|
+
) => ShaderNodeObject<ColorSpaceNode>;
|
|
33
|
+
export const toWorkingColorSpace: (
|
|
34
|
+
node: NodeRepresentation,
|
|
35
|
+
) => ShaderNodeObject<ColorSpaceNode>;
|
|
24
36
|
|
|
25
|
-
export const
|
|
26
|
-
|
|
37
|
+
export const workingToColorSpace: (
|
|
38
|
+
node: NodeRepresentation,
|
|
39
|
+
colorSpace: ColorSpace,
|
|
40
|
+
) => ShaderNodeObject<ColorSpaceNode>;
|
|
41
|
+
export const colorSpaceToWorking: (
|
|
42
|
+
node: NodeRepresentation,
|
|
43
|
+
colorSpace: ColorSpace,
|
|
44
|
+
) => ShaderNodeObject<ColorSpaceNode>;
|
|
27
45
|
|
|
28
|
-
declare module "../
|
|
46
|
+
declare module "../tsl/TSLCore.js" {
|
|
29
47
|
interface NodeElements {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
toOutputColorSpace: typeof toOutputColorSpace;
|
|
49
|
+
toWorkingColorSpace: typeof toWorkingColorSpace;
|
|
50
|
+
|
|
51
|
+
workingToColorSpace: typeof workingToColorSpace;
|
|
52
|
+
colorSpaceToWorking: typeof colorSpaceToWorking;
|
|
34
53
|
}
|
|
35
54
|
}
|
|
@@ -3,7 +3,7 @@ import { Matrix4 } from "../../math/Matrix4.js";
|
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import TempNode from "../core/TempNode.js";
|
|
5
5
|
import UniformNode from "../core/UniformNode.js";
|
|
6
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
6
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
7
7
|
|
|
8
8
|
declare class DenoiseNode extends TempNode {
|
|
9
9
|
textureNode: Node;
|
|
@@ -21,6 +21,8 @@ declare class DenoiseNode extends TempNode {
|
|
|
21
21
|
constructor(textureNode: Node, depthNode: Node, normalNode: Node, noiseNode: Node, camera: Camera);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
export default DenoiseNode;
|
|
25
|
+
|
|
24
26
|
export const denoise: (
|
|
25
27
|
node: NodeRepresentation,
|
|
26
28
|
depthNode: NodeRepresentation,
|
|
@@ -28,11 +30,3 @@ export const denoise: (
|
|
|
28
30
|
noiseNode: NodeRepresentation,
|
|
29
31
|
camera: Camera,
|
|
30
32
|
) => ShaderNodeObject<DenoiseNode>;
|
|
31
|
-
|
|
32
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
33
|
-
interface NodeElements {
|
|
34
|
-
denoise: typeof denoise;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default DenoiseNode;
|
|
@@ -2,9 +2,9 @@ import TextureNode from "../accessors/TextureNode.js";
|
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
4
|
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
5
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
declare class DepthOfFieldNode extends TempNode {
|
|
8
8
|
textureNode: TextureNode;
|
|
9
9
|
viewZNode: Node;
|
|
10
10
|
|
|
@@ -15,6 +15,8 @@ export default class DepthOfFieldNode extends TempNode {
|
|
|
15
15
|
constructor(textureNode: TextureNode, viewZNode: Node, focusNode: Node, apertureNode: Node, maxblurNode: Node);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
export default DepthOfFieldNode;
|
|
19
|
+
|
|
18
20
|
export const dof: (
|
|
19
21
|
node: NodeRepresentation,
|
|
20
22
|
viewZNode: NodeRepresentation,
|
|
@@ -22,9 +24,3 @@ export const dof: (
|
|
|
22
24
|
aperture?: NodeRepresentation,
|
|
23
25
|
maxblur?: NodeRepresentation,
|
|
24
26
|
) => ShaderNodeObject<DepthOfFieldNode>;
|
|
25
|
-
|
|
26
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
27
|
-
interface NodeElements {
|
|
28
|
-
dof: typeof dof;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -2,9 +2,9 @@ import { Vector2 } from "../../math/Vector2.js";
|
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
4
|
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
5
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
declare class DotScreenNode extends TempNode {
|
|
8
8
|
inputNode: Node;
|
|
9
9
|
center: UniformNode<Vector2>;
|
|
10
10
|
angle: UniformNode<number>;
|
|
@@ -13,15 +13,11 @@ export default class DotScreenNode extends TempNode {
|
|
|
13
13
|
constructor(inputNode: Node, center?: Vector2, angle?: number, scale?: number);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export default DotScreenNode;
|
|
17
|
+
|
|
16
18
|
export const dotScreen: (
|
|
17
19
|
node: NodeRepresentation,
|
|
18
20
|
center?: Vector2,
|
|
19
21
|
angle?: number,
|
|
20
22
|
scale?: number,
|
|
21
23
|
) => ShaderNodeObject<DotScreenNode>;
|
|
22
|
-
|
|
23
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
24
|
-
interface NodeElements {
|
|
25
|
-
dotScreen: typeof dotScreen;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import TextureNode from "../accessors/TextureNode.js";
|
|
2
2
|
import TempNode from "../core/TempNode.js";
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
3
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
4
|
|
|
5
5
|
declare class FXAANode extends TempNode {
|
|
6
6
|
textureNode: TextureNode;
|
|
@@ -8,12 +8,6 @@ declare class FXAANode extends TempNode {
|
|
|
8
8
|
constructor(textureNode: TextureNode);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export const fxaa: (node: NodeRepresentation) => ShaderNodeObject<FXAANode>;
|
|
12
|
-
|
|
13
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
14
|
-
interface NodeElements {
|
|
15
|
-
fxaa: typeof fxaa;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
11
|
export default FXAANode;
|
|
12
|
+
|
|
13
|
+
export const fxaa: (node: NodeRepresentation) => ShaderNodeObject<FXAANode>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
2
|
import TempNode from "../core/TempNode.js";
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
3
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
4
|
|
|
5
5
|
declare class FilmNode extends TempNode {
|
|
6
6
|
inputNode: Node;
|
|
@@ -10,16 +10,10 @@ declare class FilmNode extends TempNode {
|
|
|
10
10
|
constructor(inputNode: Node, intensityNode?: Node | null, uvNode?: Node | null);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
export default FilmNode;
|
|
14
|
+
|
|
13
15
|
export const film: (
|
|
14
16
|
inputNode: NodeRepresentation,
|
|
15
17
|
intensityNode?: NodeRepresentation | null,
|
|
16
18
|
uvNode?: NodeRepresentation | null,
|
|
17
19
|
) => ShaderNodeObject<FilmNode>;
|
|
18
|
-
|
|
19
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
20
|
-
interface NodeElements {
|
|
21
|
-
film: typeof film;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default FilmNode;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
declare class FrontFacingNode extends Node {
|
|
5
5
|
isFrontFacingNode: true;
|
|
6
6
|
constructor();
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
export default FrontFacingNode;
|
|
10
|
+
|
|
9
11
|
export const frontFacing: ShaderNodeObject<FrontFacingNode>;
|
|
10
12
|
export const faceDirection: ShaderNodeObject<Node>;
|
|
@@ -5,7 +5,7 @@ import TextureNode from "../accessors/TextureNode.js";
|
|
|
5
5
|
import Node from "../core/Node.js";
|
|
6
6
|
import TempNode from "../core/TempNode.js";
|
|
7
7
|
import UniformNode from "../core/UniformNode.js";
|
|
8
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
8
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
9
9
|
|
|
10
10
|
declare class GTAONode extends TempNode {
|
|
11
11
|
depthNode: Node;
|
|
@@ -31,16 +31,10 @@ declare class GTAONode extends TempNode {
|
|
|
31
31
|
setSize(width: number, height: number): void;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
export default GTAONode;
|
|
35
|
+
|
|
34
36
|
export const ao: (
|
|
35
37
|
depthNode: NodeRepresentation,
|
|
36
38
|
normalNode: NodeRepresentation,
|
|
37
39
|
camera: Camera,
|
|
38
40
|
) => ShaderNodeObject<GTAONode>;
|
|
39
|
-
|
|
40
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
41
|
-
interface NodeElements {
|
|
42
|
-
ao: typeof ao;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default GTAONode;
|
|
@@ -2,9 +2,9 @@ import { Vector2 } from "../../math/Vector2.js";
|
|
|
2
2
|
import TextureNode from "../accessors/TextureNode.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
5
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
declare class GaussianBlurNode extends TempNode {
|
|
8
8
|
textureNode: TextureNode;
|
|
9
9
|
directionNode: Node | null;
|
|
10
10
|
sigma: number;
|
|
@@ -18,14 +18,10 @@ export default class GaussianBlurNode extends TempNode {
|
|
|
18
18
|
getTextureNode(): TextureNode;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export default GaussianBlurNode;
|
|
22
|
+
|
|
21
23
|
export const gaussianBlur: (
|
|
22
24
|
node: NodeRepresentation,
|
|
23
25
|
directionNode?: NodeRepresentation | null,
|
|
24
26
|
sigma?: number,
|
|
25
27
|
) => ShaderNodeObject<GaussianBlurNode>;
|
|
26
|
-
|
|
27
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
28
|
-
interface NodeElements {
|
|
29
|
-
gaussianBlur: typeof gaussianBlur;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -3,7 +3,7 @@ import Texture3DNode from "../accessors/Texture3DNode.js";
|
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import TempNode from "../core/TempNode.js";
|
|
5
5
|
import UniformNode from "../core/UniformNode.js";
|
|
6
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
6
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
7
7
|
|
|
8
8
|
declare class Lut3DNode extends TempNode {
|
|
9
9
|
inputNode: Node;
|
|
@@ -14,17 +14,11 @@ declare class Lut3DNode extends TempNode {
|
|
|
14
14
|
constructor(inputNode: Node, lutNode: UniformNode<Data3DTexture>, size: number, intensityNode: UniformNode<number>);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export default Lut3DNode;
|
|
18
|
+
|
|
17
19
|
export const lut3D: (
|
|
18
20
|
node: NodeRepresentation,
|
|
19
21
|
lut: NodeRepresentation,
|
|
20
22
|
size: number,
|
|
21
23
|
intensity: NodeRepresentation,
|
|
22
24
|
) => ShaderNodeObject<Lut3DNode>;
|
|
23
|
-
|
|
24
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
25
|
-
interface NodeElements {
|
|
26
|
-
lut3D: typeof lut3D;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default Lut3DNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
export const motionBlur: (
|
|
5
|
+
inputNode: NodeRepresentation,
|
|
6
|
+
velocity: NodeRepresentation,
|
|
7
|
+
numSamples?: NodeRepresentation,
|
|
8
|
+
) => ShaderNodeObject<Node>;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 "../
|
|
4
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
declare class NormalMapNode extends TempNode {
|
|
7
7
|
node: Node;
|
|
8
8
|
scaleNode: Node | null;
|
|
9
9
|
|
|
@@ -12,10 +12,6 @@ export default class NormalMapNode extends TempNode {
|
|
|
12
12
|
constructor(node: Node, scaleNode?: Node | null);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export
|
|
15
|
+
export default NormalMapNode;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
interface NodeElements {
|
|
19
|
-
normalMap: typeof normalMap;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
17
|
+
export const normalMap: (node: Node, scaleNode?: Node) => ShaderNodeObject<NormalMapNode>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { Scene } from "../../scenes/Scene.js";
|
|
3
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
|
+
import StereoCompositePassNode from "./StereoCompositePassNode.js";
|
|
5
|
+
|
|
6
|
+
declare class ParallaxBarrierPassNode extends StereoCompositePassNode {
|
|
7
|
+
readonly isParallaxBarrierPassNode: true;
|
|
8
|
+
|
|
9
|
+
constructor(scene: Scene, camera: Camera);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ParallaxBarrierPassNode;
|
|
13
|
+
|
|
14
|
+
export const parallaxBarrierPass: (scene: Scene, camera: Camera) => ShaderNodeObject<ParallaxBarrierPassNode>;
|
|
@@ -6,7 +6,7 @@ import TextureNode from "../accessors/TextureNode.js";
|
|
|
6
6
|
import MRTNode from "../core/MRTNode.js";
|
|
7
7
|
import Node from "../core/Node.js";
|
|
8
8
|
import TempNode from "../core/TempNode.js";
|
|
9
|
-
import { ShaderNodeObject } from "../
|
|
9
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
10
10
|
|
|
11
11
|
declare class PassTextureNode extends TextureNode {
|
|
12
12
|
passNode: PassNode;
|
|
@@ -16,8 +16,11 @@ declare class PassTextureNode extends TextureNode {
|
|
|
16
16
|
|
|
17
17
|
declare class PassMultipleTextureNode extends PassTextureNode {
|
|
18
18
|
textureName: string;
|
|
19
|
+
previousTexture: boolean;
|
|
19
20
|
|
|
20
|
-
constructor(passNode: PassNode, textureName: string);
|
|
21
|
+
constructor(passNode: PassNode, textureName: string, previousTexture?: boolean);
|
|
22
|
+
|
|
23
|
+
updateTexture(): void;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
declare class PassNode extends TempNode {
|
|
@@ -37,8 +40,14 @@ declare class PassNode extends TempNode {
|
|
|
37
40
|
|
|
38
41
|
getTexture(name: string): Texture;
|
|
39
42
|
|
|
43
|
+
getPreviousTexture(name: string): Texture;
|
|
44
|
+
|
|
45
|
+
toggleTexture(name: string): void;
|
|
46
|
+
|
|
40
47
|
getTextureNode(name?: string): ShaderNodeObject<Node>;
|
|
41
48
|
|
|
49
|
+
getPreviousTextureNode(name?: string): ShaderNodeObject<Node>;
|
|
50
|
+
|
|
42
51
|
getViewZNode(name?: string): ShaderNodeObject<Node>;
|
|
43
52
|
|
|
44
53
|
getLinearDepthNode(name?: string): ShaderNodeObject<Node>;
|
|
@@ -1,45 +1,9 @@
|
|
|
1
1
|
import { Camera } from "../../cameras/Camera.js";
|
|
2
2
|
import { Scene } from "../../scenes/Scene.js";
|
|
3
|
-
import Node from "../core/Node.js";
|
|
4
|
-
import TempNode from "../core/TempNode.js";
|
|
5
3
|
import UniformNode from "../core/UniformNode.js";
|
|
6
|
-
import {
|
|
4
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
7
5
|
import PassNode from "./PassNode.js";
|
|
8
6
|
|
|
9
|
-
declare class PixelationNode extends TempNode {
|
|
10
|
-
textureNode: Node;
|
|
11
|
-
depthNode: Node;
|
|
12
|
-
normalNode: Node;
|
|
13
|
-
|
|
14
|
-
pixelSize: Node;
|
|
15
|
-
normalEdgeStrength: Node;
|
|
16
|
-
depthEdgeStrength: Node;
|
|
17
|
-
|
|
18
|
-
constructor(
|
|
19
|
-
textureNode: Node,
|
|
20
|
-
depthNode: Node,
|
|
21
|
-
normalNode: Node,
|
|
22
|
-
pixelSize: Node,
|
|
23
|
-
normalEdgeStrength: Node,
|
|
24
|
-
depthEdgeStrength: Node,
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const pixelation: (
|
|
29
|
-
node: NodeRepresentation,
|
|
30
|
-
depthNode: NodeRepresentation,
|
|
31
|
-
normalNode: NodeRepresentation,
|
|
32
|
-
pixelSize?: number,
|
|
33
|
-
normalEdgeStrength?: number,
|
|
34
|
-
depthEdgeStrength?: number,
|
|
35
|
-
) => ShaderNodeObject<PixelationNode>;
|
|
36
|
-
|
|
37
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
38
|
-
interface NodeElements {
|
|
39
|
-
pixelation: typeof pixelation;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
7
|
declare class PixelationPassNode extends PassNode {
|
|
44
8
|
pixelSize: UniformNode<number>;
|
|
45
9
|
normalEdgeStrength: UniformNode<number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
4
|
export default class PosterizeNode extends Node {
|
|
5
5
|
sourceNode: Node;
|
|
@@ -12,9 +12,3 @@ export const posterize: (
|
|
|
12
12
|
sourceNode: NodeRepresentation,
|
|
13
13
|
stepsNode: NodeRepresentation,
|
|
14
14
|
) => ShaderNodeObject<PosterizeNode>;
|
|
15
|
-
|
|
16
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
17
|
-
interface NodeElements {
|
|
18
|
-
posterize: typeof posterize;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TextureNode from "../accessors/TextureNode.js";
|
|
2
2
|
import TempNode from "../core/TempNode.js";
|
|
3
3
|
import UniformNode from "../core/UniformNode.js";
|
|
4
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
4
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
5
|
|
|
6
6
|
export default class RGBShiftNode extends TempNode {
|
|
7
7
|
textureNode: TextureNode;
|
|
@@ -16,9 +16,3 @@ export default class RGBShiftNode extends TempNode {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export const rgbShift: (node: NodeRepresentation, amount?: number, angle?: number) => ShaderNodeObject<RGBShiftNode>;
|
|
19
|
-
|
|
20
|
-
declare module "../shadernode/ShaderNode.js" {
|
|
21
|
-
interface NodeElements {
|
|
22
|
-
rgbShift: typeof rgbShift;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorSpace, ToneMapping } from "../../constants.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import { NodeRepresentation, ShaderNodeObject } from "../
|
|
4
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
5
|
|
|
6
6
|
declare class RenderOutputNode extends TempNode {
|
|
7
7
|
colorNode: Node;
|
|
@@ -21,7 +21,7 @@ export const renderOutput: (
|
|
|
21
21
|
outputColorSpace?: ColorSpace | null,
|
|
22
22
|
) => ShaderNodeObject<RenderOutputNode>;
|
|
23
23
|
|
|
24
|
-
declare module "../
|
|
24
|
+
declare module "../tsl/TSLCore.js" {
|
|
25
25
|
interface NodeElements {
|
|
26
26
|
renderOutput: typeof renderOutput;
|
|
27
27
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { RenderTarget } from "../../core/RenderTarget.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Scene } from "../../scenes/Scene.js";
|
|
5
|
+
import UniformNode from "../core/UniformNode.js";
|
|
6
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
7
|
+
import PassNode from "./PassNode.js";
|
|
8
|
+
|
|
9
|
+
declare class SSAAPassNode extends PassNode {
|
|
10
|
+
readonly isSSAAPassNode: boolean;
|
|
11
|
+
|
|
12
|
+
sampleLevel: number;
|
|
13
|
+
unbiased: boolean;
|
|
14
|
+
clearColor: Color;
|
|
15
|
+
clearAlpha: number;
|
|
16
|
+
|
|
17
|
+
sampleWeight: UniformNode<number>;
|
|
18
|
+
|
|
19
|
+
sampleRenderTarget: RenderTarget | null;
|
|
20
|
+
|
|
21
|
+
constructor(scene: Scene, camera: Camera);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default SSAAPassNode;
|
|
25
|
+
|
|
26
|
+
export const ssaaPass: (scene: Scene, camera: Camera) => ShaderNodeObject<SSAAPassNode>;
|