@types/three 0.170.0 → 0.172.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 +0 -5
- three/examples/jsm/controls/ArcballControls.d.ts +6 -1
- three/examples/jsm/controls/OrbitControls.d.ts +5 -0
- three/examples/jsm/controls/TransformControls.d.ts +1 -1
- three/examples/jsm/csm/CSMShadowNode.d.ts +2 -4
- three/examples/jsm/exporters/GLTFExporter.d.ts +23 -7
- three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
- three/examples/jsm/geometries/InstancedPointsGeometry.d.ts +13 -0
- three/examples/jsm/helpers/VertexNormalsHelper.d.ts +2 -0
- three/examples/jsm/lines/LineSegments2.d.ts +3 -1
- three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +1 -1
- three/examples/jsm/modifiers/CurveModifier.d.ts +1 -1
- three/examples/jsm/modifiers/CurveModifierGPU.d.ts +1 -1
- three/examples/jsm/objects/InstancedPoints.d.ts +10 -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/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +1 -1
- three/examples/jsm/tsl/display/AfterImageNode.d.ts +2 -1
- three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -1
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +2 -2
- three/examples/jsm/tsl/display/BleachBypass.d.ts +2 -1
- three/examples/jsm/tsl/display/BloomNode.d.ts +2 -1
- three/examples/jsm/tsl/display/DenoiseNode.d.ts +3 -4
- three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +2 -1
- three/examples/jsm/tsl/display/DotScreenNode.d.ts +2 -2
- three/examples/jsm/tsl/display/FXAANode.d.ts +2 -1
- three/examples/jsm/tsl/display/FilmNode.d.ts +2 -1
- three/examples/jsm/tsl/display/GTAONode.d.ts +5 -8
- three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +2 -2
- three/examples/jsm/tsl/display/LensflareNode.d.ts +2 -2
- three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -2
- three/examples/jsm/tsl/display/MotionBlur.d.ts +2 -1
- three/examples/jsm/tsl/display/OutlineNode.d.ts +2 -2
- three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -1
- three/examples/jsm/tsl/display/PixelationPassNode.d.ts +2 -2
- three/examples/jsm/tsl/display/RGBShiftNode.d.ts +2 -1
- three/examples/jsm/tsl/display/SMAANode.d.ts +2 -1
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +2 -2
- three/examples/jsm/tsl/display/SSRNode.d.ts +2 -2
- three/examples/jsm/tsl/display/Sepia.d.ts +2 -1
- three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +2 -1
- three/examples/jsm/tsl/display/StereoCompositePassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/StereoPassNode.d.ts +2 -2
- three/examples/jsm/tsl/display/TRAAPassNode.d.ts +2 -2
- three/examples/jsm/tsl/display/TransitionNode.d.ts +2 -1
- three/examples/jsm/tsl/display/hashBlur.d.ts +2 -1
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +2 -1
- three/examples/jsm/utils/ShadowMapViewer.d.ts +2 -2
- three/package.json +4 -4
- three/src/Three.Core.d.ts +159 -0
- three/src/Three.TSL.d.ts +533 -0
- three/src/Three.WebGPU.Nodes.d.ts +14 -195
- three/src/Three.WebGPU.d.ts +14 -196
- three/src/Three.d.ts +2 -158
- three/src/animation/AnimationClip.d.ts +3 -1
- three/src/cameras/CubeCamera.d.ts +19 -2
- three/src/core/Clock.d.ts +4 -6
- three/src/core/InterleavedBuffer.d.ts +12 -0
- three/src/core/RenderTarget.d.ts +3 -5
- three/src/core/RenderTarget3D.d.ts +9 -0
- three/src/core/RenderTargetArray.d.ts +9 -0
- three/src/materials/Material.d.ts +9 -5
- three/src/materials/MeshDepthMaterial.d.ts +0 -5
- three/src/materials/MeshDistanceMaterial.d.ts +0 -5
- three/src/materials/nodes/Line2NodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +3 -0
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +6 -6
- three/src/materials/nodes/NodeMaterial.d.ts +7 -1
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +56 -0
- three/src/nodes/Nodes.d.ts +2 -7
- three/src/nodes/TSL.d.ts +10 -5
- three/src/nodes/accessors/Arrays.d.ts +7 -0
- three/src/nodes/accessors/BufferAttributeNode.d.ts +117 -0
- three/src/nodes/accessors/BufferNode.d.ts +4 -4
- three/src/nodes/accessors/BuiltinNode.d.ts +14 -0
- 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/MaterialNode.d.ts +3 -3
- three/src/nodes/accessors/ModelNode.d.ts +10 -2
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +2 -6
- three/src/nodes/accessors/StorageBufferNode.d.ts +25 -12
- three/src/nodes/accessors/StorageTextureNode.d.ts +5 -3
- three/src/nodes/accessors/TextureNode.d.ts +5 -0
- three/src/nodes/accessors/UniformArrayNode.d.ts +3 -2
- three/src/nodes/core/IndexNode.d.ts +2 -0
- three/src/nodes/core/Node.d.ts +237 -0
- three/src/nodes/core/NodeAttribute.d.ts +13 -0
- three/src/nodes/core/NodeBuilder.d.ts +1 -2
- three/src/nodes/core/NodeCache.d.ts +21 -0
- three/src/nodes/core/NodeParser.d.ts +11 -0
- three/src/nodes/core/NodeUniform.d.ts +28 -0
- three/src/nodes/core/NodeUtils.d.ts +7 -0
- three/src/nodes/core/NodeVar.d.ts +12 -0
- three/src/nodes/core/NodeVarying.d.ts +14 -0
- three/src/nodes/core/StackNode.d.ts +6 -1
- three/src/nodes/core/StructTypeNode.d.ts +19 -1
- three/src/nodes/core/UniformNode.d.ts +44 -0
- three/src/nodes/core/VaryingNode.d.ts +3 -0
- three/src/nodes/core/constants.d.ts +41 -0
- three/src/nodes/display/BlendModes.d.ts +32 -0
- three/src/nodes/display/PassNode.d.ts +1 -1
- three/src/nodes/display/ScreenNode.d.ts +5 -0
- three/src/nodes/display/ViewportDepthNode.d.ts +3 -1
- three/src/nodes/fog/Fog.d.ts +26 -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 +6 -1
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +19 -0
- three/src/nodes/lighting/AnalyticLightNode.d.ts +11 -0
- three/src/nodes/lighting/LightsNode.d.ts +2 -2
- three/src/nodes/lighting/PointLightNode.d.ts +3 -0
- three/src/nodes/lighting/PointShadowNode.d.ts +30 -0
- three/src/nodes/lighting/ShadowBaseNode.d.ts +15 -0
- three/src/nodes/lighting/ShadowNode.d.ts +28 -4
- three/src/nodes/math/MathNode.d.ts +13 -4
- 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 +51 -16
- three/src/nodes/utils/EquirectUVNode.d.ts +2 -2
- three/src/nodes/utils/LoopNode.d.ts +23 -2
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/objects/BatchedMesh.d.ts +4 -4
- three/src/objects/ClippingGroup.d.ts +41 -0
- three/src/renderers/WebGLRenderer.d.ts +10 -8
- three/src/renderers/common/Animation.d.ts +41 -4
- three/src/renderers/common/Attributes.d.ts +31 -0
- three/src/renderers/common/Backend.d.ts +11 -0
- three/src/renderers/common/Background.d.ts +22 -0
- three/src/renderers/common/BindGroup.d.ts +15 -0
- three/src/renderers/common/Binding.d.ts +24 -0
- three/src/renderers/common/Bindings.d.ts +54 -0
- three/src/renderers/common/Buffer.d.ts +31 -0
- three/src/renderers/common/BufferUtils.d.ts +26 -0
- three/src/renderers/common/BundleGroup.d.ts +22 -0
- three/src/renderers/common/ChainMap.d.ts +31 -1
- three/src/renderers/common/ClippingContext.d.ts +61 -14
- three/src/renderers/common/Color4.d.ts +36 -0
- three/src/renderers/common/ComputePipeline.d.ts +12 -0
- three/src/renderers/common/CubeRenderTarget.d.ts +13 -0
- three/src/renderers/common/DataMap.d.ts +30 -0
- three/src/renderers/common/Geometries.d.ts +52 -0
- three/src/renderers/common/Info.d.ts +27 -0
- three/src/renderers/common/Pipeline.d.ts +11 -0
- three/src/renderers/common/Pipelines.d.ts +104 -0
- three/src/renderers/common/ProgrammableStage.d.ts +19 -1
- three/src/renderers/common/RenderBundle.d.ts +15 -4
- three/src/renderers/common/RenderBundles.d.ts +20 -2
- three/src/renderers/common/RenderContext.d.ts +22 -0
- three/src/renderers/common/RenderContexts.d.ts +42 -3
- three/src/renderers/common/RenderList.d.ts +90 -0
- three/src/renderers/common/RenderLists.d.ts +21 -0
- three/src/renderers/common/RenderObject.d.ts +160 -5
- three/src/renderers/common/RenderObjects.d.ts +56 -0
- three/src/renderers/common/RenderPipeline.d.ts +13 -0
- three/src/renderers/common/Renderer.d.ts +596 -6
- three/src/renderers/common/{PostProcessingUtils.d.ts → RendererUtils.d.ts} +16 -4
- three/src/renderers/common/StorageBufferAttribute.d.ts +1 -1
- three/src/renderers/common/Textures.d.ts +66 -0
- three/src/renderers/common/Uniform.d.ts +106 -0
- three/src/renderers/common/UniformBuffer.d.ts +12 -0
- three/src/renderers/common/UniformsGroup.d.ts +104 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +15 -1
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +30 -0
- three/src/renderers/common/nodes/NodeLibrary.d.ts +73 -4
- three/src/renderers/common/nodes/NodeUniform.d.ts +161 -0
- three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +14 -2
- three/src/renderers/common/nodes/Nodes.d.ts +185 -11
- three/src/renderers/webgl/WebGLState.d.ts +1 -1
- three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +10 -0
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +11 -0
- three/src/textures/Data3DTexture.d.ts +4 -2
- three/src/textures/DataArrayTexture.d.ts +1 -1
- three/src/textures/DataTexture.d.ts +7 -2
- three/src/textures/Texture.d.ts +3 -0
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +0 -99
- three/examples/jsm/animation/MMDPhysics.d.ts +0 -128
- three/examples/jsm/exporters/MMDExporter.d.ts +0 -11
- three/examples/jsm/loaders/MMDLoader.d.ts +0 -60
- three/examples/jsm/shaders/MMDToonShader.d.ts +0 -15
- three/src/Three.Legacy.d.ts +0 -20
- three/src/nodes/core/UniformGroup.d.ts +0 -7
- three/src/nodes/display/BlendMode.d.ts +0 -10
- three/src/nodes/fog/FogExp2Node.d.ts +0 -14
- three/src/nodes/fog/FogNode.d.ts +0 -20
- three/src/nodes/fog/FogRangeNode.d.ts +0 -19
- three/src/nodes/lighting/LightNode.d.ts +0 -18
- three/src/textures/types.d.ts +0 -9
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { Bone, Euler, Matrix4, MeshBasicMaterial, Object3D, Quaternion, SkinnedMesh, Vector3 } from "three";
|
|
2
|
-
|
|
3
|
-
export interface MMDPhysicsParameter {
|
|
4
|
-
unitStep?: number | undefined;
|
|
5
|
-
maxStepNum?: number | undefined;
|
|
6
|
-
gravity?: Vector3 | undefined;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated The module has been deprecated and will be removed with r172. Please migrate to
|
|
11
|
-
* https://github.com/takahirox/three-mmd-loader instead.
|
|
12
|
-
*/
|
|
13
|
-
export class MMDPhysics {
|
|
14
|
-
constructor(
|
|
15
|
-
mesh: SkinnedMesh,
|
|
16
|
-
rigidBodyParams: object[],
|
|
17
|
-
constraintParams?: object[],
|
|
18
|
-
params?: MMDPhysicsParameter,
|
|
19
|
-
);
|
|
20
|
-
manager: ResourceManager;
|
|
21
|
-
mesh: SkinnedMesh;
|
|
22
|
-
unitStep: number;
|
|
23
|
-
maxStepNum: number;
|
|
24
|
-
gravity: Vector3;
|
|
25
|
-
world: null;
|
|
26
|
-
bodies: RigidBody[];
|
|
27
|
-
constraints: Constraint[];
|
|
28
|
-
|
|
29
|
-
update(delta: number): this;
|
|
30
|
-
reset(): this;
|
|
31
|
-
warmup(cycles: number): this;
|
|
32
|
-
setGravity(gravity: Vector3): this;
|
|
33
|
-
createHelper(): MMDPhysicsHelper;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export class ResourceManager {
|
|
37
|
-
constructor();
|
|
38
|
-
threeVector3s: Vector3[];
|
|
39
|
-
threeMatrix4s: Matrix4[];
|
|
40
|
-
threeQuaternions: Quaternion[];
|
|
41
|
-
threeEulers: Euler[];
|
|
42
|
-
transforms: object[];
|
|
43
|
-
quaternions: object[];
|
|
44
|
-
vector3s: object[];
|
|
45
|
-
|
|
46
|
-
allocThreeVector3(): void;
|
|
47
|
-
freeThreeVector3(v: Vector3): void;
|
|
48
|
-
allocThreeMatrix4(): void;
|
|
49
|
-
freeThreeMatrix4(m: Matrix4): void;
|
|
50
|
-
allocThreeQuaternion(): void;
|
|
51
|
-
freeThreeQuaternion(q: Quaternion): void;
|
|
52
|
-
allocThreeEuler(): void;
|
|
53
|
-
freeThreeEuler(e: Euler): void;
|
|
54
|
-
allocTransform(): void;
|
|
55
|
-
freeTransform(t: object): void;
|
|
56
|
-
allocQuaternion(): void;
|
|
57
|
-
freeQuaternion(q: object): void;
|
|
58
|
-
allocVector3(): void;
|
|
59
|
-
freeVector3(v: object): void;
|
|
60
|
-
setIdentity(): void;
|
|
61
|
-
getBasis(t: object): object;
|
|
62
|
-
getBasisAsMatrix3(t: object): object;
|
|
63
|
-
getOrigin(t: object): object;
|
|
64
|
-
setOrigin(t: object, v: object): void;
|
|
65
|
-
copyOrigin(t1: object, t2: object): void;
|
|
66
|
-
setBasis(t: object, q: object): void;
|
|
67
|
-
setBasisFromMatrix3(t: object, m: object): void;
|
|
68
|
-
setOriginFromArray3(t: object, a: number[]): void;
|
|
69
|
-
setOriginFromThreeVector3(t: object, v: Vector3): void;
|
|
70
|
-
setBasisFromArray3(t: object, a: number[]): void;
|
|
71
|
-
setBasisFromThreeQuaternion(t: object, a: Quaternion): void;
|
|
72
|
-
multiplyTransforms(t1: object, t2: object): object;
|
|
73
|
-
inverseTransform(t: object): object;
|
|
74
|
-
multiplyMatrices3(m1: object, m2: object): object;
|
|
75
|
-
addVector3(v1: object, v2: object): object;
|
|
76
|
-
dotVectors3(v1: object, v2: object): number;
|
|
77
|
-
rowOfMatrix3(m: object, i: number): object;
|
|
78
|
-
columnOfMatrix3(m: object, i: number): object;
|
|
79
|
-
negativeVector3(v: object): object;
|
|
80
|
-
multiplyMatrix3ByVector3(m: object, v: object): object;
|
|
81
|
-
transposeMatrix3(m: object): object;
|
|
82
|
-
quaternionToMatrix3(q: object): object;
|
|
83
|
-
matrix3ToQuaternion(m: object): object;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export class RigidBody {
|
|
87
|
-
constructor(mesh: SkinnedMesh, world: object, params: object, manager: ResourceManager);
|
|
88
|
-
mesh: SkinnedMesh;
|
|
89
|
-
world: object;
|
|
90
|
-
params: object;
|
|
91
|
-
manager: ResourceManager;
|
|
92
|
-
|
|
93
|
-
body: object;
|
|
94
|
-
bone: Bone;
|
|
95
|
-
boneOffsetForm: object;
|
|
96
|
-
boneOffsetFormInverse: object;
|
|
97
|
-
|
|
98
|
-
reset(): this;
|
|
99
|
-
updateFromBone(): this;
|
|
100
|
-
updateBone(): this;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export class Constraint {
|
|
104
|
-
constructor(
|
|
105
|
-
mesh: SkinnedMesh,
|
|
106
|
-
world: object,
|
|
107
|
-
bodyA: RigidBody,
|
|
108
|
-
bodyB: RigidBody,
|
|
109
|
-
params: object,
|
|
110
|
-
manager: ResourceManager,
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
mesh: SkinnedMesh;
|
|
114
|
-
world: object;
|
|
115
|
-
bodyA: RigidBody;
|
|
116
|
-
bodyB: RigidBody;
|
|
117
|
-
params: object;
|
|
118
|
-
manager: ResourceManager;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export class MMDPhysicsHelper extends Object3D {
|
|
122
|
-
mesh: SkinnedMesh;
|
|
123
|
-
physics: MMDPhysics;
|
|
124
|
-
materials: [MeshBasicMaterial, MeshBasicMaterial, MeshBasicMaterial];
|
|
125
|
-
|
|
126
|
-
constructor(mesh: SkinnedMesh, physics: MMDPhysics);
|
|
127
|
-
dispose(): void;
|
|
128
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Object3D } from "three";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated The module has been deprecated and will be removed with r172. Please migrate to
|
|
5
|
-
* https://github.com/takahirox/three-mmd-loader instead.
|
|
6
|
-
*/
|
|
7
|
-
export class MMDExporter {
|
|
8
|
-
constructor();
|
|
9
|
-
|
|
10
|
-
parseVpd(skin: Object3D, outputShiftJis: boolean, useOriginalBones: boolean): [] | Uint8Array;
|
|
11
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { AnimationClip, Camera, FileLoader, Loader, LoadingManager, SkinnedMesh } from "three";
|
|
2
|
-
|
|
3
|
-
export interface MMDLoaderAnimationObject {
|
|
4
|
-
animation: AnimationClip;
|
|
5
|
-
mesh: SkinnedMesh;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated The module has been deprecated and will be removed with r172. Please migrate to
|
|
10
|
-
* https://github.com/takahirox/three-mmd-loader instead.
|
|
11
|
-
*/
|
|
12
|
-
export class MMDLoader extends Loader<SkinnedMesh> {
|
|
13
|
-
constructor(manager?: LoadingManager);
|
|
14
|
-
animationBuilder: object;
|
|
15
|
-
animationPath: string;
|
|
16
|
-
loader: FileLoader;
|
|
17
|
-
meshBuilder: object;
|
|
18
|
-
parser: object | null;
|
|
19
|
-
|
|
20
|
-
loadAnimation(
|
|
21
|
-
url: string,
|
|
22
|
-
object: SkinnedMesh | Camera,
|
|
23
|
-
onLoad: (object: SkinnedMesh | AnimationClip) => void,
|
|
24
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
25
|
-
onError?: (event: ErrorEvent) => void,
|
|
26
|
-
): void;
|
|
27
|
-
loadPMD(
|
|
28
|
-
url: string,
|
|
29
|
-
onLoad: (object: object) => void,
|
|
30
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
31
|
-
onError?: (event: ErrorEvent) => void,
|
|
32
|
-
): void;
|
|
33
|
-
loadPMX(
|
|
34
|
-
url: string,
|
|
35
|
-
onLoad: (object: object) => void,
|
|
36
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
37
|
-
onError?: (event: ErrorEvent) => void,
|
|
38
|
-
): void;
|
|
39
|
-
loadVMD(
|
|
40
|
-
url: string,
|
|
41
|
-
onLoad: (object: object) => void,
|
|
42
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
43
|
-
onError?: (event: ErrorEvent) => void,
|
|
44
|
-
): void;
|
|
45
|
-
loadVPD(
|
|
46
|
-
url: string,
|
|
47
|
-
isUnicode: boolean,
|
|
48
|
-
onLoad: (object: object) => void,
|
|
49
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
50
|
-
onError?: (event: ErrorEvent) => void,
|
|
51
|
-
): void;
|
|
52
|
-
loadWithAnimation(
|
|
53
|
-
url: string,
|
|
54
|
-
vmdUrl: string | string[],
|
|
55
|
-
onLoad: (object: MMDLoaderAnimationObject) => void,
|
|
56
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
57
|
-
onError?: (event: ErrorEvent) => void,
|
|
58
|
-
): void;
|
|
59
|
-
setAnimationPath(animationPath: string): this;
|
|
60
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IUniform } from "three";
|
|
2
|
-
|
|
3
|
-
export const MMDToonShader: {
|
|
4
|
-
name: string;
|
|
5
|
-
defines: {
|
|
6
|
-
TOON: boolean;
|
|
7
|
-
MATCAP: boolean;
|
|
8
|
-
MATCAP_BLENDING_ADD: boolean;
|
|
9
|
-
};
|
|
10
|
-
uniforms: {
|
|
11
|
-
[key: string]: IUniform;
|
|
12
|
-
};
|
|
13
|
-
vertexShader: string;
|
|
14
|
-
fragmentShader: string;
|
|
15
|
-
};
|
three/src/Three.Legacy.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { RenderTargetOptions } from "./core/RenderTarget.js";
|
|
2
|
-
import { WebGLRenderTarget } from "./renderers/WebGLRenderTarget.js";
|
|
3
|
-
import { Texture } from "./textures/Texture.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.
|
|
7
|
-
*/
|
|
8
|
-
export class WebGLMultipleRenderTargets extends WebGLRenderTarget<Texture[]> {
|
|
9
|
-
readonly isWebGLMultipleRenderTargets: true;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.
|
|
13
|
-
* @param width The width of the render target.
|
|
14
|
-
* @param height The height of the render target.
|
|
15
|
-
* @param count The number of render targets.
|
|
16
|
-
* @param options object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans.
|
|
17
|
-
* For an explanation of the texture parameters see {@link Texture}.
|
|
18
|
-
*/
|
|
19
|
-
constructor(width?: number, height?: number, count?: number, options?: RenderTargetOptions);
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
-
import FogNode from "./FogNode.js";
|
|
4
|
-
|
|
5
|
-
declare class FogExp2Node extends FogNode {
|
|
6
|
-
isFogExp2Node: true;
|
|
7
|
-
densityNode: Node;
|
|
8
|
-
|
|
9
|
-
constructor(colorNode: Node, densityNode: Node);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default FogExp2Node;
|
|
13
|
-
|
|
14
|
-
export const densityFog: (colorNode: Node, densityNode: Node) => ShaderNodeObject<FogExp2Node>;
|
three/src/nodes/fog/FogNode.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Node from "../core/Node.js";
|
|
2
|
-
import NodeBuilder from "../core/NodeBuilder.js";
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
|
-
|
|
5
|
-
declare class FogNode extends Node {
|
|
6
|
-
isFogNode: true;
|
|
7
|
-
colorNode: Node | null;
|
|
8
|
-
factorNode: Node | null;
|
|
9
|
-
|
|
10
|
-
constructor(colorNode: Node | null, factorNode: Node | null);
|
|
11
|
-
|
|
12
|
-
getViewZNode(builder: NodeBuilder): Node;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default FogNode;
|
|
16
|
-
|
|
17
|
-
export const fog: (
|
|
18
|
-
colorNode: NodeRepresentation | null,
|
|
19
|
-
factorNode: NodeRepresentation | null,
|
|
20
|
-
) => ShaderNodeObject<FogNode>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Node from "../core/Node.js";
|
|
2
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
-
import FogNode from "./FogNode.js";
|
|
4
|
-
|
|
5
|
-
declare class FogRangeNode extends FogNode {
|
|
6
|
-
isFogRangeNode: true;
|
|
7
|
-
nearNode: Node | null;
|
|
8
|
-
farNode: Node | null;
|
|
9
|
-
|
|
10
|
-
constructor(colorNode: Node | null, nearNode: Node | null, farNode: Node | null);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default FogRangeNode;
|
|
14
|
-
|
|
15
|
-
export const rangeFog: (
|
|
16
|
-
colorNode: NodeRepresentation | null,
|
|
17
|
-
nearNode: NodeRepresentation | null,
|
|
18
|
-
farNode: NodeRepresentation | null,
|
|
19
|
-
) => ShaderNodeObject<FogRangeNode>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Light } from "../../lights/Light.js";
|
|
2
|
-
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
|
-
|
|
5
|
-
export type LightNodeScope = typeof LightNode.TARGET_DIRECTION;
|
|
6
|
-
|
|
7
|
-
declare class LightNode extends Node {
|
|
8
|
-
scope: LightNodeScope;
|
|
9
|
-
light: Light;
|
|
10
|
-
|
|
11
|
-
constructor(scope?: LightNodeScope, light?: Light | null);
|
|
12
|
-
|
|
13
|
-
static TARGET_DIRECTION: "targetDirection";
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default LightNode;
|
|
17
|
-
|
|
18
|
-
export const lightTargetDirection: (light?: Light | null) => ShaderNodeObject<LightNode>;
|