@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,13 +0,0 @@
|
|
|
1
|
-
import { NodeBuilder } from '../../core/NodeBuilder';
|
|
2
|
-
import { Node } from '../../core/Node';
|
|
3
|
-
|
|
4
|
-
export class SpriteNode extends Node {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
color: Node;
|
|
8
|
-
spherical: true;
|
|
9
|
-
nodeType: string;
|
|
10
|
-
|
|
11
|
-
build(builder: NodeBuilder): string;
|
|
12
|
-
copy(source: SpriteNode): this;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NodeBuilder } from '../../core/NodeBuilder';
|
|
2
|
-
import { Node } from '../../core/Node';
|
|
3
|
-
|
|
4
|
-
export class StandardNode extends Node {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
color: Node;
|
|
8
|
-
roughness: Node;
|
|
9
|
-
metalness: Node;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
sheenColor: Node;
|
|
12
|
-
|
|
13
|
-
build(builder: NodeBuilder): string;
|
|
14
|
-
copy(source: StandardNode): this;
|
|
15
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
3
|
-
import { Node } from '../core/Node';
|
|
4
|
-
|
|
5
|
-
export class CondNode extends TempNode {
|
|
6
|
-
constructor(a: Node, b: Node, op: string, ifNode?: Node, elseNode?: Node);
|
|
7
|
-
|
|
8
|
-
a: Node;
|
|
9
|
-
b: Node;
|
|
10
|
-
op: string;
|
|
11
|
-
ifNode: Node | undefined;
|
|
12
|
-
elseNode: Node | undefined;
|
|
13
|
-
nodeType: string;
|
|
14
|
-
|
|
15
|
-
getCondType(builder: NodeBuilder): string;
|
|
16
|
-
copy(source: CondNode): this;
|
|
17
|
-
|
|
18
|
-
static EQUAL: string;
|
|
19
|
-
static NOT_EQUAL: string;
|
|
20
|
-
static GREATER: string;
|
|
21
|
-
static GREATER_EQUAL: string;
|
|
22
|
-
static LESS: string;
|
|
23
|
-
static LESS_EQUAL: string;
|
|
24
|
-
static AND: string;
|
|
25
|
-
static OR: string;
|
|
26
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
3
|
-
import { Node } from '../core/Node';
|
|
4
|
-
|
|
5
|
-
export class MathNode extends TempNode {
|
|
6
|
-
constructor(a: Node, bOrMethod: Node | string, cOrMethod?: Node | string, method?: string);
|
|
7
|
-
|
|
8
|
-
a: Node;
|
|
9
|
-
b: Node | string | undefined;
|
|
10
|
-
c: Node | string | undefined;
|
|
11
|
-
method: string;
|
|
12
|
-
nodeType: string;
|
|
13
|
-
|
|
14
|
-
getNumInputs(builder: NodeBuilder): number;
|
|
15
|
-
getInputType(builder: NodeBuilder): string;
|
|
16
|
-
copy(source: MathNode): this;
|
|
17
|
-
|
|
18
|
-
static RAD: string;
|
|
19
|
-
static DEG: string;
|
|
20
|
-
static EXP: string;
|
|
21
|
-
static EXP2: string;
|
|
22
|
-
static LOG: string;
|
|
23
|
-
static LOG2: string;
|
|
24
|
-
static SQRT: string;
|
|
25
|
-
static INV_SQRT: string;
|
|
26
|
-
static FLOOR: string;
|
|
27
|
-
static CEIL: string;
|
|
28
|
-
static NORMALIZE: string;
|
|
29
|
-
static SATURATE: string;
|
|
30
|
-
static SIN: string;
|
|
31
|
-
static COS: string;
|
|
32
|
-
static TAN: string;
|
|
33
|
-
static ASIN: string;
|
|
34
|
-
static ACOS: string;
|
|
35
|
-
static ARCTAN: string;
|
|
36
|
-
static ABS: string;
|
|
37
|
-
static SIGN: string;
|
|
38
|
-
static LENGTH: string;
|
|
39
|
-
static NEGATE: string;
|
|
40
|
-
static INVERT: string;
|
|
41
|
-
|
|
42
|
-
static MIN: string;
|
|
43
|
-
static MAX: string;
|
|
44
|
-
static MOD: string;
|
|
45
|
-
static STEP: string;
|
|
46
|
-
static REFLECT: string;
|
|
47
|
-
static DISTANCE: string;
|
|
48
|
-
static DOT: string;
|
|
49
|
-
static CROSS: string;
|
|
50
|
-
static POW: string;
|
|
51
|
-
|
|
52
|
-
static MIX: string;
|
|
53
|
-
static CLAMP: string;
|
|
54
|
-
static REFRACT: string;
|
|
55
|
-
static SMOOTHSTEP: string;
|
|
56
|
-
static FACEFORWARD: string;
|
|
57
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { Node } from '../core/Node';
|
|
3
|
-
|
|
4
|
-
export class OperatorNode extends TempNode {
|
|
5
|
-
constructor(a: Node, b: Node, op: string);
|
|
6
|
-
|
|
7
|
-
a: Node;
|
|
8
|
-
b: Node;
|
|
9
|
-
op: string;
|
|
10
|
-
|
|
11
|
-
copy(source: OperatorNode): this;
|
|
12
|
-
|
|
13
|
-
static ADD: string;
|
|
14
|
-
static SUB: string;
|
|
15
|
-
static MUL: string;
|
|
16
|
-
static DIV: string;
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FloatNode } from '../inputs/FloatNode';
|
|
3
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
4
|
-
import { TextureNode } from '../inputs/TextureNode';
|
|
5
|
-
|
|
6
|
-
export class BumpMapNode extends TempNode {
|
|
7
|
-
constructor(value: TextureNode, scale?: FloatNode);
|
|
8
|
-
|
|
9
|
-
value: TextureNode;
|
|
10
|
-
scale: FloatNode;
|
|
11
|
-
toNormalMap: boolean;
|
|
12
|
-
nodeType: string;
|
|
13
|
-
|
|
14
|
-
copy(source: BumpMapNode): this;
|
|
15
|
-
|
|
16
|
-
static Nodes: {
|
|
17
|
-
dHdxy_fwd: FunctionNode;
|
|
18
|
-
perturbNormalArb: FunctionNode;
|
|
19
|
-
bumpToNormal: FunctionNode;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
3
|
-
import { TextureNode } from '../inputs/TextureNode';
|
|
4
|
-
import { Vector2Node } from '../inputs/Vector2Node';
|
|
5
|
-
|
|
6
|
-
export class NormalMapNode extends TempNode {
|
|
7
|
-
constructor(value: TextureNode, scale?: Vector2Node);
|
|
8
|
-
|
|
9
|
-
value: TextureNode;
|
|
10
|
-
scale: Vector2Node;
|
|
11
|
-
toNormalMap: boolean;
|
|
12
|
-
nodeType: string;
|
|
13
|
-
|
|
14
|
-
copy(source: NormalMapNode): this;
|
|
15
|
-
|
|
16
|
-
static Nodes: {
|
|
17
|
-
perturbNormal2Arb: FunctionNode;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { NodeBuilder } from '../core/NodeBuilder';
|
|
3
|
-
import { TextureNode } from '../inputs/TextureNode';
|
|
4
|
-
import { FloatNode } from '../inputs/FloatNode';
|
|
5
|
-
import { TextureCubeUVNode } from './TextureCubeUVNode';
|
|
6
|
-
|
|
7
|
-
export class TextureCubeNode extends TempNode {
|
|
8
|
-
constructor(value: TextureNode, textureSize?: FloatNode);
|
|
9
|
-
|
|
10
|
-
value: TextureNode;
|
|
11
|
-
textureSize: FloatNode;
|
|
12
|
-
radianceCache: {
|
|
13
|
-
uv: TextureCubeUVNode;
|
|
14
|
-
};
|
|
15
|
-
irradianceCache: {
|
|
16
|
-
uv: TextureCubeUVNode;
|
|
17
|
-
};
|
|
18
|
-
nodeType: string;
|
|
19
|
-
|
|
20
|
-
generateTextureCubeUV(builder: NodeBuilder, output: string): string;
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FloatNode } from '../inputs/FloatNode';
|
|
3
|
-
import { StructNode } from '../core/StructNode';
|
|
4
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
5
|
-
import { Node } from '../core/Node';
|
|
6
|
-
|
|
7
|
-
export class TextureCubeUVNode extends TempNode {
|
|
8
|
-
constructor(uv: Node, textureSize: FloatNode);
|
|
9
|
-
|
|
10
|
-
uv: Node;
|
|
11
|
-
textureSize: FloatNode;
|
|
12
|
-
nodeType: string;
|
|
13
|
-
|
|
14
|
-
static Nodes: {
|
|
15
|
-
TextureCubeUVData: StructNode;
|
|
16
|
-
textureCubeUV: FunctionNode;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ShaderPass } from '../../postprocessing/ShaderPass';
|
|
2
|
-
import { ScreenNode } from '../inputs/ScreenNode';
|
|
3
|
-
|
|
4
|
-
export class NodePass extends ShaderPass {
|
|
5
|
-
constructor();
|
|
6
|
-
|
|
7
|
-
name: string;
|
|
8
|
-
uuid: string;
|
|
9
|
-
userData: object;
|
|
10
|
-
input: ScreenNode;
|
|
11
|
-
needsUpdate: boolean;
|
|
12
|
-
|
|
13
|
-
copy(source: NodePass): this;
|
|
14
|
-
toJSON(meta?: object | string): object;
|
|
15
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Camera, Mesh, OrthographicCamera, Scene, WebGLRenderer, WebGLRenderTarget } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { ScreenNode } from '../inputs/ScreenNode';
|
|
4
|
-
import { NodeMaterial } from '../materials/NodeMaterial';
|
|
5
|
-
import { NodeFrame } from '../core/NodeFrame';
|
|
6
|
-
|
|
7
|
-
export class NodePostProcessing {
|
|
8
|
-
constructor(renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget);
|
|
9
|
-
|
|
10
|
-
renderer: WebGLRenderer;
|
|
11
|
-
renderTarget: WebGLRenderTarget;
|
|
12
|
-
|
|
13
|
-
output: ScreenNode;
|
|
14
|
-
material: NodeMaterial;
|
|
15
|
-
|
|
16
|
-
camera: OrthographicCamera;
|
|
17
|
-
scene: Scene;
|
|
18
|
-
|
|
19
|
-
quad: Mesh;
|
|
20
|
-
needsUpdate: boolean;
|
|
21
|
-
|
|
22
|
-
render(scene: Scene, camera: Camera, frame: NodeFrame): void;
|
|
23
|
-
setSize(width: number, height: number): void;
|
|
24
|
-
copy(source: NodePostProcessing): this;
|
|
25
|
-
toJSON(meta?: object | string): object;
|
|
26
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
3
|
-
import { UVNode } from '../accessors/UVNode';
|
|
4
|
-
import { UVTransformNode } from '../utils/UVTransformNode';
|
|
5
|
-
|
|
6
|
-
export class CheckerNode extends TempNode {
|
|
7
|
-
constructor(uv?: UVNode | UVTransformNode);
|
|
8
|
-
|
|
9
|
-
uv: UVNode | UVTransformNode;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
copy(source: CheckerNode): this;
|
|
13
|
-
|
|
14
|
-
static Nodes: {
|
|
15
|
-
checker: FunctionNode;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
3
|
-
import { UVNode } from '../accessors/UVNode';
|
|
4
|
-
import { UVTransformNode } from '../utils/UVTransformNode';
|
|
5
|
-
|
|
6
|
-
export class NoiseNode extends TempNode {
|
|
7
|
-
constructor(uv?: UVNode | UVTransformNode);
|
|
8
|
-
|
|
9
|
-
uv: UVNode | UVTransformNode;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
copy(source: NoiseNode): this;
|
|
13
|
-
|
|
14
|
-
static Nodes: {
|
|
15
|
-
snoise: FunctionNode;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Node } from '../core/Node';
|
|
2
|
-
import { TempNode } from '../core/TempNode';
|
|
3
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
4
|
-
|
|
5
|
-
export class ColorSpaceNode extends TempNode {
|
|
6
|
-
constructor(input: Node, method?: string);
|
|
7
|
-
|
|
8
|
-
input: Node;
|
|
9
|
-
method: string | undefined;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
fromEncoding(encoding: number): void;
|
|
13
|
-
fromDecoding(encoding: number): void;
|
|
14
|
-
copy(source: ColorSpaceNode): this;
|
|
15
|
-
|
|
16
|
-
static Nodes: {
|
|
17
|
-
LinearToLinear: FunctionNode;
|
|
18
|
-
GammaToLinear: FunctionNode;
|
|
19
|
-
LinearToGamma: FunctionNode;
|
|
20
|
-
sRGBToLinear: FunctionNode;
|
|
21
|
-
LinearTosRGB: FunctionNode;
|
|
22
|
-
RGBEToLinear: FunctionNode;
|
|
23
|
-
LinearToRGBE: FunctionNode;
|
|
24
|
-
RGBMToLinear: FunctionNode;
|
|
25
|
-
LinearToRGBM: FunctionNode;
|
|
26
|
-
RGBDToLinear: FunctionNode;
|
|
27
|
-
LinearToRGBD: FunctionNode;
|
|
28
|
-
cLogLuvM: FunctionNode;
|
|
29
|
-
LinearToLogLuv: FunctionNode;
|
|
30
|
-
cLogLuvInverseM: FunctionNode;
|
|
31
|
-
LogLuvToLinear: FunctionNode;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
static LINEAR_TO_LINEAR: string;
|
|
35
|
-
|
|
36
|
-
static GAMMA_TO_LINEAR: string;
|
|
37
|
-
static LINEAR_TO_GAMMA: string;
|
|
38
|
-
|
|
39
|
-
static SRGB_TO_LINEAR: string;
|
|
40
|
-
static LINEAR_TO_SRGB: string;
|
|
41
|
-
|
|
42
|
-
static RGBE_TO_LINEAR: string;
|
|
43
|
-
static LINEAR_TO_RGBE: string;
|
|
44
|
-
|
|
45
|
-
static RGBM_TO_LINEAR: string;
|
|
46
|
-
static LINEAR_TO_RGBM: string;
|
|
47
|
-
|
|
48
|
-
static RGBD_TO_LINEAR: string;
|
|
49
|
-
static LINEAR_TO_RGBD: string;
|
|
50
|
-
|
|
51
|
-
static LINEAR_TO_LOG_LUV: string;
|
|
52
|
-
static LOG_LUV_TO_LINEAR: string;
|
|
53
|
-
|
|
54
|
-
static getEncodingComponents(encoding: number): any[];
|
|
55
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { Node } from '../core/Node';
|
|
3
|
-
|
|
4
|
-
export class JoinNode extends TempNode {
|
|
5
|
-
constructor(x: Node, y: Node, z?: Node, w?: Node);
|
|
6
|
-
|
|
7
|
-
x: Node;
|
|
8
|
-
y: Node;
|
|
9
|
-
z: Node | undefined;
|
|
10
|
-
w: Node | undefined;
|
|
11
|
-
nodeType: string;
|
|
12
|
-
|
|
13
|
-
getNumElements(): number;
|
|
14
|
-
copy(source: JoinNode): this;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TempNode } from '../core/TempNode';
|
|
2
|
-
import { MaxMIPLevelNode } from '../utils/MaxMIPLevelNode';
|
|
3
|
-
import { FunctionNode } from '../core/FunctionNode';
|
|
4
|
-
|
|
5
|
-
export class SpecularMIPLevelNode extends TempNode {
|
|
6
|
-
constructor(texture: Node);
|
|
7
|
-
|
|
8
|
-
texture: Node;
|
|
9
|
-
maxMIPLevel: MaxMIPLevelNode;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
copy(source: SpecularMIPLevelNode): this;
|
|
13
|
-
|
|
14
|
-
static Nodes: {
|
|
15
|
-
getSpecularMIPLevel: FunctionNode;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { NodeFrame } from '../core/NodeFrame';
|
|
2
|
-
import { FloatNode } from '../inputs/FloatNode';
|
|
3
|
-
|
|
4
|
-
export class TimerNode extends FloatNode {
|
|
5
|
-
constructor(scale?: number, scope?: string, timeScale?: boolean);
|
|
6
|
-
|
|
7
|
-
scale: number;
|
|
8
|
-
scope: string;
|
|
9
|
-
timeScale: boolean;
|
|
10
|
-
nodeType: string;
|
|
11
|
-
|
|
12
|
-
getUnique(): boolean;
|
|
13
|
-
updateFrame(frame: NodeFrame): void;
|
|
14
|
-
copy(source: TimerNode): this;
|
|
15
|
-
|
|
16
|
-
static GLOBAL: string;
|
|
17
|
-
static LOCAL: string;
|
|
18
|
-
static DELTA: string;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ExpressionNode } from '../core/ExpressionNode';
|
|
2
|
-
import { Matrix3Node } from '../inputs/Matrix3Node';
|
|
3
|
-
import { UVNode } from '../accessors/UVNode';
|
|
4
|
-
|
|
5
|
-
export class UVTransformNode extends ExpressionNode {
|
|
6
|
-
constructor(uv?: UVNode, position?: Matrix3Node);
|
|
7
|
-
|
|
8
|
-
uv: UVNode;
|
|
9
|
-
position: Matrix3Node;
|
|
10
|
-
|
|
11
|
-
nodeType: string;
|
|
12
|
-
|
|
13
|
-
setUvTransform(tx: number, ty: number, sx: number, sy: number, rotation: number, cx?: number, cy?: number): void;
|
|
14
|
-
copy(source: UVTransformNode): this;
|
|
15
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Object3D, Vector3 } from '../../../../src/Three';
|
|
2
|
-
|
|
3
|
-
import { NodeFrame } from '../core/NodeFrame';
|
|
4
|
-
import { Vector3Node } from '../inputs/Vector3Node';
|
|
5
|
-
|
|
6
|
-
export interface VelocityNodeParams {
|
|
7
|
-
damping: number;
|
|
8
|
-
spring: number;
|
|
9
|
-
type: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export class VelocityNode extends Vector3Node {
|
|
13
|
-
constructor(target: Object3D, params?: VelocityNodeParams);
|
|
14
|
-
|
|
15
|
-
velocity: Vector3;
|
|
16
|
-
moment: Vector3 | undefined;
|
|
17
|
-
speed: Vector3 | undefined;
|
|
18
|
-
springVelocity: Vector3 | undefined;
|
|
19
|
-
lastVelocity: Vector3 | undefined;
|
|
20
|
-
|
|
21
|
-
nodeType: string;
|
|
22
|
-
|
|
23
|
-
setParams(params: VelocityNodeParams): void;
|
|
24
|
-
setTarget(target: Object3D): void;
|
|
25
|
-
updateFrameVelocity(frame: NodeFrame): void;
|
|
26
|
-
updateFrame(frame: NodeFrame): void;
|
|
27
|
-
copy(source: VelocityNode): this;
|
|
28
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Color,
|
|
3
|
-
MeshNormalMaterial,
|
|
4
|
-
MeshBasicMaterial,
|
|
5
|
-
ShaderMaterial,
|
|
6
|
-
WebGLRenderTarget,
|
|
7
|
-
MeshStandardMaterial,
|
|
8
|
-
WebGLRenderer,
|
|
9
|
-
Scene,
|
|
10
|
-
Camera,
|
|
11
|
-
Mesh,
|
|
12
|
-
Material,
|
|
13
|
-
ColorRepresentation,
|
|
14
|
-
} from '../../../src/Three';
|
|
15
|
-
import { Pass, FullScreenQuad } from './Pass';
|
|
16
|
-
|
|
17
|
-
export interface SSRrPassParams {
|
|
18
|
-
renderer: WebGLRenderer;
|
|
19
|
-
scene: Scene;
|
|
20
|
-
camera: Camera;
|
|
21
|
-
width?: number | undefined;
|
|
22
|
-
height?: number | undefined;
|
|
23
|
-
selects: Mesh[] | null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class SSRrPass extends Pass {
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
clear: boolean;
|
|
30
|
-
|
|
31
|
-
renderer: WebGLRenderer;
|
|
32
|
-
scene: Scene;
|
|
33
|
-
camera: Camera;
|
|
34
|
-
|
|
35
|
-
output: number;
|
|
36
|
-
|
|
37
|
-
ior: number;
|
|
38
|
-
maxDistance: number;
|
|
39
|
-
surfDist: number;
|
|
40
|
-
|
|
41
|
-
color: Color;
|
|
42
|
-
|
|
43
|
-
seleects: Mesh[] | null;
|
|
44
|
-
|
|
45
|
-
_specular: boolean;
|
|
46
|
-
get specular(): boolean;
|
|
47
|
-
set specular(spec: boolean);
|
|
48
|
-
|
|
49
|
-
_fillHole: boolean;
|
|
50
|
-
get fillHole(): boolean;
|
|
51
|
-
set fillHole(spec: boolean);
|
|
52
|
-
|
|
53
|
-
_infiniteThick: boolean;
|
|
54
|
-
get infiniteThick(): boolean;
|
|
55
|
-
set infiniteThick(spec: boolean);
|
|
56
|
-
|
|
57
|
-
beautyRenderTarget: WebGLRenderTarget;
|
|
58
|
-
specularRenderTarget: WebGLRenderTarget;
|
|
59
|
-
normalSelectsRenderTarget: WebGLRenderTarget;
|
|
60
|
-
refractiveRenderTarget: WebGLRenderTarget;
|
|
61
|
-
ssrrRenderTarget: WebGLRenderTarget;
|
|
62
|
-
|
|
63
|
-
ssrrMaterial: ShaderMaterial;
|
|
64
|
-
|
|
65
|
-
normalMaterial: MeshNormalMaterial;
|
|
66
|
-
refractiveOnMaterial: MeshBasicMaterial;
|
|
67
|
-
refractiveOffMaterial: MeshBasicMaterial;
|
|
68
|
-
specularMaterial: MeshStandardMaterial;
|
|
69
|
-
|
|
70
|
-
depthRenderMaterial: ShaderMaterial;
|
|
71
|
-
copyMaterial: ShaderMaterial;
|
|
72
|
-
|
|
73
|
-
fsQuad: FullScreenQuad;
|
|
74
|
-
|
|
75
|
-
originalClearColor: Color;
|
|
76
|
-
|
|
77
|
-
constructor(params: SSRrPassParams);
|
|
78
|
-
|
|
79
|
-
dispose: () => void;
|
|
80
|
-
|
|
81
|
-
render: (renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget) => void;
|
|
82
|
-
|
|
83
|
-
renderPass: (
|
|
84
|
-
renderer: WebGLRenderer,
|
|
85
|
-
passMaterial: Material,
|
|
86
|
-
renderTarget: WebGLRenderTarget,
|
|
87
|
-
clearColor: ColorRepresentation,
|
|
88
|
-
clearAlpha: ColorRepresentation,
|
|
89
|
-
) => void;
|
|
90
|
-
|
|
91
|
-
renderOverride: (
|
|
92
|
-
renderer: WebGLRenderer,
|
|
93
|
-
passMaterial: Material,
|
|
94
|
-
renderTarget: WebGLRenderTarget,
|
|
95
|
-
clearColor: ColorRepresentation,
|
|
96
|
-
clearAlpha: ColorRepresentation,
|
|
97
|
-
) => void;
|
|
98
|
-
|
|
99
|
-
renderRefractive: (
|
|
100
|
-
renderer: WebGLRenderer,
|
|
101
|
-
passMaterial: Material,
|
|
102
|
-
renderTarget: WebGLRenderTarget,
|
|
103
|
-
clearColor: ColorRepresentation,
|
|
104
|
-
clearAlpha: ColorRepresentation,
|
|
105
|
-
) => void;
|
|
106
|
-
|
|
107
|
-
setSize: (width: number, height: number) => void;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export namespace SSRrPass {
|
|
111
|
-
interface OUTPUT {
|
|
112
|
-
Default: 0;
|
|
113
|
-
SSRr: 1;
|
|
114
|
-
Beauty: 3;
|
|
115
|
-
Depth: 4;
|
|
116
|
-
DepthSelects: 9;
|
|
117
|
-
NormalSelects: 5;
|
|
118
|
-
Refractive: 7;
|
|
119
|
-
Specular: 8;
|
|
120
|
-
}
|
|
121
|
-
}
|