@types/three 0.157.2 → 0.158.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/Addons.d.ts +290 -0
- three/examples/jsm/controls/OrbitControls.d.ts +18 -0
- three/examples/jsm/libs/lil-gui.module.min.d.ts +5 -5
- three/examples/jsm/lights/IESSpotLight.d.ts +5 -0
- three/examples/jsm/loaders/IESLoader.d.ts +5 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +2 -1
- three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
- three/examples/jsm/loaders/PCDLoader.d.ts +3 -3
- three/examples/jsm/math/Capsule.d.ts +0 -1
- three/examples/jsm/misc/MD2CharacterComplex.d.ts +9 -1
- three/examples/jsm/objects/BatchedMesh.d.ts +57 -0
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +1 -0
- three/examples/jsm/objects/Refractor.d.ts +2 -1
- three/examples/jsm/physics/AmmoPhysics.d.ts +2 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +2 -1
- three/examples/jsm/renderers/SVGRenderer.d.ts +2 -1
- three/examples/jsm/renderers/common/Backend.d.ts +15 -0
- three/examples/jsm/renderers/common/Info.d.ts +15 -0
- three/examples/jsm/renderers/common/Renderer.d.ts +42 -0
- three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +9 -0
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +1 -0
- three/examples/jsm/shaders/AfterimageShader.d.ts +1 -0
- three/examples/jsm/shaders/BasicShader.d.ts +1 -0
- three/examples/jsm/shaders/BlendShader.d.ts +1 -0
- three/examples/jsm/shaders/BokehShader.d.ts +1 -0
- three/examples/jsm/shaders/BokehShader2.d.ts +2 -0
- three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -0
- three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -0
- three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -0
- three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -0
- three/examples/jsm/shaders/ExposureShader.d.ts +11 -0
- three/examples/jsm/shaders/FXAAShader.d.ts +1 -0
- three/examples/jsm/shaders/FocusShader.d.ts +1 -0
- three/examples/jsm/shaders/FreiChenShader.d.ts +1 -0
- three/examples/jsm/shaders/GodRaysShader.d.ts +4 -0
- three/examples/jsm/shaders/HalftoneShader.d.ts +1 -0
- three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -0
- three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -0
- three/examples/jsm/shaders/KaleidoShader.d.ts +1 -0
- three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -0
- three/examples/jsm/shaders/LuminosityShader.d.ts +1 -0
- three/examples/jsm/shaders/MMDToonShader.d.ts +15 -0
- three/examples/jsm/shaders/MirrorShader.d.ts +1 -0
- three/examples/jsm/shaders/NormalMapShader.d.ts +1 -0
- three/examples/jsm/shaders/OutputShader.d.ts +1 -0
- three/examples/jsm/shaders/SAOShader.d.ts +1 -0
- three/examples/jsm/shaders/SMAAShader.d.ts +3 -0
- three/examples/jsm/shaders/SSAOShader.d.ts +3 -0
- three/examples/jsm/shaders/SSRShader.d.ts +3 -0
- three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -0
- three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -0
- three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -0
- three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -0
- three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -0
- three/examples/jsm/shaders/VelocityShader.d.ts +1 -0
- three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -0
- three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -0
- three/examples/jsm/utils/GPUStatsPanel.d.ts +12 -0
- three/examples/jsm/utils/TextureUtils.d.ts +3 -0
- three/examples/jsm/utils/WorkerPool.d.ts +26 -0
- three/examples/jsm/webxr/XRButton.d.ts +1 -1
- three/examples/jsm/webxr/XREstimatedLight.d.ts +32 -0
- three/package.json +3 -2
- three/src/cameras/CubeCamera.d.ts +1 -2
- three/src/constants.d.ts +21 -10
- three/src/core/Object3D.d.ts +4 -4
- three/src/core/Raycaster.d.ts +1 -0
- three/src/extras/core/Curve.d.ts +1 -1
- three/src/geometries/CapsuleGeometry.d.ts +1 -1
- three/src/helpers/AxesHelper.d.ts +2 -2
- three/src/helpers/Box3Helper.d.ts +2 -2
- three/src/lights/Light.d.ts +1 -2
- three/src/materials/Material.d.ts +20 -2
- three/src/materials/MeshPhysicalMaterial.d.ts +8 -6
- three/src/math/ColorManagement.d.ts +1 -1
- three/src/math/Matrix4.d.ts +2 -1
- three/src/objects/SkinnedMesh.d.ts +9 -8
- three/src/renderers/WebGLRenderer.d.ts +12 -2
- three/src/scenes/Scene.d.ts +2 -2
- three/src/textures/DepthTexture.d.ts +3 -3
- three/src/textures/Texture.d.ts +2 -2
|
@@ -27,12 +27,14 @@ export interface BokehShaderUniforms {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export const BokehShader: {
|
|
30
|
+
name: string;
|
|
30
31
|
uniforms: BokehShaderUniforms;
|
|
31
32
|
vertexShader: string;
|
|
32
33
|
fragmentShader: string;
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
export const BokehDepthShader: {
|
|
37
|
+
name: string;
|
|
36
38
|
uniforms: {
|
|
37
39
|
mNear: IUniform;
|
|
38
40
|
mFar: IUniform;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IUniform, Texture } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export const ExposureShader: {
|
|
4
|
+
name: 'ExposureShader';
|
|
5
|
+
uniforms: {
|
|
6
|
+
tDiffuse: IUniform<Texture | null>;
|
|
7
|
+
exposure: IUniform<number>;
|
|
8
|
+
};
|
|
9
|
+
vertexShader: string;
|
|
10
|
+
fragmentShader: string;
|
|
11
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IUniform } from '../../../src/Three.js';
|
|
2
2
|
|
|
3
3
|
export const GodRaysDepthMaskShader: {
|
|
4
|
+
name: string;
|
|
4
5
|
uniforms: {
|
|
5
6
|
tInput: IUniform;
|
|
6
7
|
};
|
|
@@ -9,6 +10,7 @@ export const GodRaysDepthMaskShader: {
|
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
export const GodRaysGenerateShader: {
|
|
13
|
+
name: string;
|
|
12
14
|
uniforms: {
|
|
13
15
|
tInput: IUniform;
|
|
14
16
|
fStepSize: IUniform;
|
|
@@ -19,6 +21,7 @@ export const GodRaysGenerateShader: {
|
|
|
19
21
|
};
|
|
20
22
|
|
|
21
23
|
export const GodRaysCombineShader: {
|
|
24
|
+
name: string;
|
|
22
25
|
uniforms: {
|
|
23
26
|
tColors: IUniform;
|
|
24
27
|
tGodRays: IUniform;
|
|
@@ -29,6 +32,7 @@ export const GodRaysCombineShader: {
|
|
|
29
32
|
};
|
|
30
33
|
|
|
31
34
|
export const GodRaysFakeSunShader: {
|
|
35
|
+
name: string;
|
|
32
36
|
uniforms: {
|
|
33
37
|
vSunPositionScreenSpace: IUniform;
|
|
34
38
|
fAspect: IUniform;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IUniform } from '../../../src/Three.js';
|
|
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
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IUniform } from '../../../src/Three.js';
|
|
2
2
|
|
|
3
3
|
export const SMAAEdgesShader: {
|
|
4
|
+
name: string;
|
|
4
5
|
defines: {
|
|
5
6
|
SMAA_THRESHOLD: string;
|
|
6
7
|
};
|
|
@@ -13,6 +14,7 @@ export const SMAAEdgesShader: {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export const SMAAWeightsShader: {
|
|
17
|
+
name: string;
|
|
16
18
|
defines: {
|
|
17
19
|
SMAA_MAX_SEARCH_STEPS: string;
|
|
18
20
|
SMAA_AREATEX_MAX_DISTANCE: string;
|
|
@@ -30,6 +32,7 @@ export const SMAAWeightsShader: {
|
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
export const SMAABlendShader: {
|
|
35
|
+
name: string;
|
|
33
36
|
uniforms: {
|
|
34
37
|
tDiffuse: IUniform;
|
|
35
38
|
tColor: IUniform;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IUniform } from '../../../src/Three.js';
|
|
2
2
|
|
|
3
3
|
export const SSAOShader: {
|
|
4
|
+
name: string;
|
|
4
5
|
defines: {
|
|
5
6
|
PERSPECTIVE_CAMERA: number;
|
|
6
7
|
KERNEL_SIZE: number;
|
|
@@ -24,6 +25,7 @@ export const SSAOShader: {
|
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export const SSAODepthShader: {
|
|
28
|
+
name: string;
|
|
27
29
|
defines: {
|
|
28
30
|
PERSPECTIVE_CAMERA: number;
|
|
29
31
|
};
|
|
@@ -37,6 +39,7 @@ export const SSAODepthShader: {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
export const SSAOBlurShader: {
|
|
42
|
+
name: string;
|
|
40
43
|
uniforms: {
|
|
41
44
|
tDiffuse: IUniform;
|
|
42
45
|
resolution: IUniform;
|
|
@@ -6,6 +6,7 @@ import { Matrix4, Vector2, Texture, IUniform } from '../../../src/Three.js';
|
|
|
6
6
|
|
|
7
7
|
export const SSRShader: SSRShader;
|
|
8
8
|
export interface SSRShader {
|
|
9
|
+
name: string;
|
|
9
10
|
defines: {
|
|
10
11
|
MAX_STEP: number;
|
|
11
12
|
isPerspectiveCamera: boolean;
|
|
@@ -35,6 +36,7 @@ export interface SSRShader {
|
|
|
35
36
|
|
|
36
37
|
export const SSRDepthShader: SSRDepthShader;
|
|
37
38
|
export interface SSRDepthShader {
|
|
39
|
+
name: string;
|
|
38
40
|
defines: {
|
|
39
41
|
PERSPECTIVE_CAMERA: number;
|
|
40
42
|
};
|
|
@@ -49,6 +51,7 @@ export interface SSRDepthShader {
|
|
|
49
51
|
|
|
50
52
|
export const SSRBlurShader: SSRBlurShader;
|
|
51
53
|
export interface SSRBlurShader {
|
|
54
|
+
name: string;
|
|
52
55
|
uniforms: {
|
|
53
56
|
tDiffuse: IUniform<Texture | null>;
|
|
54
57
|
resolution: IUniform<Vector2>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Stats from '../libs/stats.module.js';
|
|
2
|
+
|
|
3
|
+
export class GPUStatsPanel extends Stats.Panel {
|
|
4
|
+
context: WebGLRenderingContext | WebGL2RenderingContext;
|
|
5
|
+
extension: unknown;
|
|
6
|
+
maxTime: number;
|
|
7
|
+
activeQueries: number;
|
|
8
|
+
startQuery: () => void;
|
|
9
|
+
endQuery: () => void;
|
|
10
|
+
|
|
11
|
+
constructor(context: WebGLRenderingContext | WebGL2RenderingContext, name?: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Deepkolos / https://github.com/deepkolos
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export class WorkerPool {
|
|
6
|
+
pool: number;
|
|
7
|
+
quene: Array<{
|
|
8
|
+
resolve: (e: any) => void;
|
|
9
|
+
msg: any;
|
|
10
|
+
transfer: Array<Transferable>;
|
|
11
|
+
}>;
|
|
12
|
+
workers: Array<Worker>;
|
|
13
|
+
workersResolve: Array<(e: any) => void>;
|
|
14
|
+
workerStatus: number;
|
|
15
|
+
|
|
16
|
+
constructor(pool?: number);
|
|
17
|
+
|
|
18
|
+
_initWorker(workerId: number): void;
|
|
19
|
+
workerCreator(): Worker;
|
|
20
|
+
_getIdleWorker(): void;
|
|
21
|
+
_onMessage(workerId: number, msg: any): void;
|
|
22
|
+
setWorkerCreator(workerCreator: () => Worker): void;
|
|
23
|
+
setWorkerLimit(pool: number): void;
|
|
24
|
+
postMessage(msg: any, transfer?: Array<Transferable>): Promise<MessageEvent>;
|
|
25
|
+
dispose(): void;
|
|
26
|
+
}
|
|
@@ -2,5 +2,5 @@ import { WebGLRenderer } from '../../../src/Three.js';
|
|
|
2
2
|
|
|
3
3
|
// tslint:disable-next-line:no-unnecessary-class
|
|
4
4
|
export class XRButton {
|
|
5
|
-
static createButton(renderer: WebGLRenderer): HTMLElement;
|
|
5
|
+
static createButton(renderer: WebGLRenderer, sessionInit?: XRSessionInit): HTMLElement;
|
|
6
6
|
}
|
|
@@ -24,14 +24,46 @@ export class SessionLightProbe {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface XREstimatedLightEventMap extends Object3DEventMap {
|
|
27
|
+
/**
|
|
28
|
+
* Fires when the estimated lighting values start being updated.
|
|
29
|
+
*/
|
|
27
30
|
estimationstart: {};
|
|
31
|
+
/**
|
|
32
|
+
* Fires when the estimated lighting values stop being updated.
|
|
33
|
+
*/
|
|
28
34
|
estimationend: {};
|
|
29
35
|
}
|
|
30
36
|
|
|
37
|
+
/**
|
|
38
|
+
* XREstimatedLight uses WebXR's light estimation to create a light probe, a directional light, and (optionally) an
|
|
39
|
+
* environment map that model the user's real-world environment and lighting.
|
|
40
|
+
* As WebXR updates the light and environment estimation, XREstimatedLight automatically updates the light probe,
|
|
41
|
+
* directional light, and environment map.
|
|
42
|
+
*
|
|
43
|
+
* It's important to specify `light-estimation` as an optional or required feature when creating the WebXR session,
|
|
44
|
+
* otherwise the light estimation can't work.
|
|
45
|
+
*
|
|
46
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/API/XRLightProbe#browser_compatibility here} for browser
|
|
47
|
+
* compatibility information, as this is still an experimental feature in WebXR.
|
|
48
|
+
*
|
|
49
|
+
* To use this, as with all files in the /examples directory, you will have to include the file separately in your HTML.
|
|
50
|
+
*/
|
|
31
51
|
export class XREstimatedLight extends Group<XREstimatedLightEventMap> {
|
|
32
52
|
lightProbe: LightProbe;
|
|
53
|
+
|
|
33
54
|
directionalLight: DirectionalLight;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The environment map estimated by WebXR. This is only available if environmentEstimation is `true`.
|
|
58
|
+
*
|
|
59
|
+
* It can be used as the {@link Scene.environment}, for {@link MeshStandardMaterial.envMap}, or as the
|
|
60
|
+
* {@link Scene.background}.
|
|
61
|
+
*/
|
|
34
62
|
environment: Texture;
|
|
35
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @param renderer The renderer used to render the Scene. Mainly used to interact with WebXRManager.
|
|
66
|
+
* @param environmentEstimation If `true`, use WebXR to estimate an environment map.
|
|
67
|
+
*/
|
|
36
68
|
constructor(renderer: WebGLRenderer, environmentEstimation?: boolean);
|
|
37
69
|
}
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.158.1",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"./examples/fonts/*": "./examples/fonts/*",
|
|
28
28
|
"./examples/jsm/*": "./examples/jsm/*",
|
|
29
|
+
"./addons": "./examples/jsm/Addons.js",
|
|
29
30
|
"./addons/*": "./examples/jsm/*",
|
|
30
31
|
"./src/*": "./src/*",
|
|
31
32
|
"./nodes": "./examples/jsm/nodes/Nodes.js",
|
|
@@ -43,6 +44,6 @@
|
|
|
43
44
|
"fflate": "~0.6.10",
|
|
44
45
|
"meshoptimizer": "~0.18.1"
|
|
45
46
|
},
|
|
46
|
-
"typesPublisherContentHash": "
|
|
47
|
+
"typesPublisherContentHash": "c899477bcb4613cebb36e4f1a475fdaffd37e5fb970f81884efc36ba7c395649",
|
|
47
48
|
"typeScriptVersion": "4.5"
|
|
48
49
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebGLCubeRenderTarget } from '../renderers/WebGLCubeRenderTarget.js';
|
|
2
|
-
import { Scene } from '../scenes/Scene.js';
|
|
3
2
|
import { WebGLRenderer } from '../renderers/WebGLRenderer.js';
|
|
4
3
|
import { Object3D } from '../core/Object3D.js';
|
|
5
4
|
import { CoordinateSystem } from '../constants.js';
|
|
@@ -65,5 +64,5 @@ export class CubeCamera extends Object3D {
|
|
|
65
64
|
* @param renderer The current WebGL renderer
|
|
66
65
|
* @param scene The current scene
|
|
67
66
|
*/
|
|
68
|
-
update(renderer: WebGLRenderer, scene:
|
|
67
|
+
update(renderer: WebGLRenderer, scene: Object3D): void;
|
|
69
68
|
}
|
three/src/constants.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type BlendingEquation =
|
|
|
74
74
|
| typeof MinEquation
|
|
75
75
|
| typeof MaxEquation;
|
|
76
76
|
|
|
77
|
-
// custom blending
|
|
77
|
+
// custom blending factors
|
|
78
78
|
export const ZeroFactor: 200;
|
|
79
79
|
export const OneFactor: 201;
|
|
80
80
|
export const SrcColorFactor: 202;
|
|
@@ -85,6 +85,11 @@ export const DstAlphaFactor: 206;
|
|
|
85
85
|
export const OneMinusDstAlphaFactor: 207;
|
|
86
86
|
export const DstColorFactor: 208;
|
|
87
87
|
export const OneMinusDstColorFactor: 209;
|
|
88
|
+
export const SrcAlphaSaturateFactor: 210;
|
|
89
|
+
export const ConstantColorFactor: 211;
|
|
90
|
+
export const OneMinusConstantColorFactor: 212;
|
|
91
|
+
export const ConstantAlphaFactor: 213;
|
|
92
|
+
export const OneMinusConstantAlphaFactor: 214;
|
|
88
93
|
export type BlendingDstFactor =
|
|
89
94
|
| typeof ZeroFactor
|
|
90
95
|
| typeof OneFactor
|
|
@@ -95,11 +100,12 @@ export type BlendingDstFactor =
|
|
|
95
100
|
| typeof DstAlphaFactor
|
|
96
101
|
| typeof OneMinusDstAlphaFactor
|
|
97
102
|
| typeof DstColorFactor
|
|
98
|
-
| typeof OneMinusDstColorFactor
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
| typeof OneMinusDstColorFactor
|
|
104
|
+
| typeof ConstantColorFactor
|
|
105
|
+
| typeof OneMinusConstantColorFactor
|
|
106
|
+
| typeof ConstantAlphaFactor
|
|
107
|
+
| typeof OneMinusConstantAlphaFactor;
|
|
108
|
+
export type BlendingSrcFactor = BlendingDstFactor | typeof SrcAlphaSaturateFactor;
|
|
103
109
|
|
|
104
110
|
// depth modes
|
|
105
111
|
export const NeverDepth: 0;
|
|
@@ -142,6 +148,11 @@ export type ToneMapping =
|
|
|
142
148
|
| typeof ACESFilmicToneMapping
|
|
143
149
|
| typeof CustomToneMapping;
|
|
144
150
|
|
|
151
|
+
// Bind modes
|
|
152
|
+
export const AttachedBindMode: 'attached';
|
|
153
|
+
export const DetachedBindMode: 'detached';
|
|
154
|
+
export type BindMode = typeof AttachedBindMode | typeof DetachedBindMode;
|
|
155
|
+
|
|
145
156
|
///////////////////////////////////////////////////////////////////////////////
|
|
146
157
|
///////////////////////////////////////////////////////////////////////////////
|
|
147
158
|
///////////////////////////////////////////////////////////////////////////////
|
|
@@ -462,11 +473,11 @@ export type WebGL2PixelFormat =
|
|
|
462
473
|
export type PixelFormat = WebGL1PixelFormat | WebGL2PixelFormat;
|
|
463
474
|
|
|
464
475
|
/**
|
|
465
|
-
* All Texture Pixel Formats Modes for {@link THREE.
|
|
476
|
+
* All Texture Pixel Formats Modes for {@link THREE.DepthTexture}.
|
|
466
477
|
* @see {@link WebGLRenderingContext.texImage2D} for details.
|
|
467
478
|
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
468
479
|
*/
|
|
469
|
-
export type
|
|
480
|
+
export type DepthTexturePixelFormat = typeof DepthFormat | typeof DepthStencilFormat;
|
|
470
481
|
|
|
471
482
|
///////////////////////////////////////////////////////////////////////////////
|
|
472
483
|
// Compressed texture formats
|
|
@@ -649,10 +660,10 @@ export type CompressedPixelFormat =
|
|
|
649
660
|
* All Possible Texture Pixel Formats Modes. For any Type or SubType of Textures.
|
|
650
661
|
* @remarks Note that the texture must have the correct {@link THREE.Texture.type} set, as described in {@link TextureDataType}.
|
|
651
662
|
* @see {@link WebGLRenderingContext.texImage2D} for details.
|
|
652
|
-
* @see {@link PixelFormat} and {@link
|
|
663
|
+
* @see {@link PixelFormat} and {@link DepthTexturePixelFormat} and {@link CompressedPixelFormat}
|
|
653
664
|
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
654
665
|
*/
|
|
655
|
-
export type AnyPixelFormat = PixelFormat |
|
|
666
|
+
export type AnyPixelFormat = PixelFormat | DepthTexturePixelFormat | CompressedPixelFormat;
|
|
656
667
|
|
|
657
668
|
///////////////////////////////////////////////////////////////////////////////
|
|
658
669
|
// Loop styles for AnimationAction
|