@types/three 0.169.0 → 0.171.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/build/three.core.d.ts +1 -0
- three/build/three.core.min.d.ts +1 -0
- three/build/three.tsl.d.ts +1 -0
- three/build/three.tsl.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +3 -3
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +4 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -0
- three/examples/jsm/controls/ArcballControls.d.ts +6 -1
- three/examples/jsm/controls/TransformControls.d.ts +45 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +8 -2
- three/examples/jsm/csm/CSMHelper.d.ts +2 -1
- three/examples/jsm/csm/CSMShadowNode.d.ts +45 -0
- three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +43 -10
- three/examples/jsm/exporters/MMDExporter.d.ts +4 -0
- three/examples/jsm/exporters/USDZExporter.d.ts +4 -0
- three/examples/jsm/geometries/DecalGeometry.d.ts +10 -4
- three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
- three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
- three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
- three/examples/jsm/lines/Wireframe.d.ts +5 -2
- three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
- three/examples/jsm/lines/webgpu/Wireframe.d.ts +13 -0
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -2
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +10 -0
- three/examples/jsm/loaders/MMDLoader.d.ts +4 -0
- three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts +9 -0
- three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +9 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -1
- three/examples/jsm/math/ColorSpaces.d.ts +11 -0
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +8 -10
- three/examples/jsm/misc/ProgressiveLightMapGPU.d.ts +27 -0
- three/examples/jsm/objects/SkyMesh.d.ts +2 -2
- three/examples/jsm/objects/Water2Mesh.d.ts +13 -2
- three/examples/jsm/objects/WaterMesh.d.ts +11 -2
- three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
- three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/AnaglyphPassNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/AnamorphicNode.d.ts +2 -4
- three/examples/jsm/tsl/display/BleachBypass.d.ts +4 -0
- three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +3 -8
- three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +5 -14
- three/{src/nodes → examples/jsm/tsl}/display/GaussianBlurNode.d.ts +13 -5
- three/examples/jsm/tsl/display/LensflareNode.d.ts +35 -0
- three/{src/nodes → examples/jsm/tsl}/display/Lut3DNode.d.ts +2 -6
- three/{src/nodes → examples/jsm/tsl}/display/MotionBlur.d.ts +2 -2
- three/examples/jsm/tsl/display/OutlineNode.d.ts +32 -0
- three/{src/nodes → examples/jsm/tsl}/display/ParallaxBarrierPassNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/RGBShiftNode.d.ts +2 -4
- three/examples/jsm/tsl/display/SMAANode.d.ts +18 -0
- three/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.d.ts +2 -7
- three/examples/jsm/tsl/display/SSRNode.d.ts +38 -0
- three/examples/jsm/tsl/display/Sepia.d.ts +4 -0
- three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.d.ts +2 -5
- three/examples/jsm/tsl/display/TRAAPassNode.d.ts +15 -0
- three/{src/nodes → examples/jsm/tsl}/display/TransitionNode.d.ts +2 -5
- three/examples/jsm/tsl/display/hashBlur.d.ts +8 -0
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +23 -0
- three/package.json +5 -4
- three/src/Three.Core.d.ts +158 -0
- three/src/Three.TSL.d.ts +528 -0
- three/src/Three.WebGPU.Nodes.d.ts +15 -192
- three/src/Three.WebGPU.d.ts +14 -192
- three/src/Three.d.ts +3 -164
- three/src/animation/AnimationClip.d.ts +3 -1
- three/src/constants.d.ts +1 -9
- three/src/core/BufferGeometry.d.ts +13 -2
- three/src/core/Clock.d.ts +4 -6
- three/src/core/InterleavedBuffer.d.ts +12 -0
- three/src/core/RenderTarget.d.ts +1 -2
- three/src/loaders/FileLoader.d.ts +3 -3
- three/src/materials/LineBasicMaterial.d.ts +0 -5
- three/src/materials/LineDashedMaterial.d.ts +0 -5
- three/src/materials/Material.d.ts +6 -6
- three/src/materials/MeshBasicMaterial.d.ts +0 -5
- three/src/materials/MeshDepthMaterial.d.ts +0 -5
- three/src/materials/MeshDistanceMaterial.d.ts +0 -5
- three/src/materials/MeshLambertMaterial.d.ts +0 -5
- three/src/materials/MeshMatcapMaterial.d.ts +0 -5
- three/src/materials/MeshNormalMaterial.d.ts +0 -5
- three/src/materials/MeshPhongMaterial.d.ts +0 -5
- three/src/materials/MeshPhysicalMaterial.d.ts +0 -5
- three/src/materials/MeshStandardMaterial.d.ts +0 -5
- three/src/materials/MeshToonMaterial.d.ts +0 -5
- three/src/materials/PointsMaterial.d.ts +0 -5
- three/src/materials/RawShaderMaterial.d.ts +0 -2
- three/src/materials/ShaderMaterial.d.ts +0 -5
- three/src/materials/ShadowMaterial.d.ts +0 -5
- three/src/materials/SpriteMaterial.d.ts +0 -5
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +3 -0
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +6 -1
- three/src/materials/nodes/NodeMaterials.d.ts +19 -16
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +15 -0
- three/src/math/Color.d.ts +39 -22
- three/src/math/ColorManagement.d.ts +24 -24
- three/src/math/Vector4.d.ts +2 -0
- three/src/nodes/Nodes.d.ts +2 -22
- three/src/nodes/TSL.d.ts +14 -26
- three/src/nodes/accessors/Arrays.d.ts +6 -0
- three/src/nodes/accessors/BuiltinNode.d.ts +14 -0
- three/src/nodes/accessors/Camera.d.ts +0 -1
- three/src/nodes/accessors/ClippingNode.d.ts +6 -0
- three/src/nodes/accessors/InstanceNode.d.ts +15 -3
- three/src/nodes/accessors/InstancedMeshNode.d.ts +11 -0
- three/src/nodes/accessors/Lights.d.ts +15 -0
- three/src/nodes/accessors/SceneNode.d.ts +2 -0
- three/src/nodes/accessors/StorageBufferNode.d.ts +20 -11
- three/src/nodes/accessors/StorageTextureNode.d.ts +5 -3
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
- three/src/nodes/accessors/VelocityNode.d.ts +4 -0
- three/src/nodes/code/ScriptableNode.d.ts +1 -1
- three/src/nodes/core/IndexNode.d.ts +2 -0
- three/src/nodes/core/NodeUtils.d.ts +7 -0
- three/src/nodes/core/StackNode.d.ts +10 -5
- three/src/nodes/core/VarNode.d.ts +12 -1
- three/src/nodes/core/constants.d.ts +6 -0
- three/src/nodes/display/BlendModes.d.ts +32 -0
- three/src/nodes/display/ColorAdjustment.d.ts +29 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -2
- three/src/nodes/display/ColorSpaceNode.d.ts +14 -8
- three/src/nodes/display/RenderOutputNode.d.ts +4 -4
- three/src/nodes/display/ScreenNode.d.ts +5 -0
- three/src/nodes/display/ViewportDepthNode.d.ts +4 -0
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +88 -0
- three/src/nodes/gpgpu/BarrierNode.d.ts +12 -0
- three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +13 -0
- three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +17 -0
- three/src/nodes/lighting/AnalyticLightNode.d.ts +11 -0
- three/src/nodes/lighting/LightsNode.d.ts +7 -2
- three/src/nodes/lighting/PointLightNode.d.ts +14 -1
- three/src/nodes/lighting/PointShadowNode.d.ts +30 -0
- three/src/nodes/lighting/ShadowNode.d.ts +35 -0
- three/src/nodes/math/OperatorNode.d.ts +3 -0
- three/src/nodes/tsl/TSLBase.d.ts +5 -0
- three/src/nodes/tsl/TSLCore.d.ts +3 -0
- three/src/nodes/utils/Discard.d.ts +1 -1
- three/src/nodes/utils/Oscillators.d.ts +7 -0
- three/src/nodes/utils/PostProcessingUtils.d.ts +45 -0
- three/src/nodes/utils/ReflectorNode.d.ts +17 -4
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/nodes/utils/Timer.d.ts +21 -0
- three/src/objects/BatchedMesh.d.ts +51 -6
- three/src/objects/ClippingGroup.d.ts +41 -0
- three/src/renderers/WebGLRenderer.d.ts +24 -11
- three/src/renderers/common/Animation.d.ts +11 -4
- three/src/renderers/common/ClippingContext.d.ts +16 -14
- three/src/renderers/common/Constants.d.ts +2 -1
- three/src/renderers/common/Geometries.d.ts +1 -0
- three/src/renderers/common/IndirectStorageBufferAttribute.d.ts +10 -0
- three/src/renderers/common/Lighting.d.ts +15 -0
- three/src/renderers/common/PostProcessingUtils.d.ts +66 -0
- three/src/renderers/common/RenderList.d.ts +10 -2
- three/src/renderers/common/RenderLists.d.ts +3 -1
- three/src/renderers/common/RenderObject.d.ts +9 -4
- three/src/renderers/common/RenderObjects.d.ts +3 -0
- three/src/renderers/common/Renderer.d.ts +49 -10
- three/src/renderers/common/UniformsGroup.d.ts +1 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +20 -2
- three/src/renderers/common/nodes/NodeLibrary.d.ts +2 -11
- three/src/renderers/common/nodes/NodeUniform.d.ts +7 -0
- three/src/renderers/webgl/WebGLPrograms.d.ts +3 -10
- three/src/renderers/webgl/WebGLState.d.ts +14 -11
- three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
- three/src/textures/CompressedTexture.d.ts +1 -2
- three/src/textures/CubeTexture.d.ts +1 -2
- three/src/textures/Data3DTexture.d.ts +4 -2
- three/src/textures/DataArrayTexture.d.ts +1 -1
- three/src/textures/DataTexture.d.ts +7 -3
- three/src/textures/Texture.d.ts +3 -4
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
- three/src/nodes/display/BleachBypass.d.ts +0 -4
- three/src/nodes/display/BlendMode.d.ts +0 -10
- three/src/nodes/display/Sepia.d.ts +0 -4
- three/src/nodes/lighting/LightNode.d.ts +0 -18
- three/src/nodes/utils/OscNode.d.ts +0 -25
- three/src/nodes/utils/TimerNode.d.ts +0 -25
- three/src/textures/types.d.ts +0 -9
- /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
- /three/examples/jsm/utils/{TextureUtilsGPU.d.ts → WebGPUTextureUtils.d.ts} +0 -0
|
@@ -4,11 +4,15 @@ import UniformNode from "../core/UniformNode.js";
|
|
|
4
4
|
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
5
|
|
|
6
6
|
declare class VelocityNode extends TempNode {
|
|
7
|
+
projectionMatrix: Matrix4 | null;
|
|
8
|
+
|
|
7
9
|
previousModelWorldMatrix: UniformNode<Matrix4>;
|
|
8
10
|
previousProjectionMatrix: UniformNode<Matrix4>;
|
|
9
11
|
previousCameraViewMatrix: UniformNode<Matrix4>;
|
|
10
12
|
|
|
11
13
|
constructor();
|
|
14
|
+
|
|
15
|
+
setProjectionMatrix(projectionMatrix: Matrix4 | null): void;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
export default VelocityNode;
|
|
@@ -5,7 +5,7 @@ declare class Resources extends Map<string, unknown> {
|
|
|
5
5
|
get<TArgs extends unknown[]>(key: string, callback?: ((...args: TArgs) => void) | null, ...params: TArgs): unknown;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const ScriptableNodeResources: Resources;
|
|
9
9
|
|
|
10
10
|
declare class ScriptableNode extends Node {
|
|
11
11
|
codeNode: Node | null;
|
|
@@ -24,5 +24,7 @@ export default IndexNode;
|
|
|
24
24
|
|
|
25
25
|
export const vertexIndex: ShaderNodeObject<IndexNode>;
|
|
26
26
|
export const instanceIndex: ShaderNodeObject<IndexNode>;
|
|
27
|
+
export const subgroupIndex: ShaderNodeObject<IndexNode>;
|
|
28
|
+
export const invocationSubgroupIndex: ShaderNodeObject<IndexNode>;
|
|
27
29
|
export const invocationLocalIndex: ShaderNodeObject<IndexNode>;
|
|
28
30
|
export const drawIndex: ShaderNodeObject<IndexNode>;
|
|
@@ -17,8 +17,15 @@ export const hashArray: (array: number[]) => number;
|
|
|
17
17
|
export const hash: (...params: number[]) => number;
|
|
18
18
|
|
|
19
19
|
export function getCacheKey(object: Node, force?: boolean): number;
|
|
20
|
+
|
|
20
21
|
export function getNodeChildren(object: Node): Generator<NodeChild, void>;
|
|
22
|
+
|
|
23
|
+
export function getTypeFromLength(length: number): string | undefined;
|
|
24
|
+
|
|
25
|
+
export function getLengthFromType(type: string): number | undefined;
|
|
26
|
+
|
|
21
27
|
export function getValueType(value: unknown): string | null;
|
|
28
|
+
|
|
22
29
|
export function getValueFromType(
|
|
23
30
|
type: string,
|
|
24
31
|
...params: number[]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
2
|
import Node from "./Node.js";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
declare class StackNode extends Node {
|
|
4
5
|
isStackNode: true;
|
|
5
6
|
nodes: Node[];
|
|
6
7
|
outputNode: Node | null;
|
|
@@ -11,17 +12,21 @@ export default class StackNode extends Node {
|
|
|
11
12
|
|
|
12
13
|
If(boolNode: Node, method: () => void): this;
|
|
13
14
|
|
|
14
|
-
ElseIf(
|
|
15
|
+
ElseIf(boolNode: Node, method: () => void): this;
|
|
15
16
|
|
|
16
|
-
Else(
|
|
17
|
+
Else(method: () => void): this;
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* @deprecated Use {@link StackNode#ElseIf Else()} instead.
|
|
20
21
|
*/
|
|
21
|
-
elseif(
|
|
22
|
+
elseif(boolNode: Node, method: () => void): this;
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
25
|
* @deprecated Use {@link StackNode#Else Else()} instead.
|
|
25
26
|
*/
|
|
26
|
-
else(
|
|
27
|
+
else(method: () => void): this;
|
|
27
28
|
}
|
|
29
|
+
|
|
30
|
+
export default StackNode;
|
|
31
|
+
|
|
32
|
+
export const stack: () => ShaderNodeObject<StackNode>;
|
|
@@ -10,11 +10,22 @@ export default class VarNode extends Node {
|
|
|
10
10
|
constructor(node: Node, name?: string | null);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
declare module "../tsl/TSLCore.js" {
|
|
14
|
+
interface NodeElements {
|
|
15
|
+
toVar: (node: NodeRepresentation, name?: string | null) => ShaderNodeObject<VarNode>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use ".toVar()" instead.
|
|
21
|
+
*/
|
|
13
22
|
export const temp: (node: NodeRepresentation, name?: string | null) => ShaderNodeObject<VarNode>;
|
|
14
23
|
|
|
15
24
|
declare module "../tsl/TSLCore.js" {
|
|
16
25
|
interface NodeElements {
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use ".toVar()" instead.
|
|
28
|
+
*/
|
|
17
29
|
temp: typeof temp;
|
|
18
|
-
toVar: typeof temp;
|
|
19
30
|
}
|
|
20
31
|
}
|
|
@@ -19,8 +19,14 @@ export declare const NodeType: {
|
|
|
19
19
|
readonly MATRIX3: "mat3";
|
|
20
20
|
readonly MATRIX4: "mat4";
|
|
21
21
|
};
|
|
22
|
+
export declare const NodeAccess: {
|
|
23
|
+
readonly READ_ONLY: "readOnly";
|
|
24
|
+
readonly WRITE_ONLY: "writeOnly";
|
|
25
|
+
readonly READ_WRITE: "readWrite";
|
|
26
|
+
};
|
|
22
27
|
export type NodeShaderStage = "vertex" | "fragment" | "compute";
|
|
23
28
|
export type NodeUpdateType = "none" | "frame" | "render" | "object";
|
|
29
|
+
export type NodeAccess = "readOnly" | "writeOnly" | "readWrite";
|
|
24
30
|
export declare const defaultShaderStages: NodeShaderStage[];
|
|
25
31
|
export declare const defaultBuildStages: string[];
|
|
26
32
|
export declare const shaderStages: NodeShaderStage[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
export const blendBurn: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
5
|
+
|
|
6
|
+
export const blendDodge: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
7
|
+
|
|
8
|
+
export const blendScreen: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
9
|
+
|
|
10
|
+
export const blendOverlay: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
11
|
+
|
|
12
|
+
export const blendColor: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
export const burn: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
22
|
+
export const dodge: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
27
|
+
export const screen: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
32
|
+
export const overlay: (base: NodeRepresentation, blend: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
@@ -25,3 +25,32 @@ export const luminance: (
|
|
|
25
25
|
) => ShaderNodeObject<MathNode>;
|
|
26
26
|
|
|
27
27
|
export const threshold: (color: NodeRepresentation, thershold: NodeRepresentation) => ShaderNodeObject<MathNode>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Color Decision List (CDL) v1.2
|
|
31
|
+
*
|
|
32
|
+
* Compact representation of color grading information, defined by slope, offset, power, and saturation. The CDL should
|
|
33
|
+
* be typically be given input in a log space (such as LogC, ACEScc, or AgX Log), and will return output in the same
|
|
34
|
+
* space. Output may require clamping >=0.
|
|
35
|
+
*
|
|
36
|
+
* References:
|
|
37
|
+
* - ASC CDL v1.2
|
|
38
|
+
* - https://blender.stackexchange.com/a/55239/43930
|
|
39
|
+
* - https://docs.acescentral.com/specifications/acescc/
|
|
40
|
+
*
|
|
41
|
+
* @param color Input (-Infinity < input < +Infinity)
|
|
42
|
+
* @param slope Slope (0 ≤ slope < +Infinity)
|
|
43
|
+
* @param offset Offset (-Infinity < offset < +Infinity; typically -1 < offset < 1)
|
|
44
|
+
* @param power Power (0 < power < +Infinity)
|
|
45
|
+
* @param saturation Saturation (0 ≤ saturation < +Infinity; typically 0 ≤ saturation < 4)
|
|
46
|
+
* @param luminanceCoefficients Luminance coefficients for saturation term, typically Rec. 709
|
|
47
|
+
* @return Output, -Infinity < output < +Infinity
|
|
48
|
+
*/
|
|
49
|
+
export const cdl: (
|
|
50
|
+
color: NodeRepresentation,
|
|
51
|
+
slope?: NodeRepresentation,
|
|
52
|
+
offset?: NodeRepresentation,
|
|
53
|
+
power?: NodeRepresentation,
|
|
54
|
+
saturation?: NodeRepresentation,
|
|
55
|
+
luminanceCoefficients?: NodeRepresentation,
|
|
56
|
+
) => ShaderNodeObject<Node>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
2
|
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const sRGBTransferEOTF: (color: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const sRGBTransferOETF: (color: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
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";
|
|
@@ -15,16 +15,16 @@ export function getColorSpaceMethod(
|
|
|
15
15
|
|
|
16
16
|
export default class ColorSpaceNode extends TempNode {
|
|
17
17
|
colorNode: Node;
|
|
18
|
-
source:
|
|
19
|
-
target:
|
|
18
|
+
source: string;
|
|
19
|
+
target: string;
|
|
20
20
|
|
|
21
21
|
constructor(
|
|
22
22
|
colorNode: Node,
|
|
23
|
-
source:
|
|
24
|
-
target:
|
|
23
|
+
source: string,
|
|
24
|
+
target: string,
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
resolveColorSpace(nodeBuilder: NodeBuilder, colorSpace: WorkingOrOutputColorSpace): string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export const toOutputColorSpace: (
|
|
@@ -36,11 +36,17 @@ export const toWorkingColorSpace: (
|
|
|
36
36
|
|
|
37
37
|
export const workingToColorSpace: (
|
|
38
38
|
node: NodeRepresentation,
|
|
39
|
-
colorSpace:
|
|
39
|
+
colorSpace: string,
|
|
40
40
|
) => ShaderNodeObject<ColorSpaceNode>;
|
|
41
41
|
export const colorSpaceToWorking: (
|
|
42
42
|
node: NodeRepresentation,
|
|
43
|
-
colorSpace:
|
|
43
|
+
colorSpace: string,
|
|
44
|
+
) => ShaderNodeObject<ColorSpaceNode>;
|
|
45
|
+
|
|
46
|
+
export const convertColorSpace: (
|
|
47
|
+
node: NodeRepresentation,
|
|
48
|
+
sourceColorSpace: string,
|
|
49
|
+
targetColorSpace: string,
|
|
44
50
|
) => ShaderNodeObject<ColorSpaceNode>;
|
|
45
51
|
|
|
46
52
|
declare module "../tsl/TSLCore.js" {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToneMapping } from "../../constants.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
4
|
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
@@ -6,11 +6,11 @@ import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
|
6
6
|
declare class RenderOutputNode extends TempNode {
|
|
7
7
|
colorNode: Node;
|
|
8
8
|
toneMapping: ToneMapping | null;
|
|
9
|
-
outputColorSpace:
|
|
9
|
+
outputColorSpace: string | null;
|
|
10
10
|
|
|
11
11
|
readonly isRenderOutput: true;
|
|
12
12
|
|
|
13
|
-
constructor(colorNode: Node, toneMapping?: ToneMapping | null, outputColorSpace?:
|
|
13
|
+
constructor(colorNode: Node, toneMapping?: ToneMapping | null, outputColorSpace?: string | null);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export default RenderOutputNode;
|
|
@@ -18,7 +18,7 @@ export default RenderOutputNode;
|
|
|
18
18
|
export const renderOutput: (
|
|
19
19
|
color: NodeRepresentation,
|
|
20
20
|
toneMapping?: ToneMapping | null,
|
|
21
|
-
outputColorSpace?:
|
|
21
|
+
outputColorSpace?: string | null,
|
|
22
22
|
) => ShaderNodeObject<RenderOutputNode>;
|
|
23
23
|
|
|
24
24
|
declare module "../tsl/TSLCore.js" {
|
|
@@ -37,6 +37,11 @@ export const viewportUV: ShaderNodeObject<Node>;
|
|
|
37
37
|
|
|
38
38
|
// Deprecated
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated "viewportResolution" is deprecated. Use "screenSize" instead.
|
|
42
|
+
*/
|
|
43
|
+
export const viewportResolution: ShaderNodeObject<ScreenNode>;
|
|
44
|
+
|
|
40
45
|
/**
|
|
41
46
|
* @deprecated "viewportTopLeft" is deprecated. Use "viewportUV" instead.
|
|
42
47
|
*/
|
|
@@ -29,6 +29,10 @@ export const viewZToPerspectiveDepth: (viewZ: Node, near: Node, far: Node) => No
|
|
|
29
29
|
|
|
30
30
|
export const perspectiveDepthToViewZ: (depth: Node, near: Node, far: Node) => Node;
|
|
31
31
|
|
|
32
|
+
export const viewZToLogarithmicDepth: (viewZ: Node, near: Node, far: Node) => Node;
|
|
33
|
+
|
|
34
|
+
export const logarithmicDepthToViewZ: (depth: Node, near: Node, far: Node) => Node;
|
|
35
|
+
|
|
32
36
|
export const depth: ShaderNodeObject<ViewportDepthNode>;
|
|
33
37
|
export const linearDepth: (valueNode?: Node | null) => ShaderNodeObject<ViewportDepthNode>;
|
|
34
38
|
export const viewportLinearDepth: ShaderNodeObject<ViewportDepthNode>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Node from "../../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
declare const getParallaxCorrectNormal: (
|
|
5
|
+
normal: NodeRepresentation,
|
|
6
|
+
cubeSize: NodeRepresentation,
|
|
7
|
+
cubePos: NodeRepresentation,
|
|
8
|
+
) => ShaderNodeObject<Node>;
|
|
9
|
+
|
|
10
|
+
export default getParallaxCorrectNormal;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import TempNode from "../core/TempNode.js";
|
|
3
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
|
+
|
|
5
|
+
export type AtomicMethod =
|
|
6
|
+
| typeof AtomicFunctionNode.ATOMIC_LOAD
|
|
7
|
+
| typeof AtomicFunctionNode.ATOMIC_STORE
|
|
8
|
+
| typeof AtomicFunctionNode.ATOMIC_ADD
|
|
9
|
+
| typeof AtomicFunctionNode.ATOMIC_SUB
|
|
10
|
+
| typeof AtomicFunctionNode.ATOMIC_MAX
|
|
11
|
+
| typeof AtomicFunctionNode.ATOMIC_MIN
|
|
12
|
+
| typeof AtomicFunctionNode.ATOMIC_AND
|
|
13
|
+
| typeof AtomicFunctionNode.ATOMIC_OR
|
|
14
|
+
| typeof AtomicFunctionNode.ATOMIC_XOR;
|
|
15
|
+
|
|
16
|
+
declare class AtomicFunctionNode extends TempNode {
|
|
17
|
+
method: AtomicMethod;
|
|
18
|
+
pointerNode: Node;
|
|
19
|
+
valueNode: Node;
|
|
20
|
+
storeNode: Node;
|
|
21
|
+
|
|
22
|
+
constructor(method: AtomicMethod, pointerNode: Node, valueNode: Node, storeNode?: Node | null);
|
|
23
|
+
|
|
24
|
+
static ATOMIC_LOAD: "atomicLoad";
|
|
25
|
+
static ATOMIC_STORE: "atomicStore";
|
|
26
|
+
static ATOMIC_ADD: "atomicAdd";
|
|
27
|
+
static ATOMIC_SUB: "atomicSub";
|
|
28
|
+
static ATOMIC_MAX: "atomicMax";
|
|
29
|
+
static ATOMIC_MIN: "atomicMin";
|
|
30
|
+
static ATOMIC_AND: "atomicAnd";
|
|
31
|
+
static ATOMIC_OR: "atomicOr";
|
|
32
|
+
static ATOMIC_XOR: "atomicXor";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const atomicFunc: (
|
|
36
|
+
method: AtomicMethod,
|
|
37
|
+
pointerNode: NodeRepresentation,
|
|
38
|
+
valueNode: NodeRepresentation,
|
|
39
|
+
storeNode?: NodeRepresentation | null,
|
|
40
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
41
|
+
|
|
42
|
+
export const atomicStore: (
|
|
43
|
+
pointerNode: NodeRepresentation,
|
|
44
|
+
valueNode: NodeRepresentation,
|
|
45
|
+
storeNode?: NodeRepresentation | null,
|
|
46
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
47
|
+
|
|
48
|
+
export const atomicAdd: (
|
|
49
|
+
pointerNode: NodeRepresentation,
|
|
50
|
+
valueNode: NodeRepresentation,
|
|
51
|
+
storeNode?: NodeRepresentation | null,
|
|
52
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
53
|
+
|
|
54
|
+
export const atomicSub: (
|
|
55
|
+
pointerNode: NodeRepresentation,
|
|
56
|
+
valueNode: NodeRepresentation,
|
|
57
|
+
storeNode?: NodeRepresentation | null,
|
|
58
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
59
|
+
|
|
60
|
+
export const atomicMax: (
|
|
61
|
+
pointerNode: NodeRepresentation,
|
|
62
|
+
valueNode: NodeRepresentation,
|
|
63
|
+
storeNode?: NodeRepresentation | null,
|
|
64
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
65
|
+
|
|
66
|
+
export const atomicMin: (
|
|
67
|
+
pointerNode: NodeRepresentation,
|
|
68
|
+
valueNode: NodeRepresentation,
|
|
69
|
+
storeNode?: NodeRepresentation | null,
|
|
70
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
71
|
+
|
|
72
|
+
export const atomicAnd: (
|
|
73
|
+
pointerNode: NodeRepresentation,
|
|
74
|
+
valueNode: NodeRepresentation,
|
|
75
|
+
storeNode?: NodeRepresentation | null,
|
|
76
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
77
|
+
|
|
78
|
+
export const atomicOr: (
|
|
79
|
+
pointerNode: NodeRepresentation,
|
|
80
|
+
valueNode: NodeRepresentation,
|
|
81
|
+
storeNode?: NodeRepresentation | null,
|
|
82
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
83
|
+
|
|
84
|
+
export const atomicXor: (
|
|
85
|
+
pointerNode: NodeRepresentation,
|
|
86
|
+
valueNode: NodeRepresentation,
|
|
87
|
+
storeNode?: NodeRepresentation | null,
|
|
88
|
+
) => ShaderNodeObject<AtomicFunctionNode>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
declare class BarrierNode extends Node {
|
|
5
|
+
scope: string;
|
|
6
|
+
|
|
7
|
+
constructor(scope: string);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const workgroupBarrier: () => ShaderNodeObject<Node>;
|
|
11
|
+
export const storageBarrier: () => ShaderNodeObject<Node>;
|
|
12
|
+
export const textureBarrier: () => ShaderNodeObject<Node>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
declare class ComputeBuiltinNode extends Node {
|
|
5
|
+
constructor(builtinName: string, nodeType: string);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default ComputeBuiltinNode;
|
|
9
|
+
|
|
10
|
+
export const numWorkgroups: ShaderNodeObject<ComputeBuiltinNode>;
|
|
11
|
+
export const workgroupId: ShaderNodeObject<ComputeBuiltinNode>;
|
|
12
|
+
export const localId: ShaderNodeObject<ComputeBuiltinNode>;
|
|
13
|
+
export const subgroupSize: ShaderNodeObject<ComputeBuiltinNode>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Renderer from "../../renderers/common/Renderer.js";
|
|
1
2
|
import Node from "../core/Node.js";
|
|
2
3
|
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
4
|
|
|
@@ -8,7 +9,11 @@ export default class ComputeNode extends Node {
|
|
|
8
9
|
workgroupSize: number[];
|
|
9
10
|
dispatchCount: number;
|
|
10
11
|
|
|
12
|
+
onInitFunction: ((args: { renderer: Renderer }) => void) | null;
|
|
13
|
+
|
|
11
14
|
constructor(computeNode: Node, count: number, workgroupSize?: number[]);
|
|
15
|
+
|
|
16
|
+
onInit(callback: ((args: { renderer: Renderer }) => void) | null): void;
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
export const compute: (
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
declare class WorkgroupInfoNode extends Node {
|
|
5
|
+
bufferType: string;
|
|
6
|
+
bufferCount: number;
|
|
7
|
+
|
|
8
|
+
readonly isWorkgroupInfoNode: true;
|
|
9
|
+
|
|
10
|
+
scope: string;
|
|
11
|
+
|
|
12
|
+
constructor(scope: string, bufferType: string, bufferCount?: number);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default WorkgroupInfoNode;
|
|
16
|
+
|
|
17
|
+
export const workgroupArray: (type: string, count?: number) => ShaderNodeObject<WorkgroupInfoNode>;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
2
4
|
import LightingNode from "./LightingNode.js";
|
|
5
|
+
import ShadowNode from "./ShadowNode.js";
|
|
6
|
+
|
|
7
|
+
declare module "../../lights/LightShadow.js" {
|
|
8
|
+
export interface LightShadow {
|
|
9
|
+
shadowNode?: Node;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
3
12
|
|
|
4
13
|
export default class AnalyticLightNode<T extends Light> extends LightingNode {
|
|
5
14
|
light: T | null;
|
|
6
15
|
|
|
7
16
|
constructor(light?: T | null);
|
|
17
|
+
|
|
18
|
+
setupShadowNode(): ShaderNodeObject<ShadowNode>;
|
|
8
19
|
}
|
|
@@ -2,17 +2,22 @@ import { Light } from "../../lights/Light.js";
|
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import { NodeBuilder } from "../Nodes.js";
|
|
4
4
|
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
|
+
import LightingNode from "./LightingNode.js";
|
|
5
6
|
|
|
6
7
|
declare class LightsNode extends Node {
|
|
7
|
-
constructor(
|
|
8
|
+
constructor();
|
|
8
9
|
|
|
9
10
|
setupLightsNode(builder: NodeBuilder): void;
|
|
10
11
|
|
|
12
|
+
setupLights(builder: NodeBuilder, lightNodes: LightingNode[]): void;
|
|
13
|
+
|
|
11
14
|
setLights(lights: Light[]): this;
|
|
12
15
|
|
|
13
16
|
getLights(): Light[];
|
|
17
|
+
|
|
18
|
+
get hasLights(): boolean;
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
export default LightsNode;
|
|
17
22
|
|
|
18
|
-
export const lights: (lights
|
|
23
|
+
export const lights: (lights?: Light[]) => ShaderNodeObject<LightsNode>;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { PointLight } from "../../lights/PointLight.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
4
|
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
5
|
+
import PointShadowNode from "./PointShadowNode.js";
|
|
4
6
|
|
|
5
|
-
export
|
|
7
|
+
export const directPointLight: (
|
|
8
|
+
color: NodeRepresentation,
|
|
9
|
+
lightViewPosition: NodeRepresentation,
|
|
10
|
+
cutoffDistance: NodeRepresentation,
|
|
11
|
+
decayExponent: NodeRepresentation,
|
|
12
|
+
) => ShaderNodeObject<Node>;
|
|
13
|
+
|
|
14
|
+
declare class PointLightNode extends AnalyticLightNode<PointLight> {
|
|
6
15
|
cutoffDistanceNode: Node;
|
|
7
16
|
decayExponentNode: Node;
|
|
8
17
|
|
|
9
18
|
constructor(light?: PointLight | null);
|
|
19
|
+
|
|
20
|
+
setupShadowNode(): ShaderNodeObject<PointShadowNode>;
|
|
10
21
|
}
|
|
22
|
+
|
|
23
|
+
export default PointLightNode;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Light } from "../../lights/Light.js";
|
|
2
|
+
import { LightShadow } from "../../lights/LightShadow.js";
|
|
3
|
+
import Node from "../core/Node.js";
|
|
4
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
|
+
import ShadowNode from "./ShadowNode.js";
|
|
6
|
+
|
|
7
|
+
export const cubeToUV: (pos: NodeRepresentation, texelSizeY: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
8
|
+
|
|
9
|
+
export const BasicPointShadowFilter: (
|
|
10
|
+
depthTexture: NodeRepresentation,
|
|
11
|
+
bd3D: NodeRepresentation,
|
|
12
|
+
dp: NodeRepresentation,
|
|
13
|
+
texelSize: NodeRepresentation,
|
|
14
|
+
) => ShaderNodeObject<Node>;
|
|
15
|
+
|
|
16
|
+
export const PointShadowFilter: (
|
|
17
|
+
depthTexture: NodeRepresentation,
|
|
18
|
+
bd3D: NodeRepresentation,
|
|
19
|
+
dp: NodeRepresentation,
|
|
20
|
+
texelSize: NodeRepresentation,
|
|
21
|
+
shadow: NodeRepresentation,
|
|
22
|
+
) => ShaderNodeObject<Node>;
|
|
23
|
+
|
|
24
|
+
declare class PointShadowNode extends ShadowNode {
|
|
25
|
+
constructor(light: Light, shadow: LightShadow | null);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default PointShadowNode;
|
|
29
|
+
|
|
30
|
+
export const pointShadow: (light: Light, shadow?: LightShadow | null) => ShaderNodeObject<PointShadowNode>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Light } from "../../lights/Light.js";
|
|
2
|
+
import { LightShadow } from "../../lights/LightShadow.js";
|
|
3
|
+
import Node from "../core/Node.js";
|
|
4
|
+
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
|
+
|
|
6
|
+
export const BasicShadowFilter: (
|
|
7
|
+
depthTexture: NodeRepresentation,
|
|
8
|
+
shadowCoord: NodeRepresentation,
|
|
9
|
+
) => ShaderNodeObject<Node>;
|
|
10
|
+
|
|
11
|
+
export const PCFShadowFilter: (
|
|
12
|
+
depthTexture: NodeRepresentation,
|
|
13
|
+
shadowCoord: NodeRepresentation,
|
|
14
|
+
shadow: NodeRepresentation,
|
|
15
|
+
) => ShaderNodeObject<Node>;
|
|
16
|
+
|
|
17
|
+
export const PCFSoftShadowFilter: (
|
|
18
|
+
depthTexture: NodeRepresentation,
|
|
19
|
+
shadowCoord: NodeRepresentation,
|
|
20
|
+
shadow: NodeRepresentation,
|
|
21
|
+
) => ShaderNodeObject<Node>;
|
|
22
|
+
|
|
23
|
+
export const VSMShadowFilter: (
|
|
24
|
+
depthTexture: NodeRepresentation,
|
|
25
|
+
shadowCoord: NodeRepresentation,
|
|
26
|
+
) => ShaderNodeObject<Node>;
|
|
27
|
+
|
|
28
|
+
declare class ShadowNode extends Node {
|
|
29
|
+
constructor(light: Light, shadow: LightShadow | null);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default ShadowNode;
|
|
33
|
+
|
|
34
|
+
export const shadow: (light: Light, shadow?: LightShadow) => ShaderNodeObject<ShadowNode>;
|
|
35
|
+
export const shadows: ShaderNodeObject<Node>;
|
|
@@ -10,6 +10,7 @@ export type OperatorNodeOp =
|
|
|
10
10
|
| ">>"
|
|
11
11
|
| "<<"
|
|
12
12
|
| "=="
|
|
13
|
+
| "!="
|
|
13
14
|
| "&&"
|
|
14
15
|
| "||"
|
|
15
16
|
| "^^"
|
|
@@ -42,6 +43,7 @@ export const mul: Operator;
|
|
|
42
43
|
export const div: Operator;
|
|
43
44
|
export const modInt: Operator;
|
|
44
45
|
export const equal: Operator;
|
|
46
|
+
export const notEqual: Operator;
|
|
45
47
|
export const lessThan: Operator;
|
|
46
48
|
export const greaterThan: Operator;
|
|
47
49
|
export const lessThanEqual: Operator;
|
|
@@ -65,6 +67,7 @@ declare module "../tsl/TSLCore.js" {
|
|
|
65
67
|
div: typeof div;
|
|
66
68
|
modInt: typeof modInt;
|
|
67
69
|
equal: typeof equal;
|
|
70
|
+
notEqual: typeof notEqual;
|
|
68
71
|
lessThan: typeof lessThan;
|
|
69
72
|
greaterThan: typeof greaterThan;
|
|
70
73
|
lessThanEqual: typeof lessThanEqual;
|
three/src/nodes/tsl/TSLBase.d.ts
CHANGED