@types/three 0.143.2 → 0.144.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/controls/FirstPersonControls.d.ts +4 -1
- three/examples/jsm/csm/CSM.d.ts +1 -1
- three/examples/jsm/environments/RoomEnvironment.d.ts +1 -0
- three/examples/jsm/interactive/SelectionHelper.d.ts +1 -3
- three/examples/jsm/libs/stats.module.d.ts +1 -1
- three/examples/jsm/loaders/TIFFLoader.d.ts +16 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +17 -0
- three/examples/jsm/math/ColorConverter.d.ts +0 -2
- three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -0
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -2
- three/examples/jsm/misc/Volume.d.ts +1 -1
- three/examples/jsm/modifiers/CurveModifier.d.ts +6 -6
- three/examples/jsm/nodes/Nodes.d.ts +2 -1
- three/examples/jsm/nodes/core/CodeNode.d.ts +2 -2
- three/examples/jsm/nodes/core/FunctionCallNode.d.ts +5 -5
- three/examples/jsm/nodes/core/FunctionNode.d.ts +6 -4
- three/examples/jsm/nodes/core/Node.d.ts +1 -0
- three/examples/jsm/nodes/core/NodeUtils.d.ts +1 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +8 -6
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -0
- three/examples/jsm/nodes/materialx/functions/lib/mx_hsv.d.ts +4 -0
- three/examples/jsm/nodes/materialx/functions/lib/mx_noise.d.ts +6 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +2 -2
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +10 -8
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +25 -7
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +4 -4
- three/examples/jsm/postprocessing/SSRPass.d.ts +3 -3
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +15 -3
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +5 -5
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +1 -1
- three/examples/jsm/shaders/AfterimageShader.d.ts +4 -4
- three/examples/jsm/shaders/BleachBypassShader.d.ts +3 -3
- three/examples/jsm/shaders/BlendShader.d.ts +5 -5
- three/examples/jsm/shaders/BokehShader.d.ts +9 -9
- three/examples/jsm/shaders/BokehShader2.d.ts +26 -26
- three/examples/jsm/shaders/BrightnessContrastShader.d.ts +4 -4
- three/examples/jsm/shaders/ColorCorrectionShader.d.ts +5 -5
- three/examples/jsm/shaders/ColorifyShader.d.ts +3 -3
- three/examples/jsm/shaders/ConvolutionShader.d.ts +4 -4
- three/examples/jsm/shaders/CopyShader.d.ts +3 -3
- three/examples/jsm/shaders/DOFMipMapShader.d.ts +5 -5
- three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +9 -9
- three/examples/jsm/shaders/DigitalGlitch.d.ts +12 -12
- three/examples/jsm/shaders/DotScreenShader.d.ts +6 -6
- three/examples/jsm/shaders/FXAAShader.d.ts +3 -3
- three/examples/jsm/shaders/FilmShader.d.ts +7 -7
- three/examples/jsm/shaders/FocusShader.d.ts +6 -6
- three/examples/jsm/shaders/FreiChenShader.d.ts +3 -3
- three/examples/jsm/shaders/GammaCorrectionShader.d.ts +2 -2
- three/examples/jsm/shaders/GodRaysShader.d.ts +12 -12
- three/examples/jsm/shaders/HalftoneShader.d.ts +14 -14
- three/examples/jsm/shaders/HorizontalBlurShader.d.ts +3 -3
- three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +4 -4
- three/examples/jsm/shaders/HueSaturationShader.d.ts +4 -4
- three/examples/jsm/shaders/KaleidoShader.d.ts +4 -4
- three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +6 -6
- three/examples/jsm/shaders/LuminosityShader.d.ts +2 -2
- three/examples/jsm/shaders/MirrorShader.d.ts +3 -3
- three/examples/jsm/shaders/NormalMapShader.d.ts +5 -5
- three/examples/jsm/shaders/PixelShader.d.ts +4 -4
- three/examples/jsm/shaders/RGBShiftShader.d.ts +4 -4
- three/examples/jsm/shaders/SAOShader.d.ts +15 -15
- three/examples/jsm/shaders/SMAAShader.d.ts +10 -10
- three/examples/jsm/shaders/SSAOShader.d.ts +19 -19
- three/examples/jsm/shaders/SepiaShader.d.ts +3 -3
- three/examples/jsm/shaders/SobelOperatorShader.d.ts +3 -3
- three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +30 -30
- three/examples/jsm/shaders/TechnicolorShader.d.ts +2 -2
- three/examples/jsm/shaders/ToneMapShader.d.ts +7 -7
- three/examples/jsm/shaders/ToonShader.d.ts +26 -26
- three/examples/jsm/shaders/TriangleBlurShader.d.ts +3 -3
- three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +3 -3
- three/examples/jsm/shaders/VerticalBlurShader.d.ts +3 -3
- three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +4 -4
- three/examples/jsm/shaders/VignetteShader.d.ts +4 -4
- three/examples/jsm/shaders/VolumeShader.d.ts +7 -7
- three/examples/jsm/shaders/WaterRefractionShader.d.ts +6 -6
- three/examples/jsm/utils/CameraUtils.d.ts +1 -1
- three/index.d.ts +1 -1
- three/package.json +3 -3
- three/src/Three.d.ts +1 -1
- three/src/constants.d.ts +0 -5
- three/src/core/BufferAttribute.d.ts +0 -4
- three/src/core/BufferGeometry.d.ts +0 -1
- three/src/core/Object3D.d.ts +2 -1
- three/src/extras/core/ShapePath.d.ts +1 -1
- three/src/geometries/BoxGeometry.d.ts +0 -2
- three/src/geometries/CapsuleGeometry.d.ts +0 -2
- three/src/geometries/CircleGeometry.d.ts +0 -2
- three/src/geometries/ConeGeometry.d.ts +0 -2
- three/src/geometries/CylinderGeometry.d.ts +0 -2
- three/src/geometries/DodecahedronGeometry.d.ts +0 -2
- three/src/geometries/ExtrudeGeometry.d.ts +0 -2
- three/src/geometries/IcosahedronGeometry.d.ts +0 -2
- three/src/geometries/LatheGeometry.d.ts +0 -2
- three/src/geometries/OctahedronGeometry.d.ts +0 -2
- three/src/geometries/PlaneGeometry.d.ts +0 -2
- three/src/geometries/PolyhedronGeometry.d.ts +0 -2
- three/src/geometries/RingGeometry.d.ts +0 -2
- three/src/geometries/ShapeGeometry.d.ts +0 -2
- three/src/geometries/SphereGeometry.d.ts +0 -2
- three/src/geometries/TetrahedronGeometry.d.ts +0 -2
- three/src/geometries/TorusGeometry.d.ts +0 -2
- three/src/geometries/TorusKnotGeometry.d.ts +0 -2
- three/src/geometries/TubeGeometry.d.ts +0 -2
- three/src/materials/LineBasicMaterial.d.ts +7 -0
- three/src/materials/MeshLambertMaterial.d.ts +52 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +5 -0
- three/src/materials/ShaderMaterial.d.ts +1 -1
- three/src/math/Quaternion.d.ts +0 -5
- three/src/renderers/shaders/UniformsUtils.d.ts +0 -1
- three/examples/jsm/renderers/webgl/nodes/WebGLPhysicalContextNode.d.ts +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const SSAOShader: {
|
|
4
4
|
defines: {
|
|
@@ -6,19 +6,19 @@ export const SSAOShader: {
|
|
|
6
6
|
KERNEL_SIZE: number;
|
|
7
7
|
};
|
|
8
8
|
uniforms: {
|
|
9
|
-
tDiffuse:
|
|
10
|
-
tNormal:
|
|
11
|
-
tDepth:
|
|
12
|
-
tNoise:
|
|
13
|
-
kernel:
|
|
14
|
-
cameraNear:
|
|
15
|
-
cameraFar:
|
|
16
|
-
resolution:
|
|
17
|
-
cameraProjectionMatrix:
|
|
18
|
-
cameraInverseProjectionMatrix:
|
|
19
|
-
kernelRadius:
|
|
20
|
-
minDistance:
|
|
21
|
-
maxDistance:
|
|
9
|
+
tDiffuse: IUniform;
|
|
10
|
+
tNormal: IUniform;
|
|
11
|
+
tDepth: IUniform;
|
|
12
|
+
tNoise: IUniform;
|
|
13
|
+
kernel: IUniform;
|
|
14
|
+
cameraNear: IUniform;
|
|
15
|
+
cameraFar: IUniform;
|
|
16
|
+
resolution: IUniform;
|
|
17
|
+
cameraProjectionMatrix: IUniform;
|
|
18
|
+
cameraInverseProjectionMatrix: IUniform;
|
|
19
|
+
kernelRadius: IUniform;
|
|
20
|
+
minDistance: IUniform;
|
|
21
|
+
maxDistance: IUniform;
|
|
22
22
|
};
|
|
23
23
|
vertexShader: string;
|
|
24
24
|
fragmentShader: string;
|
|
@@ -29,9 +29,9 @@ export const SSAODepthShader: {
|
|
|
29
29
|
PERSPECTIVE_CAMERA: number;
|
|
30
30
|
};
|
|
31
31
|
uniforms: {
|
|
32
|
-
tDepth:
|
|
33
|
-
cameraNear:
|
|
34
|
-
cameraFar:
|
|
32
|
+
tDepth: IUniform;
|
|
33
|
+
cameraNear: IUniform;
|
|
34
|
+
cameraFar: IUniform;
|
|
35
35
|
};
|
|
36
36
|
vertexShader: string;
|
|
37
37
|
fragmentShader: string;
|
|
@@ -39,8 +39,8 @@ export const SSAODepthShader: {
|
|
|
39
39
|
|
|
40
40
|
export const SSAOBlurShader: {
|
|
41
41
|
uniforms: {
|
|
42
|
-
tDiffuse:
|
|
43
|
-
resolution:
|
|
42
|
+
tDiffuse: IUniform;
|
|
43
|
+
resolution: IUniform;
|
|
44
44
|
};
|
|
45
45
|
vertexShader: string;
|
|
46
46
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const SepiaShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
amount:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
amount: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const SobelOperatorShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
resolution:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
resolution: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const SubsurfaceScatteringShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
alphaMap:
|
|
6
|
-
ambientLightColor:
|
|
7
|
-
color:
|
|
8
|
-
diffuse:
|
|
9
|
-
directionalLights:
|
|
10
|
-
directionalShadowMap:
|
|
11
|
-
directionalShadowMatrix:
|
|
12
|
-
emissive:
|
|
13
|
-
hemisphereLights:
|
|
14
|
-
lightProbe:
|
|
15
|
-
map:
|
|
16
|
-
opacity:
|
|
17
|
-
pointLights:
|
|
18
|
-
pointShadowMap:
|
|
19
|
-
pointShadowMatrix:
|
|
20
|
-
rectAreaLights:
|
|
21
|
-
shininess:
|
|
22
|
-
specular:
|
|
23
|
-
spotLights:
|
|
24
|
-
spotShadowMap:
|
|
25
|
-
spotShadowMatrix:
|
|
26
|
-
thicknessAmbient:
|
|
27
|
-
thicknessAttenuation:
|
|
28
|
-
thicknessColor:
|
|
29
|
-
thicknessDistortion:
|
|
30
|
-
thicknessMap:
|
|
31
|
-
thicknessPower:
|
|
32
|
-
thicknessScale:
|
|
33
|
-
uvTransform:
|
|
5
|
+
alphaMap: IUniform;
|
|
6
|
+
ambientLightColor: IUniform;
|
|
7
|
+
color: IUniform;
|
|
8
|
+
diffuse: IUniform;
|
|
9
|
+
directionalLights: IUniform;
|
|
10
|
+
directionalShadowMap: IUniform;
|
|
11
|
+
directionalShadowMatrix: IUniform;
|
|
12
|
+
emissive: IUniform;
|
|
13
|
+
hemisphereLights: IUniform;
|
|
14
|
+
lightProbe: IUniform;
|
|
15
|
+
map: IUniform;
|
|
16
|
+
opacity: IUniform;
|
|
17
|
+
pointLights: IUniform;
|
|
18
|
+
pointShadowMap: IUniform;
|
|
19
|
+
pointShadowMatrix: IUniform;
|
|
20
|
+
rectAreaLights: IUniform;
|
|
21
|
+
shininess: IUniform;
|
|
22
|
+
specular: IUniform;
|
|
23
|
+
spotLights: IUniform;
|
|
24
|
+
spotShadowMap: IUniform;
|
|
25
|
+
spotShadowMatrix: IUniform;
|
|
26
|
+
thicknessAmbient: IUniform;
|
|
27
|
+
thicknessAttenuation: IUniform;
|
|
28
|
+
thicknessColor: IUniform;
|
|
29
|
+
thicknessDistortion: IUniform;
|
|
30
|
+
thicknessMap: IUniform;
|
|
31
|
+
thicknessPower: IUniform;
|
|
32
|
+
thicknessScale: IUniform;
|
|
33
|
+
uvTransform: IUniform;
|
|
34
34
|
};
|
|
35
35
|
vertexShader: string;
|
|
36
36
|
fragmentShader: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const ToneMapShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
averageLuminance:
|
|
7
|
-
luminanceMap:
|
|
8
|
-
maxLuminance:
|
|
9
|
-
minLuminance:
|
|
10
|
-
middleGrey:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
averageLuminance: IUniform;
|
|
7
|
+
luminanceMap: IUniform;
|
|
8
|
+
maxLuminance: IUniform;
|
|
9
|
+
minLuminance: IUniform;
|
|
10
|
+
middleGrey: IUniform;
|
|
11
11
|
};
|
|
12
12
|
vertexShader: string;
|
|
13
13
|
fragmentShader: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const ToonShader1: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
uDirLightPos:
|
|
6
|
-
uDirLightColor:
|
|
7
|
-
uAmbientLightColor:
|
|
8
|
-
uBaseColor:
|
|
5
|
+
uDirLightPos: IUniform;
|
|
6
|
+
uDirLightColor: IUniform;
|
|
7
|
+
uAmbientLightColor: IUniform;
|
|
8
|
+
uBaseColor: IUniform;
|
|
9
9
|
};
|
|
10
10
|
vertexShader: string;
|
|
11
11
|
fragmentShader: string;
|
|
@@ -13,14 +13,14 @@ export const ToonShader1: {
|
|
|
13
13
|
|
|
14
14
|
export const ToonShader2: {
|
|
15
15
|
uniforms: {
|
|
16
|
-
uDirLightPos:
|
|
17
|
-
uDirLightColor:
|
|
18
|
-
uAmbientLightColor:
|
|
19
|
-
uBaseColor:
|
|
20
|
-
uLineColor1:
|
|
21
|
-
uLineColor2:
|
|
22
|
-
uLineColor3:
|
|
23
|
-
uLineColor4:
|
|
16
|
+
uDirLightPos: IUniform;
|
|
17
|
+
uDirLightColor: IUniform;
|
|
18
|
+
uAmbientLightColor: IUniform;
|
|
19
|
+
uBaseColor: IUniform;
|
|
20
|
+
uLineColor1: IUniform;
|
|
21
|
+
uLineColor2: IUniform;
|
|
22
|
+
uLineColor3: IUniform;
|
|
23
|
+
uLineColor4: IUniform;
|
|
24
24
|
};
|
|
25
25
|
vertexShader: string;
|
|
26
26
|
fragmentShader: string;
|
|
@@ -28,14 +28,14 @@ export const ToonShader2: {
|
|
|
28
28
|
|
|
29
29
|
export const ToonShaderHatching: {
|
|
30
30
|
uniforms: {
|
|
31
|
-
uDirLightPos:
|
|
32
|
-
uDirLightColor:
|
|
33
|
-
uAmbientLightColor:
|
|
34
|
-
uBaseColor:
|
|
35
|
-
uLineColor1:
|
|
36
|
-
uLineColor2:
|
|
37
|
-
uLineColor3:
|
|
38
|
-
uLineColor4:
|
|
31
|
+
uDirLightPos: IUniform;
|
|
32
|
+
uDirLightColor: IUniform;
|
|
33
|
+
uAmbientLightColor: IUniform;
|
|
34
|
+
uBaseColor: IUniform;
|
|
35
|
+
uLineColor1: IUniform;
|
|
36
|
+
uLineColor2: IUniform;
|
|
37
|
+
uLineColor3: IUniform;
|
|
38
|
+
uLineColor4: IUniform;
|
|
39
39
|
};
|
|
40
40
|
vertexShader: string;
|
|
41
41
|
fragmentShader: string;
|
|
@@ -43,11 +43,11 @@ export const ToonShaderHatching: {
|
|
|
43
43
|
|
|
44
44
|
export const ToonShaderDotted: {
|
|
45
45
|
uniforms: {
|
|
46
|
-
uDirLightPos:
|
|
47
|
-
uDirLightColor:
|
|
48
|
-
uAmbientLightColor:
|
|
49
|
-
uBaseColor:
|
|
50
|
-
uLineColor1:
|
|
46
|
+
uDirLightPos: IUniform;
|
|
47
|
+
uDirLightColor: IUniform;
|
|
48
|
+
uAmbientLightColor: IUniform;
|
|
49
|
+
uBaseColor: IUniform;
|
|
50
|
+
uLineColor1: IUniform;
|
|
51
51
|
};
|
|
52
52
|
vertexShader: string;
|
|
53
53
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const TriangleBlurShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
texture:
|
|
6
|
-
delta:
|
|
5
|
+
texture: IUniform;
|
|
6
|
+
delta: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const UnpackDepthRGBAShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
opacity:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
opacity: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const VerticalBlurShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
v:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
v: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const VerticalTiltShiftShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
v:
|
|
7
|
-
r:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
v: IUniform;
|
|
7
|
+
r: IUniform;
|
|
8
8
|
};
|
|
9
9
|
vertexShader: string;
|
|
10
10
|
fragmentShader: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const VignetteShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
offset:
|
|
7
|
-
darkness:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
offset: IUniform;
|
|
7
|
+
darkness: IUniform;
|
|
8
8
|
};
|
|
9
9
|
vertexShader: string;
|
|
10
10
|
fragmentShader: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const VolumeRenderShader1: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
u_size:
|
|
6
|
-
u_renderstyle:
|
|
7
|
-
u_renderthreshold:
|
|
8
|
-
u_clim:
|
|
9
|
-
u_data:
|
|
10
|
-
u_cmdata:
|
|
5
|
+
u_size: IUniform;
|
|
6
|
+
u_renderstyle: IUniform;
|
|
7
|
+
u_renderthreshold: IUniform;
|
|
8
|
+
u_clim: IUniform;
|
|
9
|
+
u_data: IUniform;
|
|
10
|
+
u_cmdata: IUniform;
|
|
11
11
|
};
|
|
12
12
|
vertexShader: string;
|
|
13
13
|
fragmentShader: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const WaterRefractionShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
color:
|
|
6
|
-
time:
|
|
7
|
-
tDiffuse:
|
|
8
|
-
tDudv:
|
|
9
|
-
textureMatrix:
|
|
5
|
+
color: IUniform;
|
|
6
|
+
time: IUniform;
|
|
7
|
+
tDiffuse: IUniform;
|
|
8
|
+
tDudv: IUniform;
|
|
9
|
+
textureMatrix: IUniform;
|
|
10
10
|
};
|
|
11
11
|
vertexShader: string;
|
|
12
12
|
fragmentShader: string;
|
three/index.d.ts
CHANGED
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.144.0",
|
|
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": "4.
|
|
30
|
+
"typesPublisherContentHash": "fd44eeaf35ec2ad7992d39b9da4bfde0290790e3cec4fb679df94f09e35c72dd",
|
|
31
|
+
"typeScriptVersion": "4.1"
|
|
32
32
|
}
|
three/src/Three.d.ts
CHANGED
|
@@ -212,7 +212,7 @@ export * from './renderers/webgl/WebGLUniforms';
|
|
|
212
212
|
export * from './renderers/webgl/WebGLUniformsGroups';
|
|
213
213
|
export * from './renderers/webxr/WebXRController';
|
|
214
214
|
export * from './renderers/webxr/WebXRManager';
|
|
215
|
-
export { WebGLUtils } from './renderers/webgl/WebGLUtils
|
|
215
|
+
export { WebGLUtils } from './renderers/webgl/WebGLUtils';
|
|
216
216
|
/**
|
|
217
217
|
* Scenes
|
|
218
218
|
*/
|
three/src/constants.d.ts
CHANGED
|
@@ -39,11 +39,6 @@ export const FrontSide: Side;
|
|
|
39
39
|
export const BackSide: Side;
|
|
40
40
|
export const DoubleSide: Side;
|
|
41
41
|
|
|
42
|
-
// shading
|
|
43
|
-
export enum Shading {}
|
|
44
|
-
export const FlatShading: Shading;
|
|
45
|
-
export const SmoothShading: Shading;
|
|
46
|
-
|
|
47
42
|
// blending modes
|
|
48
43
|
export enum Blending {}
|
|
49
44
|
export const NoBlending: Blending;
|
|
@@ -51,10 +51,6 @@ export class BufferAttribute {
|
|
|
51
51
|
copy(source: BufferAttribute): this;
|
|
52
52
|
copyAt(index1: number, attribute: BufferAttribute, index2: number): this;
|
|
53
53
|
copyArray(array: ArrayLike<number>): this;
|
|
54
|
-
copyColorsArray(colors: Array<{ r: number; g: number; b: number }>): this;
|
|
55
|
-
copyVector2sArray(vectors: Array<{ x: number; y: number }>): this;
|
|
56
|
-
copyVector3sArray(vectors: Array<{ x: number; y: number; z: number }>): this;
|
|
57
|
-
copyVector4sArray(vectors: Array<{ x: number; y: number; z: number; w: number }>): this;
|
|
58
54
|
applyMatrix3(m: Matrix3): this;
|
|
59
55
|
applyMatrix4(m: Matrix4): this;
|
|
60
56
|
applyNormalMatrix(m: Matrix3): this;
|
three/src/core/Object3D.d.ts
CHANGED
|
@@ -324,7 +324,8 @@ export class Object3D<E extends BaseEvent = Event> extends EventDispatcher<E> {
|
|
|
324
324
|
* This method does not support objects having non-uniformly-scaled parent(s).
|
|
325
325
|
* @param vector A world vector to look at.
|
|
326
326
|
*/
|
|
327
|
-
lookAt(vector: Vector3
|
|
327
|
+
lookAt(vector: Vector3): void;
|
|
328
|
+
lookAt(x: number, y: number, z: number): void;
|
|
328
329
|
|
|
329
330
|
/**
|
|
330
331
|
* Adds object as child of this object.
|
|
@@ -30,5 +30,5 @@ export class ShapePath {
|
|
|
30
30
|
quadraticCurveTo(aCPx: number, aCPy: number, aX: number, aY: number): this;
|
|
31
31
|
bezierCurveTo(aCP1x: number, aCP1y: number, aCP2x: number, aCP2y: number, aX: number, aY: number): this;
|
|
32
32
|
splineThru(pts: Vector2[]): this;
|
|
33
|
-
toShapes(isCCW: boolean
|
|
33
|
+
toShapes(isCCW: boolean): Shape[];
|
|
34
34
|
}
|
|
@@ -4,6 +4,7 @@ import { MaterialParameters, Material } from './Material';
|
|
|
4
4
|
|
|
5
5
|
export interface LineBasicMaterialParameters extends MaterialParameters {
|
|
6
6
|
color?: ColorRepresentation | undefined;
|
|
7
|
+
fog?: boolean | undefined;
|
|
7
8
|
linewidth?: number | undefined;
|
|
8
9
|
linecap?: string | undefined;
|
|
9
10
|
linejoin?: string | undefined;
|
|
@@ -22,6 +23,12 @@ export class LineBasicMaterial extends Material {
|
|
|
22
23
|
*/
|
|
23
24
|
color: Color;
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Whether the material is affected by fog. Default is true.
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
fog: boolean;
|
|
31
|
+
|
|
25
32
|
/**
|
|
26
33
|
* @default 1
|
|
27
34
|
*/
|