@types/three 0.141.0 → 0.143.1
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/controls/FirstPersonControls.d.ts +1 -1
- three/examples/jsm/controls/FlyControls.d.ts +1 -1
- three/examples/jsm/controls/OrbitControls.d.ts +3 -3
- three/examples/jsm/curves/NURBSUtils.d.ts +18 -20
- three/examples/jsm/loaders/GLTFLoader.d.ts +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/postprocessing/SAOPass.d.ts +1 -1
- 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/shaders/ACESFilmicToneMappingShader.d.ts +10 -0
- three/examples/jsm/textures/FlakesTexture.d.ts +3 -0
- three/examples/jsm/utils/CameraUtils.d.ts +7 -9
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +3 -5
- three/examples/jsm/utils/GeometryUtils.d.ts +23 -25
- three/examples/jsm/utils/SkeletonUtils.d.ts +16 -22
- three/index.d.ts +2 -2
- three/package.json +3 -3
- three/src/Three.d.ts +4 -1
- three/src/animation/AnimationUtils.d.ts +32 -34
- three/src/audio/AudioContext.d.ts +1 -1
- three/src/core/UniformsGroup.d.ts +27 -0
- three/src/extras/DataUtils.d.ts +2 -4
- three/src/renderers/WebGLRenderer.d.ts +0 -5
- three/src/renderers/shaders/UniformsUtils.d.ts +6 -1
- three/src/renderers/webgl/WebGLUniformsGroups.d.ts +17 -0
- three/examples/jsm/shaders/SSRrShader.d.ts +0 -48
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import { Vector3 } from '../../../src/Three';
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
function gosper(size?: number): number[];
|
|
27
|
-
}
|
|
3
|
+
export function hilbert2D(
|
|
4
|
+
center?: Vector3,
|
|
5
|
+
size?: number,
|
|
6
|
+
iterations?: number,
|
|
7
|
+
v0?: number,
|
|
8
|
+
v1?: number,
|
|
9
|
+
v2?: number,
|
|
10
|
+
v3?: number,
|
|
11
|
+
): Vector3[];
|
|
12
|
+
export function hilbert3D(
|
|
13
|
+
center?: Vector3,
|
|
14
|
+
size?: number,
|
|
15
|
+
iterations?: number,
|
|
16
|
+
v0?: number,
|
|
17
|
+
v1?: number,
|
|
18
|
+
v2?: number,
|
|
19
|
+
v3?: number,
|
|
20
|
+
v4?: number,
|
|
21
|
+
v5?: number,
|
|
22
|
+
v6?: number,
|
|
23
|
+
v7?: number,
|
|
24
|
+
): Vector3[];
|
|
25
|
+
export function gosper(size?: number): number[];
|
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
import { AnimationClip, Bone, Matrix4, Object3D, Skeleton, SkeletonHelper } from '../../../src/Three';
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
export function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): void;
|
|
3
|
+
export function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): void;
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export function retargetClip(
|
|
6
|
+
target: Skeleton | Object3D,
|
|
7
|
+
source: Skeleton | Object3D,
|
|
8
|
+
clip: AnimationClip,
|
|
9
|
+
options: {},
|
|
10
|
+
): AnimationClip;
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
export function getHelperFromSkeleton(skeleton: Skeleton): SkeletonHelper;
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
target: Object3D | Skeleton,
|
|
17
|
-
source: Object3D | Skeleton,
|
|
18
|
-
options: {},
|
|
19
|
-
): Matrix4[];
|
|
14
|
+
export function getSkeletonOffsets(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): Matrix4[];
|
|
20
15
|
|
|
21
|
-
|
|
16
|
+
export function renameBones(skeleton: Skeleton, names: {}): any;
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
export function getBones(skeleton: Skeleton | Bone[]): Bone[];
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
export function getBoneByName(name: string, skeleton: Skeleton): Bone;
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
export function getNearestBone(bone: Bone, names: {}): Bone;
|
|
28
23
|
|
|
29
|
-
|
|
24
|
+
export function findBoneTrackData(name: string, tracks: any[]): {};
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
export function getEqualsBonesNames(skeleton: Skeleton, targetSkeleton: Skeleton): string[];
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
export function clone(source: Object3D): Object3D;
|
three/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Type definitions for three 0.
|
|
1
|
+
// Type definitions for three 0.143
|
|
2
2
|
// Project: https://threejs.org/
|
|
3
3
|
// Definitions by: Josh Ellis <https://github.com/joshuaellis>
|
|
4
4
|
// Nathan Bierema <https://github.com/Methuselah96>
|
|
5
5
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
-
// Minimum TypeScript Version:
|
|
6
|
+
// Minimum TypeScript Version: 4.0
|
|
7
7
|
|
|
8
8
|
// To update three.js type definition, please make changes to the repository at:
|
|
9
9
|
// https://github.com/three-types/three-ts-types.
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.143.1",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@types/webxr": "*"
|
|
29
29
|
},
|
|
30
|
-
"typesPublisherContentHash": "
|
|
31
|
-
"typeScriptVersion": "
|
|
30
|
+
"typesPublisherContentHash": "c802edb2e06dd446a771cc7178b90024d1fbf05ab8f4a9ea2b7cf7daea5c8fa2",
|
|
31
|
+
"typeScriptVersion": "4.0"
|
|
32
32
|
}
|
three/src/Three.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export * from './animation/tracks/BooleanKeyframeTrack';
|
|
|
16
16
|
export * from './animation/PropertyMixer';
|
|
17
17
|
export * from './animation/PropertyBinding';
|
|
18
18
|
export * from './animation/KeyframeTrack';
|
|
19
|
-
|
|
19
|
+
import * as AnimationUtils from './animation/AnimationUtils';
|
|
20
|
+
export { AnimationUtils };
|
|
20
21
|
export * from './animation/AnimationObjectGroup';
|
|
21
22
|
export * from './animation/AnimationMixer';
|
|
22
23
|
export * from './animation/AnimationClip';
|
|
@@ -42,6 +43,7 @@ export * from './cameras/Camera';
|
|
|
42
43
|
* Core
|
|
43
44
|
*/
|
|
44
45
|
export * from './core/Uniform';
|
|
46
|
+
export * from './core/UniformsGroup';
|
|
45
47
|
export * from './core/InstancedBufferGeometry';
|
|
46
48
|
export * from './core/BufferGeometry';
|
|
47
49
|
export * from './core/InterleavedBufferAttribute';
|
|
@@ -207,6 +209,7 @@ export * from './renderers/webgl/WebGLShadowMap';
|
|
|
207
209
|
export * from './renderers/webgl/WebGLState';
|
|
208
210
|
export * from './renderers/webgl/WebGLTextures';
|
|
209
211
|
export * from './renderers/webgl/WebGLUniforms';
|
|
212
|
+
export * from './renderers/webgl/WebGLUniformsGroups';
|
|
210
213
|
export * from './renderers/webxr/WebXRController';
|
|
211
214
|
export * from './renderers/webxr/WebXRManager';
|
|
212
215
|
export { WebGLUtils } from './renderers/webgl/WebGLUtils.js';
|
|
@@ -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
|
+
}
|
three/src/extras/DataUtils.d.ts
CHANGED
|
@@ -127,11 +127,6 @@ export class WebGLRenderer implements Renderer {
|
|
|
127
127
|
*/
|
|
128
128
|
domElement: HTMLCanvasElement;
|
|
129
129
|
|
|
130
|
-
/**
|
|
131
|
-
* The HTML5 Canvas's 'webgl' context obtained from the canvas where the renderer will draw.
|
|
132
|
-
*/
|
|
133
|
-
context: WebGLRenderingContext;
|
|
134
|
-
|
|
135
130
|
/**
|
|
136
131
|
* Defines whether the renderer should automatically clear its output before rendering.
|
|
137
132
|
* @default true
|
|
@@ -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
|
+
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Matrix4, Vector2, IUniform, Texture } from '../../../src/Three';
|
|
2
|
-
|
|
3
|
-
export interface SSRrShader {
|
|
4
|
-
defines: {
|
|
5
|
-
MAX_STEP: number;
|
|
6
|
-
PERSPECTIVE_CAMERA: boolean;
|
|
7
|
-
SPECULAR: boolean;
|
|
8
|
-
FILL_HOLE: boolean;
|
|
9
|
-
INFINITE_THICK: boolean;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
uniforms: {
|
|
13
|
-
tDiffuse: IUniform<Texture | null>;
|
|
14
|
-
tSpecular: IUniform<Texture | null>;
|
|
15
|
-
tNormalSelects: IUniform<Texture | null>;
|
|
16
|
-
tRefractive: IUniform<Texture | null>;
|
|
17
|
-
tDepthSelects: IUniform<Texture | null>;
|
|
18
|
-
cameraNear: IUniform<number | null>;
|
|
19
|
-
cameraFar: IUniform<number | null>;
|
|
20
|
-
resolution: IUniform<Vector2>;
|
|
21
|
-
cameraProjectionMatrix: IUniform<Matrix4>;
|
|
22
|
-
cameraInverseProjectionMatrix: IUniform<Matrix4>;
|
|
23
|
-
ior: IUniform<number>;
|
|
24
|
-
cameraRange: IUniform<number>;
|
|
25
|
-
maxDistance: IUniform<number>;
|
|
26
|
-
surfDist: IUniform<number>;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
vertexShader: string;
|
|
30
|
-
|
|
31
|
-
fragmentShader: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface SSRrDepthShader {
|
|
35
|
-
defines: {
|
|
36
|
-
PERSPECTIVE_CAMERA: number;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
uniforms: {
|
|
40
|
-
tDepth: IUniform<Texture | null>;
|
|
41
|
-
cameraNear: IUniform<number | null>;
|
|
42
|
-
cameraFar: IUniform<number | null>;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
vertexShader: string;
|
|
46
|
-
|
|
47
|
-
fragmentShader: string;
|
|
48
|
-
}
|