@types/three 0.142.0 → 0.143.2
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/nodes/Nodes.d.ts +215 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +11 -0
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +17 -0
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +19 -0
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
- three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
- three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
- three/examples/jsm/nodes/core/CodeNode.d.ts +16 -0
- three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ExpressionNode.d.ts +7 -0
- three/examples/jsm/nodes/core/FunctionCallNode.d.ts +13 -0
- three/examples/jsm/nodes/core/FunctionNode.d.ts +15 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +12 -0
- three/examples/jsm/nodes/core/InstanceIndexNode.d.ts +6 -0
- three/examples/jsm/nodes/core/Node.d.ts +30 -0
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +134 -0
- three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
- three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
- three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
- three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
- three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeUtils.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeVary.d.ts +6 -0
- three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
- three/examples/jsm/nodes/core/TempNode.d.ts +8 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
- three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
- three/examples/jsm/nodes/core/VaryNode.d.ts +8 -0
- three/examples/jsm/nodes/core/constants.d.ts +77 -0
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +15 -0
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
- three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
- three/examples/jsm/nodes/functions/light/getDistanceAttenuation.d.ts +5 -0
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +12 -0
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
- three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
- three/examples/jsm/nodes/lighting/PunctualLightNode.d.ts +12 -0
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +21 -0
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +11 -0
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +16 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +15 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +19 -0
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +27 -0
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +22 -0
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
- three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +116 -0
- three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +155 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +267 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +128 -0
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +7 -0
- three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/TimerNode.d.ts +14 -0
- three/examples/jsm/objects/GroundProjectedEnv.d.ts +13 -0
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +5 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +56 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLPhysicalContextNode.d.ts +13 -0
- three/examples/jsm/textures/FlakesTexture.d.ts +3 -0
- three/index.d.ts +2 -2
- three/package.json +2 -2
- three/src/Three.d.ts +4 -1
- three/src/animation/AnimationUtils.d.ts +32 -34
- three/src/core/UniformsGroup.d.ts +27 -0
- three/src/renderers/shaders/UniformsUtils.d.ts +6 -1
- three/src/renderers/webgl/WebGLUniformsGroups.d.ts +17 -0
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
import { AnimationClip } from './AnimationClip';
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;
|
|
3
|
+
export function arraySlice(array: any, from: number, to: number): any;
|
|
4
|
+
export function convertArray(array: any, type: any, forceClone: boolean): any;
|
|
5
|
+
export function isTypedArray(object: any): boolean;
|
|
6
|
+
export function getKeyframeOrder(times: number[]): number[];
|
|
7
|
+
export function sortedArray(values: any[], stride: number, order: number[]): any[];
|
|
8
|
+
export function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @param sourceClip
|
|
12
|
+
* @param name
|
|
13
|
+
* @param startFrame
|
|
14
|
+
* @param endFrame
|
|
15
|
+
* @param [fps=30]
|
|
16
|
+
*/
|
|
17
|
+
export function subclip(
|
|
18
|
+
sourceClip: AnimationClip,
|
|
19
|
+
name: string,
|
|
20
|
+
startFrame: number,
|
|
21
|
+
endFrame: number,
|
|
22
|
+
fps?: number,
|
|
23
|
+
): AnimationClip;
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
25
|
+
/**
|
|
26
|
+
* @param targetClip
|
|
27
|
+
* @param [referenceFrame=0]
|
|
28
|
+
* @param [referenceClip=targetClip]
|
|
29
|
+
* @param [fps=30]
|
|
30
|
+
*/
|
|
31
|
+
export function makeClipAdditive(
|
|
32
|
+
targetClip: AnimationClip,
|
|
33
|
+
referenceFrame?: number,
|
|
34
|
+
referenceClip?: AnimationClip,
|
|
35
|
+
fps?: number,
|
|
36
|
+
): AnimationClip;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventDispatcher } from './EventDispatcher';
|
|
2
|
+
import { Uniform } from './Uniform';
|
|
3
|
+
|
|
4
|
+
import { Usage } from '../constants';
|
|
5
|
+
|
|
6
|
+
export class UniformsGroup extends EventDispatcher {
|
|
7
|
+
isUniformsGroup: true;
|
|
8
|
+
id: number;
|
|
9
|
+
usage: Usage;
|
|
10
|
+
uniforms: Uniform[];
|
|
11
|
+
|
|
12
|
+
constructor();
|
|
13
|
+
|
|
14
|
+
add(uniform: Uniform): this;
|
|
15
|
+
|
|
16
|
+
remove(uniform: Uniform): this;
|
|
17
|
+
|
|
18
|
+
setName(name: string): this;
|
|
19
|
+
|
|
20
|
+
setUsage(value: Usage): this;
|
|
21
|
+
|
|
22
|
+
dispose(): this;
|
|
23
|
+
|
|
24
|
+
copy(source: UniformsGroup): this;
|
|
25
|
+
|
|
26
|
+
clone(): UniformsGroup;
|
|
27
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { Uniform } from '../../core/Uniform';
|
|
2
|
+
import { UniformsGroup } from '../../core/UniformsGroup';
|
|
3
|
+
|
|
1
4
|
export function cloneUniforms(uniforms_src: any): any;
|
|
2
|
-
export function mergeUniforms(uniforms: any
|
|
5
|
+
export function mergeUniforms(uniforms: any): any;
|
|
6
|
+
|
|
7
|
+
export function cloneUniformsGroups(src: UniformsGroup[]): UniformsGroup[];
|
|
3
8
|
|
|
4
9
|
export namespace UniformsUtils {
|
|
5
10
|
export { mergeUniforms as merge, cloneUniforms as clone };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UniformsGroup } from '../../core/UniformsGroup';
|
|
2
|
+
|
|
3
|
+
import { WebGLCapabilities } from './WebGLCapabilities';
|
|
4
|
+
import { WebGLInfo } from './WebGLInfo';
|
|
5
|
+
import { WebGLProgram } from './WebGLProgram';
|
|
6
|
+
import { WebGLState } from './WebGLState';
|
|
7
|
+
|
|
8
|
+
export function WebGLUniformsGroups(
|
|
9
|
+
gl: WebGLRenderingContext,
|
|
10
|
+
info: WebGLInfo,
|
|
11
|
+
capabilities: WebGLCapabilities,
|
|
12
|
+
state: WebGLState,
|
|
13
|
+
): {
|
|
14
|
+
dispose: () => void;
|
|
15
|
+
update: (uniformsGroup: UniformsGroup, program: WebGLProgram) => void;
|
|
16
|
+
bind: (uniformsGroup: UniformsGroup, program: WebGLProgram) => void;
|
|
17
|
+
};
|