@types/three 0.136.1 → 0.139.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/{WebGL.d.ts → capabilities/WebGL.d.ts} +3 -1
- three/examples/jsm/controls/OrbitControls.d.ts +4 -1
- three/examples/jsm/curves/CurveExtras.d.ts +52 -54
- three/examples/jsm/exporters/EXRExporter.d.ts +21 -0
- three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
- three/examples/jsm/helpers/OctreeHelper.d.ts +14 -0
- three/examples/jsm/interactive/HTMLMesh.d.ts +1 -0
- three/examples/jsm/loaders/GLTFLoader.d.ts +2 -9
- three/examples/jsm/loaders/LDrawLoader.d.ts +6 -0
- three/examples/jsm/loaders/LUT3dlLoader.d.ts +2 -2
- three/examples/jsm/loaders/LUTCubeLoader.d.ts +2 -2
- three/examples/jsm/loaders/VOXLoader.d.ts +2 -2
- three/examples/jsm/objects/Reflector.d.ts +1 -0
- three/examples/jsm/objects/Refractor.d.ts +1 -0
- three/examples/jsm/postprocessing/LUTPass.d.ts +3 -3
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +1 -1
- three/examples/jsm/utils/BufferGeometryUtils.d.ts +2 -0
- three/examples/jsm/utils/LDrawUtils.d.ts +5 -0
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +10 -0
- three/examples/jsm/utils/SceneUtils.d.ts +13 -13
- three/index.d.ts +1 -1
- three/package.json +3 -3
- three/src/Three.d.ts +6 -0
- three/src/animation/AnimationUtils.d.ts +1 -1
- three/src/constants.d.ts +9 -19
- three/src/core/BufferGeometry.d.ts +0 -2
- three/src/core/InstancedBufferGeometry.d.ts +0 -4
- three/src/core/Raycaster.d.ts +3 -2
- three/src/core/Uniform.d.ts +0 -1
- three/src/extras/DataUtils.d.ts +1 -0
- three/src/extras/ImageUtils.d.ts +2 -0
- three/src/extras/PMREMGenerator.d.ts +2 -2
- three/src/geometries/CapsuleGeometry.d.ts +27 -0
- three/src/geometries/Geometries.d.ts +1 -0
- three/src/materials/Material.d.ts +0 -6
- three/src/materials/MeshStandardMaterial.d.ts +0 -6
- three/src/math/Box3.d.ts +2 -2
- three/src/math/Color.d.ts +21 -9
- three/src/math/ColorManagement.d.ts +18 -0
- three/src/math/Euler.d.ts +0 -1
- three/src/math/Plane.d.ts +0 -1
- three/src/math/Vector3.d.ts +5 -0
- three/src/renderers/WebGL3DRenderTarget.d.ts +28 -0
- three/src/renderers/WebGLArrayRenderTarget.d.ts +28 -0
- three/src/renderers/WebGLMultipleRenderTargets.d.ts +9 -1
- three/src/renderers/WebGLMultisampleRenderTarget.d.ts +5 -12
- three/src/renderers/WebGLRenderTarget.d.ts +7 -2
- three/src/renderers/WebGLRenderer.d.ts +4 -5
- three/src/renderers/webgl/WebGLUtils.d.ts +3 -1
- three/src/renderers/webxr/WebXRManager.d.ts +1 -1
- three/src/scenes/Scene.d.ts +0 -15
- three/src/textures/CompressedTexture.d.ts +2 -1
- three/src/textures/CubeTexture.d.ts +1 -1
- three/src/textures/Data3DTexture.d.ts +33 -0
- three/src/textures/DataArrayTexture.d.ts +33 -0
- three/src/textures/DataTexture.d.ts +2 -1
- three/src/textures/DataTexture2DArray.d.ts +5 -32
- three/src/textures/DataTexture3D.d.ts +5 -32
- three/src/textures/DepthTexture.d.ts +2 -1
- three/src/textures/Source.d.ts +39 -0
- three/src/textures/Texture.d.ts +30 -3
- three/src/textures/VideoTexture.d.ts +1 -1
- three/examples/jsm/loaders/VRMLoader.d.ts +0 -19
- three/examples/jsm/nodes/Nodes.d.ts +0 -106
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -29
- three/examples/jsm/nodes/accessors/ColorsNode.d.ts +0 -10
- three/examples/jsm/nodes/accessors/LightNode.d.ts +0 -12
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -15
- three/examples/jsm/nodes/accessors/ReflectNode.d.ts +0 -12
- three/examples/jsm/nodes/accessors/ResolutionNode.d.ts +0 -14
- three/examples/jsm/nodes/accessors/ScreenUVNode.d.ts +0 -11
- three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -10
- three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -13
- three/examples/jsm/nodes/core/ConstNode.d.ts +0 -22
- three/examples/jsm/nodes/core/ExpressionNode.d.ts +0 -5
- three/examples/jsm/nodes/core/FunctionCallNode.d.ts +0 -17
- three/examples/jsm/nodes/core/FunctionNode.d.ts +0 -28
- three/examples/jsm/nodes/core/InputNode.d.ts +0 -12
- three/examples/jsm/nodes/core/Node.d.ts +0 -34
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -149
- three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -17
- three/examples/jsm/nodes/core/NodeLib.d.ts +0 -22
- three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -17
- three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -7
- three/examples/jsm/nodes/core/StructNode.d.ts +0 -19
- three/examples/jsm/nodes/core/TempNode.d.ts +0 -23
- three/examples/jsm/nodes/core/VarNode.d.ts +0 -12
- three/examples/jsm/nodes/effects/BlurNode.d.ts +0 -31
- three/examples/jsm/nodes/effects/ColorAdjustmentNode.d.ts +0 -27
- three/examples/jsm/nodes/effects/LuminanceNode.d.ts +0 -18
- three/examples/jsm/nodes/inputs/BoolNode.d.ts +0 -19
- three/examples/jsm/nodes/inputs/ColorNode.d.ts +0 -21
- three/examples/jsm/nodes/inputs/CubeTextureNode.d.ts +0 -17
- three/examples/jsm/nodes/inputs/FloatNode.d.ts +0 -19
- three/examples/jsm/nodes/inputs/IntNode.d.ts +0 -19
- three/examples/jsm/nodes/inputs/Matrix3Node.d.ts +0 -22
- three/examples/jsm/nodes/inputs/Matrix4Node.d.ts +0 -22
- three/examples/jsm/nodes/inputs/PropertyNode.d.ts +0 -10
- three/examples/jsm/nodes/inputs/RTTNode.d.ts +0 -27
- three/examples/jsm/nodes/inputs/ReflectorNode.d.ts +0 -21
- three/examples/jsm/nodes/inputs/ScreenNode.d.ts +0 -11
- three/examples/jsm/nodes/inputs/TextureNode.d.ts +0 -20
- three/examples/jsm/nodes/inputs/Vector2Node.d.ts +0 -21
- three/examples/jsm/nodes/inputs/Vector3Node.d.ts +0 -21
- three/examples/jsm/nodes/inputs/Vector4Node.d.ts +0 -21
- three/examples/jsm/nodes/materials/BasicNodeMaterial.d.ts +0 -11
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -21
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -28
- three/examples/jsm/nodes/materials/PhongNodeMaterial.d.ts +0 -21
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -12
- three/examples/jsm/nodes/materials/StandardNodeMaterial.d.ts +0 -25
- three/examples/jsm/nodes/materials/nodes/BasicNode.d.ts +0 -15
- three/examples/jsm/nodes/materials/nodes/MeshStandardNode.d.ts +0 -25
- three/examples/jsm/nodes/materials/nodes/PhongNode.d.ts +0 -14
- three/examples/jsm/nodes/materials/nodes/RawNode.d.ts +0 -10
- three/examples/jsm/nodes/materials/nodes/SpriteNode.d.ts +0 -13
- three/examples/jsm/nodes/materials/nodes/StandardNode.d.ts +0 -15
- three/examples/jsm/nodes/math/CondNode.d.ts +0 -26
- three/examples/jsm/nodes/math/MathNode.d.ts +0 -57
- three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -17
- three/examples/jsm/nodes/misc/BumpMapNode.d.ts +0 -21
- three/examples/jsm/nodes/misc/NormalMapNode.d.ts +0 -19
- three/examples/jsm/nodes/misc/TextureCubeNode.d.ts +0 -21
- three/examples/jsm/nodes/misc/TextureCubeUVNode.d.ts +0 -18
- three/examples/jsm/nodes/postprocessing/NodePass.d.ts +0 -15
- three/examples/jsm/nodes/postprocessing/NodePostProcessing.d.ts +0 -26
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -17
- three/examples/jsm/nodes/procedural/NoiseNode.d.ts +0 -17
- three/examples/jsm/nodes/utils/BypassNode.d.ts +0 -11
- three/examples/jsm/nodes/utils/ColorSpaceNode.d.ts +0 -55
- three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -15
- three/examples/jsm/nodes/utils/MaxMIPLevelNode.d.ts +0 -11
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -17
- three/examples/jsm/nodes/utils/SubSlot.d.ts +0 -9
- three/examples/jsm/nodes/utils/SwitchNode.d.ts +0 -11
- three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -19
- three/examples/jsm/nodes/utils/UVTransformNode.d.ts +0 -15
- three/examples/jsm/nodes/utils/VelocityNode.d.ts +0 -28
- three/examples/jsm/objects/ReflectorRTT.d.ts +0 -6
- three/examples/jsm/postprocessing/SSRrPass.d.ts +0 -121
- three/examples/jsm/utils/RoughnessMipmapper.d.ts +0 -7
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Node } from './Node';
|
|
2
|
-
|
|
3
|
-
export interface NodeUniformParams {
|
|
4
|
-
name?: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
node?: Node;
|
|
7
|
-
needsUpdate?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export class NodeUniform {
|
|
11
|
-
constructor(params?: NodeUniformParams);
|
|
12
|
-
name: string | undefined;
|
|
13
|
-
type: string | undefined;
|
|
14
|
-
node: Node | undefined;
|
|
15
|
-
needsUpdate: boolean | undefined;
|
|
16
|
-
value: any;
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TempNode } from './TempNode';
|
|
2
|
-
import { NodeBuilder } from './NodeBuilder';
|
|
3
|
-
|
|
4
|
-
export interface StructNodeInput {
|
|
5
|
-
type: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export class StructNode extends TempNode {
|
|
10
|
-
constructor(src?: string);
|
|
11
|
-
|
|
12
|
-
inputs: StructNodeInput[];
|
|
13
|
-
src: string;
|
|
14
|
-
nodeType: string;
|
|
15
|
-
|
|
16
|
-
getType(builder: NodeBuilder): string;
|
|
17
|
-
getInputByName(name: string): StructNodeInput;
|
|
18
|
-
parse(src: string): void;
|
|
19
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Node } from './Node';
|
|
2
|
-
import { NodeBuilder } from './NodeBuilder';
|
|
3
|
-
|
|
4
|
-
export interface TempNodeParams {
|
|
5
|
-
shared?: boolean;
|
|
6
|
-
unique?: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export class TempNode extends Node {
|
|
10
|
-
constructor(type: string, params?: TempNodeParams);
|
|
11
|
-
|
|
12
|
-
shared: boolean;
|
|
13
|
-
unique: boolean;
|
|
14
|
-
label: string | undefined;
|
|
15
|
-
|
|
16
|
-
build(builder: NodeBuilder, output: string, uuid?: string, ns?: string): string;
|
|
17
|
-
getShared(builder: NodeBuilder, output: string): boolean;
|
|
18
|
-
getUnique(builder: NodeBuilder, output: string): boolean;
|
|
19
|
-
setLabel(name: string): this;
|
|
20
|
-
getLabel(builder: NodeBuilder): string;
|
|
21
|
-
getUuid(unique: boolean): string;
|
|
22
|
-
getTemp(builder: NodeBuilder, uuid: string): string | undefined;
|
|
23
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Node } from './Node';
|
|
2
|
-
import { NodeBuilder } from './NodeBuilder';
|
|
3
|
-
|
|
4
|
-
export class VarNode extends Node {
|
|
5
|
-
constructor(type: string, value?: any);
|
|
6
|
-
|
|
7
|
-
value: any;
|
|
8
|
-
nodeType: string;
|
|
9
|
-
|
|
10
|
-
getType(builder: NodeBuilder): string;
|
|
11
|
-
copy(source: VarNode): this;
|
|
12
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { TempNode } from '../core/TempNode';
|
|
4
|
-
import { NodeFrame } from '../core/NodeFrame';
|
|
5
|
-
import { UVNode } from '../accessors/UVNode';
|
|
6
|
-
import { Vector2Node } from '../inputs/Vector2Node';
|
|
7
|
-
import { FloatNode } from '../inputs/FloatNode';
|
|
8
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
9
|
-
import { TextureNode } from '../inputs/TextureNode';
|
|
10
|
-
|
|
11
|
-
export class BlurNode extends TempNode {
|
|
12
|
-
constructor(value: TextureNode, uv?: UVNode, radius?: number, size?: Vector2);
|
|
13
|
-
|
|
14
|
-
value: TextureNode;
|
|
15
|
-
uv: UVNode;
|
|
16
|
-
radius: Vector2Node;
|
|
17
|
-
size: Vector2;
|
|
18
|
-
blurX: boolean;
|
|
19
|
-
blurY: boolean;
|
|
20
|
-
horizontal: FloatNode;
|
|
21
|
-
vertical: FloatNode;
|
|
22
|
-
nodeType: string;
|
|
23
|
-
|
|
24
|
-
updateFrame(frame: NodeFrame): void;
|
|
25
|
-
copy(source: BlurNode): this;
|
|
26
|
-
|
|
27
|
-
static Nodes: {
|
|
28
|
-
blurX: FunctionNode;
|
|
29
|
-
blurY: FunctionNode;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FloatNode } from '../inputs/FloatNode';
|
|
3
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
4
|
-
import { Node } from '../core/Node';
|
|
5
|
-
|
|
6
|
-
export class ColorAdjustmentNode extends TempNode {
|
|
7
|
-
constructor(rgb: Node, adjustment?: FloatNode, method?: string);
|
|
8
|
-
|
|
9
|
-
rgb: Node;
|
|
10
|
-
adjustment: FloatNode | undefined;
|
|
11
|
-
method: string;
|
|
12
|
-
nodeType: string;
|
|
13
|
-
|
|
14
|
-
copy(source: ColorAdjustmentNode): this;
|
|
15
|
-
|
|
16
|
-
static Nodes: {
|
|
17
|
-
hue: FunctionNode;
|
|
18
|
-
saturation: FunctionNode;
|
|
19
|
-
vibrance: FunctionNode;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
static SATURATION: string;
|
|
23
|
-
static HUE: string;
|
|
24
|
-
static VIBRANCE: string;
|
|
25
|
-
static BRIGHTNESS: string;
|
|
26
|
-
static CONTRAST: string;
|
|
27
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
3
|
-
import { ConstNode } from '../core/ConstNode';
|
|
4
|
-
import { Node } from '../core/Node';
|
|
5
|
-
|
|
6
|
-
export class LuminanceNode extends TempNode {
|
|
7
|
-
constructor(rgb: Node);
|
|
8
|
-
|
|
9
|
-
rgb: Node;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
copy(source: LuminanceNode): this;
|
|
13
|
-
|
|
14
|
-
static Nodes: {
|
|
15
|
-
LUMA: ConstNode;
|
|
16
|
-
luminance: FunctionNode;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputNode } from '../core/InputNode';
|
|
2
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
3
|
-
|
|
4
|
-
export class BoolNode extends InputNode {
|
|
5
|
-
constructor(value?: boolean);
|
|
6
|
-
|
|
7
|
-
value: boolean;
|
|
8
|
-
nodeType: string;
|
|
9
|
-
|
|
10
|
-
generateReadonly(
|
|
11
|
-
builder: NodeBuilder,
|
|
12
|
-
output: string,
|
|
13
|
-
uuid?: string,
|
|
14
|
-
type?: string,
|
|
15
|
-
ns?: string,
|
|
16
|
-
needsUpdate?: boolean,
|
|
17
|
-
): string;
|
|
18
|
-
copy(source: BoolNode): this;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Color, ColorRepresentation } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
|
|
6
|
-
export class ColorNode extends InputNode {
|
|
7
|
-
constructor(color: ColorRepresentation, g?: number, b?: number);
|
|
8
|
-
|
|
9
|
-
value: Color;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
generateReadonly(
|
|
13
|
-
builder: NodeBuilder,
|
|
14
|
-
output: string,
|
|
15
|
-
uuid?: string,
|
|
16
|
-
type?: string,
|
|
17
|
-
ns?: string,
|
|
18
|
-
needsUpdate?: boolean,
|
|
19
|
-
): string;
|
|
20
|
-
copy(source: ColorNode): this;
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CubeTexture } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { Node } from '../core/Node';
|
|
5
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
6
|
-
|
|
7
|
-
export class CubeTextureNode extends InputNode {
|
|
8
|
-
constructor(value: CubeTexture, uv?: Node, bias?: Node);
|
|
9
|
-
|
|
10
|
-
value: CubeTexture;
|
|
11
|
-
uv: Node | undefined;
|
|
12
|
-
bias: Node | undefined;
|
|
13
|
-
nodeType: string;
|
|
14
|
-
|
|
15
|
-
getTexture(builder: NodeBuilder, output: string): string;
|
|
16
|
-
copy(source: CubeTextureNode): this;
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputNode } from '../core/InputNode';
|
|
2
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
3
|
-
|
|
4
|
-
export class FloatNode extends InputNode {
|
|
5
|
-
constructor(value?: number);
|
|
6
|
-
|
|
7
|
-
value: number;
|
|
8
|
-
nodeType: string;
|
|
9
|
-
|
|
10
|
-
generateReadonly(
|
|
11
|
-
builder: NodeBuilder,
|
|
12
|
-
output: string,
|
|
13
|
-
uuid?: string,
|
|
14
|
-
type?: string,
|
|
15
|
-
ns?: string,
|
|
16
|
-
needsUpdate?: boolean,
|
|
17
|
-
): string;
|
|
18
|
-
copy(source: FloatNode): this;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputNode } from '../core/InputNode';
|
|
2
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
3
|
-
|
|
4
|
-
export class IntNode extends InputNode {
|
|
5
|
-
constructor(value?: number);
|
|
6
|
-
|
|
7
|
-
value: number;
|
|
8
|
-
nodeType: string;
|
|
9
|
-
|
|
10
|
-
generateReadonly(
|
|
11
|
-
builder: NodeBuilder,
|
|
12
|
-
output: string,
|
|
13
|
-
uuid?: string,
|
|
14
|
-
type?: string,
|
|
15
|
-
ns?: string,
|
|
16
|
-
needsUpdate?: boolean,
|
|
17
|
-
): string;
|
|
18
|
-
copy(source: IntNode): this;
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Matrix3 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
|
|
6
|
-
export class Matrix3Node extends InputNode {
|
|
7
|
-
constructor(matrix?: Matrix3);
|
|
8
|
-
|
|
9
|
-
value: Matrix3;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
elements: number[];
|
|
12
|
-
|
|
13
|
-
generateReadonly(
|
|
14
|
-
builder: NodeBuilder,
|
|
15
|
-
output: string,
|
|
16
|
-
uuid?: string,
|
|
17
|
-
type?: string,
|
|
18
|
-
ns?: string,
|
|
19
|
-
needsUpdate?: boolean,
|
|
20
|
-
): string;
|
|
21
|
-
copy(source: Matrix3Node): this;
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Matrix4 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
|
|
6
|
-
export class Matrix4Node extends InputNode {
|
|
7
|
-
constructor(matrix?: Matrix4);
|
|
8
|
-
|
|
9
|
-
value: Matrix4;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
elements: number[];
|
|
12
|
-
|
|
13
|
-
generateReadonly(
|
|
14
|
-
builder: NodeBuilder,
|
|
15
|
-
output: string,
|
|
16
|
-
uuid?: string,
|
|
17
|
-
type?: string,
|
|
18
|
-
ns?: string,
|
|
19
|
-
needsUpdate?: boolean,
|
|
20
|
-
): string;
|
|
21
|
-
copy(source: Matrix4Node): this;
|
|
22
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Mesh, OrthographicCamera, Scene, WebGLRenderTarget, WebGLRenderTargetOptions } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
4
|
-
import { NodeFrame } from '../core/NodeFrame';
|
|
5
|
-
import { TextureNode } from './TextureNode';
|
|
6
|
-
|
|
7
|
-
export interface RTTNodeOptions extends WebGLRenderTargetOptions {
|
|
8
|
-
clear?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class RTTNode extends TextureNode {
|
|
12
|
-
constructor(width: number, height: number, input: TextureNode, options?: RTTNodeOptions);
|
|
13
|
-
|
|
14
|
-
input: TextureNode;
|
|
15
|
-
clear: boolean;
|
|
16
|
-
renderTarget: WebGLRenderTarget;
|
|
17
|
-
material: object; // NodeMaterial
|
|
18
|
-
camera: OrthographicCamera;
|
|
19
|
-
scene: Scene;
|
|
20
|
-
quad: Mesh;
|
|
21
|
-
render: boolean;
|
|
22
|
-
|
|
23
|
-
build(builder: NodeBuilder, output: string, uuid?: string): string;
|
|
24
|
-
updateFramesaveTo(frame: NodeFrame): void;
|
|
25
|
-
updateFrame(frame: NodeFrame): void;
|
|
26
|
-
copy(source: RTTNode): this;
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { Matrix4Node } from './Matrix4Node';
|
|
3
|
-
import { OperatorNode } from '../math/OperatorNode';
|
|
4
|
-
import { ReflectorRTT } from '../../objects/ReflectorRTT';
|
|
5
|
-
import { TextureNode } from './TextureNode';
|
|
6
|
-
import { PositionNode } from '../accessors/PositionNode';
|
|
7
|
-
|
|
8
|
-
export class ReflectorNode extends TempNode {
|
|
9
|
-
constructor(mirror?: ReflectorRTT);
|
|
10
|
-
|
|
11
|
-
mirror: ReflectorRTT;
|
|
12
|
-
textureMatrix: Matrix4Node;
|
|
13
|
-
localPosition: PositionNode;
|
|
14
|
-
uv: OperatorNode;
|
|
15
|
-
uvResult: OperatorNode;
|
|
16
|
-
texture: TextureNode;
|
|
17
|
-
|
|
18
|
-
nodeType: string;
|
|
19
|
-
|
|
20
|
-
copy(source: ReflectorNode): this;
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
2
|
-
import { TextureNode } from './TextureNode';
|
|
3
|
-
import { UVNode } from '../accessors/UVNode';
|
|
4
|
-
|
|
5
|
-
export class ScreenNode extends TextureNode {
|
|
6
|
-
constructor(uv?: UVNode);
|
|
7
|
-
|
|
8
|
-
nodeType: string;
|
|
9
|
-
|
|
10
|
-
getTexture(builder: NodeBuilder, output: string): string;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Texture } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
import { Node } from '../core/Node';
|
|
6
|
-
import { UVNode } from '../accessors/UVNode';
|
|
7
|
-
import { UVTransformNode } from '../utils/UVTransformNode';
|
|
8
|
-
|
|
9
|
-
export class TextureNode extends InputNode {
|
|
10
|
-
constructor(value: Texture, uv?: UVNode | UVTransformNode, bias?: Node, project?: boolean);
|
|
11
|
-
|
|
12
|
-
value: Texture;
|
|
13
|
-
uv: UVNode | UVTransformNode;
|
|
14
|
-
bias: Node;
|
|
15
|
-
project: boolean;
|
|
16
|
-
nodeType: string;
|
|
17
|
-
|
|
18
|
-
getTexture(builder: NodeBuilder, output: string): string;
|
|
19
|
-
copy(source: TextureNode): this;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
|
|
6
|
-
export class Vector2Node extends InputNode {
|
|
7
|
-
constructor(x: Vector2 | number, y?: number);
|
|
8
|
-
|
|
9
|
-
value: Vector2;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
generateReadonly(
|
|
13
|
-
builder: NodeBuilder,
|
|
14
|
-
output: string,
|
|
15
|
-
uuid?: string,
|
|
16
|
-
type?: string,
|
|
17
|
-
ns?: string,
|
|
18
|
-
needsUpdate?: boolean,
|
|
19
|
-
): string;
|
|
20
|
-
copy(source: Vector2Node): this;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
|
|
6
|
-
export class Vector3Node extends InputNode {
|
|
7
|
-
constructor(x: Vector3 | number, y?: number, z?: number);
|
|
8
|
-
|
|
9
|
-
value: Vector3;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
generateReadonly(
|
|
13
|
-
builder: NodeBuilder,
|
|
14
|
-
output: string,
|
|
15
|
-
uuid?: string,
|
|
16
|
-
type?: string,
|
|
17
|
-
ns?: string,
|
|
18
|
-
needsUpdate?: boolean,
|
|
19
|
-
): string;
|
|
20
|
-
copy(source: Vector3Node): this;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Vector4 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { InputNode } from '../core/InputNode';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
|
|
6
|
-
export class Vector4Node extends InputNode {
|
|
7
|
-
constructor(x: Vector4 | number, y?: number, z?: number, w?: number);
|
|
8
|
-
|
|
9
|
-
value: Vector4;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
generateReadonly(
|
|
13
|
-
builder: NodeBuilder,
|
|
14
|
-
output: string,
|
|
15
|
-
uuid?: string,
|
|
16
|
-
type?: string,
|
|
17
|
-
ns?: string,
|
|
18
|
-
needsUpdate?: boolean,
|
|
19
|
-
): string;
|
|
20
|
-
copy(source: Vector4Node): this;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Color } from '../../../../src/math/Color';
|
|
2
|
-
import { Texture } from '../../../../src/textures/Texture';
|
|
3
|
-
import { CubeTexture } from '../../../../src/textures/CubeTexture';
|
|
4
|
-
import { Vector2 } from '../../../../src/math/Vector2';
|
|
5
|
-
|
|
6
|
-
import { Node } from '../core/Node';
|
|
7
|
-
import { NodeMaterial } from './NodeMaterial';
|
|
8
|
-
|
|
9
|
-
export class MeshStandardNodeMaterial extends NodeMaterial {
|
|
10
|
-
constructor();
|
|
11
|
-
|
|
12
|
-
color: Color | Node;
|
|
13
|
-
roughness: number | Node;
|
|
14
|
-
metalness: number | Node;
|
|
15
|
-
map: Texture | Node;
|
|
16
|
-
normalMap: Texture | Node;
|
|
17
|
-
normalScale: Vector2 | Node;
|
|
18
|
-
metalnessMap: Texture | Node;
|
|
19
|
-
roughnessMap: Texture | Node;
|
|
20
|
-
envMap: CubeTexture | Node;
|
|
21
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ShaderMaterial, WebGLRenderer } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { Node } from '../core/Node.js';
|
|
4
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
5
|
-
import { NodeFrame } from '../core/NodeFrame';
|
|
6
|
-
import { RawNode } from './nodes/RawNode';
|
|
7
|
-
|
|
8
|
-
export interface NodeMaterialBuildParams {
|
|
9
|
-
builder?: NodeBuilder;
|
|
10
|
-
renderer?: WebGLRenderer;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class NodeMaterial extends ShaderMaterial {
|
|
14
|
-
constructor(vertex: Node, fragment: Node);
|
|
15
|
-
|
|
16
|
-
vertex: Node | RawNode;
|
|
17
|
-
fragment: Node | RawNode;
|
|
18
|
-
|
|
19
|
-
updaters: object[];
|
|
20
|
-
|
|
21
|
-
readonly isNodeMaterial: true;
|
|
22
|
-
properties: object;
|
|
23
|
-
|
|
24
|
-
updateFrame(frame: NodeFrame): void;
|
|
25
|
-
build(params?: NodeMaterialBuildParams): this;
|
|
26
|
-
getHash(): string;
|
|
27
|
-
copy(source: NodeMaterial): this;
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Node } from '../core/Node';
|
|
2
|
-
import { NodeMaterial } from './NodeMaterial';
|
|
3
|
-
|
|
4
|
-
export class PhongNodeMaterial extends NodeMaterial {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
color: Node;
|
|
8
|
-
alpha: Node;
|
|
9
|
-
specular: Node;
|
|
10
|
-
shininess: Node;
|
|
11
|
-
normal: Node;
|
|
12
|
-
emissive: Node;
|
|
13
|
-
ambient: Node;
|
|
14
|
-
light: Node;
|
|
15
|
-
shadow: Node;
|
|
16
|
-
ao: Node;
|
|
17
|
-
environment: Node;
|
|
18
|
-
environmentAlpha: Node;
|
|
19
|
-
mask: Node;
|
|
20
|
-
position: Node;
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Node } from '../core/Node';
|
|
2
|
-
import { NodeMaterial } from './NodeMaterial';
|
|
3
|
-
|
|
4
|
-
export class StandardNodeMaterial extends NodeMaterial {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
color: Node;
|
|
8
|
-
alpha: Node;
|
|
9
|
-
roughness: Node;
|
|
10
|
-
metalness: Node;
|
|
11
|
-
reflectivity: Node;
|
|
12
|
-
clearcoat: Node;
|
|
13
|
-
clearcoatRoughness: Node;
|
|
14
|
-
clearcoatNormal: Node;
|
|
15
|
-
normal: Node;
|
|
16
|
-
emissive: Node;
|
|
17
|
-
ambient: Node;
|
|
18
|
-
light: Node;
|
|
19
|
-
shadow: Node;
|
|
20
|
-
ao: Node;
|
|
21
|
-
environment: Node;
|
|
22
|
-
mask: Node;
|
|
23
|
-
position: Node;
|
|
24
|
-
sheenColor: Node;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NodeBuilder } from '../../core/NodeBuilder';
|
|
2
|
-
import { Node } from '../../core/Node';
|
|
3
|
-
|
|
4
|
-
export class BasicNode extends Node {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
position: Node;
|
|
8
|
-
color: Node;
|
|
9
|
-
alpha: Node;
|
|
10
|
-
mask: Node;
|
|
11
|
-
nodeType: string;
|
|
12
|
-
|
|
13
|
-
build(builder: NodeBuilder): string;
|
|
14
|
-
copy(source: BasicNode): this;
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Color, Vector2 } from '../../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { NodeBuilder } from '../../core/NodeBuilder';
|
|
4
|
-
import { StandardNode } from './StandardNode';
|
|
5
|
-
import { PropertyNode } from '../../inputs/PropertyNode';
|
|
6
|
-
|
|
7
|
-
export class MeshStandardNode extends StandardNode {
|
|
8
|
-
constructor();
|
|
9
|
-
|
|
10
|
-
properties: {
|
|
11
|
-
color: Color;
|
|
12
|
-
roughness: number;
|
|
13
|
-
metalness: number;
|
|
14
|
-
normalScale: Vector2;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
inputs: {
|
|
18
|
-
color: PropertyNode;
|
|
19
|
-
roughness: PropertyNode;
|
|
20
|
-
metalness: PropertyNode;
|
|
21
|
-
normalScale: PropertyNode;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
build(builder: NodeBuilder): string;
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NodeBuilder } from '../../core/NodeBuilder';
|
|
2
|
-
import { Node } from '../../core/Node';
|
|
3
|
-
|
|
4
|
-
export class PhongNode extends Node {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
color: Node;
|
|
8
|
-
specular: Node;
|
|
9
|
-
shininess: Node;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
build(builder: NodeBuilder): string;
|
|
13
|
-
copy(source: PhongNode): this;
|
|
14
|
-
}
|