@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,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export interface BokehShaderUniforms {
|
|
4
|
-
textureWidth:
|
|
5
|
-
textureHeight:
|
|
6
|
-
focalDepth:
|
|
7
|
-
focalLength:
|
|
8
|
-
fstop:
|
|
9
|
-
tColor:
|
|
10
|
-
tDepth:
|
|
11
|
-
maxblur:
|
|
12
|
-
showFocus:
|
|
13
|
-
manualdof:
|
|
14
|
-
vignetting:
|
|
15
|
-
depthblur:
|
|
16
|
-
threshold:
|
|
17
|
-
gain:
|
|
18
|
-
bias:
|
|
19
|
-
fringe:
|
|
20
|
-
znear:
|
|
21
|
-
zfar:
|
|
22
|
-
noise:
|
|
23
|
-
dithering:
|
|
24
|
-
pentagon:
|
|
25
|
-
shaderFocus:
|
|
26
|
-
focusCoords:
|
|
4
|
+
textureWidth: IUniform;
|
|
5
|
+
textureHeight: IUniform;
|
|
6
|
+
focalDepth: IUniform;
|
|
7
|
+
focalLength: IUniform;
|
|
8
|
+
fstop: IUniform;
|
|
9
|
+
tColor: IUniform;
|
|
10
|
+
tDepth: IUniform;
|
|
11
|
+
maxblur: IUniform;
|
|
12
|
+
showFocus: IUniform;
|
|
13
|
+
manualdof: IUniform;
|
|
14
|
+
vignetting: IUniform;
|
|
15
|
+
depthblur: IUniform;
|
|
16
|
+
threshold: IUniform;
|
|
17
|
+
gain: IUniform;
|
|
18
|
+
bias: IUniform;
|
|
19
|
+
fringe: IUniform;
|
|
20
|
+
znear: IUniform;
|
|
21
|
+
zfar: IUniform;
|
|
22
|
+
noise: IUniform;
|
|
23
|
+
dithering: IUniform;
|
|
24
|
+
pentagon: IUniform;
|
|
25
|
+
shaderFocus: IUniform;
|
|
26
|
+
focusCoords: IUniform;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export const BokehShader: {
|
|
@@ -34,8 +34,8 @@ export const BokehShader: {
|
|
|
34
34
|
|
|
35
35
|
export const BokehDepthShader: {
|
|
36
36
|
uniforms: {
|
|
37
|
-
mNear:
|
|
38
|
-
mFar:
|
|
37
|
+
mNear: IUniform;
|
|
38
|
+
mFar: IUniform;
|
|
39
39
|
};
|
|
40
40
|
vertexShader: string;
|
|
41
41
|
fragmentShader: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const BrightnessContrastShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
brightness:
|
|
7
|
-
contrast:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
brightness: IUniform;
|
|
7
|
+
contrast: IUniform;
|
|
8
8
|
};
|
|
9
9
|
vertexShader: string;
|
|
10
10
|
fragmentShader: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const ColorCorrectionShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
powRGB:
|
|
7
|
-
mulRGB:
|
|
8
|
-
addRGB:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
powRGB: IUniform;
|
|
7
|
+
mulRGB: IUniform;
|
|
8
|
+
addRGB: IUniform;
|
|
9
9
|
};
|
|
10
10
|
vertexShader: string;
|
|
11
11
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const ColorifyShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
color:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
color: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const ConvolutionShader: {
|
|
4
4
|
defines: {
|
|
@@ -6,9 +6,9 @@ export const ConvolutionShader: {
|
|
|
6
6
|
KERNEL_SIZE_INT: string;
|
|
7
7
|
};
|
|
8
8
|
uniforms: {
|
|
9
|
-
tDiffuse:
|
|
10
|
-
uImageIncrement:
|
|
11
|
-
cKernel:
|
|
9
|
+
tDiffuse: IUniform;
|
|
10
|
+
uImageIncrement: IUniform;
|
|
11
|
+
cKernel: IUniform;
|
|
12
12
|
};
|
|
13
13
|
vertexShader: string;
|
|
14
14
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const CopyShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
opacity:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
opacity: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const DOFMipMapShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tColor:
|
|
6
|
-
tDepth:
|
|
7
|
-
focus:
|
|
8
|
-
maxblur:
|
|
5
|
+
tColor: IUniform;
|
|
6
|
+
tDepth: IUniform;
|
|
7
|
+
focus: IUniform;
|
|
8
|
+
maxblur: IUniform;
|
|
9
9
|
};
|
|
10
10
|
vertexShader: string;
|
|
11
11
|
fragmentShader: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform, Vector2, Material } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const DepthLimitedBlurShader: {
|
|
4
4
|
defines: {
|
|
@@ -7,14 +7,14 @@ export const DepthLimitedBlurShader: {
|
|
|
7
7
|
PERSPECTIVE_CAMERA: number;
|
|
8
8
|
};
|
|
9
9
|
uniforms: {
|
|
10
|
-
tDiffuse:
|
|
11
|
-
size:
|
|
12
|
-
sampleUvOffsets:
|
|
13
|
-
sampleWeights:
|
|
14
|
-
tDepth:
|
|
15
|
-
cameraNear:
|
|
16
|
-
cameraFar:
|
|
17
|
-
depthCutoff:
|
|
10
|
+
tDiffuse: IUniform;
|
|
11
|
+
size: IUniform;
|
|
12
|
+
sampleUvOffsets: IUniform;
|
|
13
|
+
sampleWeights: IUniform;
|
|
14
|
+
tDepth: IUniform;
|
|
15
|
+
cameraNear: IUniform;
|
|
16
|
+
cameraFar: IUniform;
|
|
17
|
+
depthCutoff: IUniform;
|
|
18
18
|
};
|
|
19
19
|
vertexShader: string;
|
|
20
20
|
fragmentShader: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const DigitalGlitch: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
tDisp:
|
|
7
|
-
byp:
|
|
8
|
-
amount:
|
|
9
|
-
angle:
|
|
10
|
-
seed:
|
|
11
|
-
seed_x:
|
|
12
|
-
seed_y:
|
|
13
|
-
distortion_x:
|
|
14
|
-
distortion_y:
|
|
15
|
-
col_s:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
tDisp: IUniform;
|
|
7
|
+
byp: IUniform;
|
|
8
|
+
amount: IUniform;
|
|
9
|
+
angle: IUniform;
|
|
10
|
+
seed: IUniform;
|
|
11
|
+
seed_x: IUniform;
|
|
12
|
+
seed_y: IUniform;
|
|
13
|
+
distortion_x: IUniform;
|
|
14
|
+
distortion_y: IUniform;
|
|
15
|
+
col_s: IUniform;
|
|
16
16
|
};
|
|
17
17
|
vertexShader: string;
|
|
18
18
|
fragmentShader: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const DotScreenShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
tSize:
|
|
7
|
-
center:
|
|
8
|
-
angle:
|
|
9
|
-
scale:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
tSize: IUniform;
|
|
7
|
+
center: IUniform;
|
|
8
|
+
angle: IUniform;
|
|
9
|
+
scale: IUniform;
|
|
10
10
|
};
|
|
11
11
|
vertexShader: string;
|
|
12
12
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const FXAAShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
resolution:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
resolution: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const FilmShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
time:
|
|
7
|
-
nIntensity:
|
|
8
|
-
sIntensity:
|
|
9
|
-
sCount:
|
|
10
|
-
grayscale:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
time: IUniform;
|
|
7
|
+
nIntensity: IUniform;
|
|
8
|
+
sIntensity: IUniform;
|
|
9
|
+
sCount: IUniform;
|
|
10
|
+
grayscale: 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 FocusShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
screenWidth:
|
|
7
|
-
screenHeight:
|
|
8
|
-
sampleDistance:
|
|
9
|
-
waveFactor:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
screenWidth: IUniform;
|
|
7
|
+
screenHeight: IUniform;
|
|
8
|
+
sampleDistance: IUniform;
|
|
9
|
+
waveFactor: IUniform;
|
|
10
10
|
};
|
|
11
11
|
vertexShader: string;
|
|
12
12
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const FreiChenShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
aspect:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
aspect: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const GodRaysDepthMaskShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tInput:
|
|
5
|
+
tInput: IUniform;
|
|
6
6
|
};
|
|
7
7
|
vertexShader: string;
|
|
8
8
|
fragmentShader: string;
|
|
@@ -10,9 +10,9 @@ export const GodRaysDepthMaskShader: {
|
|
|
10
10
|
|
|
11
11
|
export const GodRaysGenerateShader: {
|
|
12
12
|
uniforms: {
|
|
13
|
-
tInput:
|
|
14
|
-
fStepSize:
|
|
15
|
-
vSunPositionScreenSpace:
|
|
13
|
+
tInput: IUniform;
|
|
14
|
+
fStepSize: IUniform;
|
|
15
|
+
vSunPositionScreenSpace: IUniform;
|
|
16
16
|
};
|
|
17
17
|
vertexShader: string;
|
|
18
18
|
fragmentShader: string;
|
|
@@ -20,9 +20,9 @@ export const GodRaysGenerateShader: {
|
|
|
20
20
|
|
|
21
21
|
export const GodRaysCombineShader: {
|
|
22
22
|
uniforms: {
|
|
23
|
-
tColors:
|
|
24
|
-
tGodRays:
|
|
25
|
-
fGodRayIntensity:
|
|
23
|
+
tColors: IUniform;
|
|
24
|
+
tGodRays: IUniform;
|
|
25
|
+
fGodRayIntensity: IUniform;
|
|
26
26
|
};
|
|
27
27
|
vertexShader: string;
|
|
28
28
|
fragmentShader: string;
|
|
@@ -30,10 +30,10 @@ export const GodRaysCombineShader: {
|
|
|
30
30
|
|
|
31
31
|
export const GodRaysFakeSunShader: {
|
|
32
32
|
uniforms: {
|
|
33
|
-
vSunPositionScreenSpace:
|
|
34
|
-
fAspect:
|
|
35
|
-
sunColor:
|
|
36
|
-
bgColor:
|
|
33
|
+
vSunPositionScreenSpace: IUniform;
|
|
34
|
+
fAspect: IUniform;
|
|
35
|
+
sunColor: IUniform;
|
|
36
|
+
bgColor: IUniform;
|
|
37
37
|
};
|
|
38
38
|
vertexShader: string;
|
|
39
39
|
fragmentShader: string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const HalftoneShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
shape:
|
|
7
|
-
radius:
|
|
8
|
-
rotateR:
|
|
9
|
-
rotateG:
|
|
10
|
-
rotateB:
|
|
11
|
-
scatter:
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
14
|
-
blending:
|
|
15
|
-
blendingMode:
|
|
16
|
-
greyscale:
|
|
17
|
-
disable:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
shape: IUniform;
|
|
7
|
+
radius: IUniform;
|
|
8
|
+
rotateR: IUniform;
|
|
9
|
+
rotateG: IUniform;
|
|
10
|
+
rotateB: IUniform;
|
|
11
|
+
scatter: IUniform;
|
|
12
|
+
width: IUniform;
|
|
13
|
+
height: IUniform;
|
|
14
|
+
blending: IUniform;
|
|
15
|
+
blendingMode: IUniform;
|
|
16
|
+
greyscale: IUniform;
|
|
17
|
+
disable: IUniform;
|
|
18
18
|
};
|
|
19
19
|
vertexShader: string;
|
|
20
20
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const HorizontalBlurShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
h:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
h: 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 HorizontalTiltShiftShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
h:
|
|
7
|
-
r:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
h: 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 HueSaturationShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
hue:
|
|
7
|
-
saturation:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
hue: IUniform;
|
|
7
|
+
saturation: 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 KaleidoShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
sides:
|
|
7
|
-
angle:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
sides: IUniform;
|
|
7
|
+
angle: 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 LuminosityHighPassShader: {
|
|
4
4
|
shaderID: string;
|
|
5
5
|
uniforms: {
|
|
6
|
-
tDiffuse:
|
|
7
|
-
luminosityThreshold:
|
|
8
|
-
smoothWidth:
|
|
9
|
-
defaultColor:
|
|
10
|
-
defaultOpacity:
|
|
6
|
+
tDiffuse: IUniform;
|
|
7
|
+
luminosityThreshold: IUniform;
|
|
8
|
+
smoothWidth: IUniform;
|
|
9
|
+
defaultColor: IUniform;
|
|
10
|
+
defaultOpacity: IUniform;
|
|
11
11
|
};
|
|
12
12
|
vertexShader: string;
|
|
13
13
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const MirrorShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
side:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
side: IUniform;
|
|
7
7
|
};
|
|
8
8
|
vertexShader: string;
|
|
9
9
|
fragmentShader: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const NormalMapShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
heightMap:
|
|
6
|
-
resolution:
|
|
7
|
-
scale:
|
|
8
|
-
height:
|
|
5
|
+
heightMap: IUniform;
|
|
6
|
+
resolution: IUniform;
|
|
7
|
+
scale: IUniform;
|
|
8
|
+
height: IUniform;
|
|
9
9
|
};
|
|
10
10
|
vertexShader: string;
|
|
11
11
|
fragmentShader: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const PixelShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
resolution:
|
|
7
|
-
pixelSize:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
resolution: IUniform;
|
|
7
|
+
pixelSize: 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 RGBShiftShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse:
|
|
6
|
-
amount:
|
|
7
|
-
angle:
|
|
5
|
+
tDiffuse: IUniform;
|
|
6
|
+
amount: IUniform;
|
|
7
|
+
angle: IUniform;
|
|
8
8
|
};
|
|
9
9
|
vertexShader: string;
|
|
10
10
|
fragmentShader: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const SAOShader: {
|
|
4
4
|
defines: {
|
|
@@ -10,20 +10,20 @@ export const SAOShader: {
|
|
|
10
10
|
PERSPECTIVE_CAMERA: number;
|
|
11
11
|
};
|
|
12
12
|
uniforms: {
|
|
13
|
-
tDepth:
|
|
14
|
-
tDiffuse:
|
|
15
|
-
tNormal:
|
|
16
|
-
size:
|
|
17
|
-
cameraNear:
|
|
18
|
-
cameraFar:
|
|
19
|
-
cameraProjectionMatrix:
|
|
20
|
-
cameraInverseProjectionMatrix:
|
|
21
|
-
scale:
|
|
22
|
-
intensity:
|
|
23
|
-
bias:
|
|
24
|
-
minResolution:
|
|
25
|
-
kernelRadius:
|
|
26
|
-
randomSeed:
|
|
13
|
+
tDepth: IUniform;
|
|
14
|
+
tDiffuse: IUniform;
|
|
15
|
+
tNormal: IUniform;
|
|
16
|
+
size: IUniform;
|
|
17
|
+
cameraNear: IUniform;
|
|
18
|
+
cameraFar: IUniform;
|
|
19
|
+
cameraProjectionMatrix: IUniform;
|
|
20
|
+
cameraInverseProjectionMatrix: IUniform;
|
|
21
|
+
scale: IUniform;
|
|
22
|
+
intensity: IUniform;
|
|
23
|
+
bias: IUniform;
|
|
24
|
+
minResolution: IUniform;
|
|
25
|
+
kernelRadius: IUniform;
|
|
26
|
+
randomSeed: IUniform;
|
|
27
27
|
};
|
|
28
28
|
vertexShader: string;
|
|
29
29
|
fragmentShader: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const SMAAEdgesShader: {
|
|
4
4
|
defines: {
|
|
5
5
|
SMAA_THRESHOLD: string;
|
|
6
6
|
};
|
|
7
7
|
uniforms: {
|
|
8
|
-
tDiffuse:
|
|
9
|
-
resolution:
|
|
8
|
+
tDiffuse: IUniform;
|
|
9
|
+
resolution: IUniform;
|
|
10
10
|
};
|
|
11
11
|
vertexShader: string;
|
|
12
12
|
fragmentShader: string;
|
|
@@ -20,10 +20,10 @@ export const SMAAWeightsShader: {
|
|
|
20
20
|
SMAA_AREATEX_SUBTEX_SIZE: string;
|
|
21
21
|
};
|
|
22
22
|
uniforms: {
|
|
23
|
-
tDiffuse:
|
|
24
|
-
tArea:
|
|
25
|
-
tSearch:
|
|
26
|
-
resolution:
|
|
23
|
+
tDiffuse: IUniform;
|
|
24
|
+
tArea: IUniform;
|
|
25
|
+
tSearch: IUniform;
|
|
26
|
+
resolution: IUniform;
|
|
27
27
|
};
|
|
28
28
|
vertexShader: string;
|
|
29
29
|
fragmentShader: string;
|
|
@@ -31,9 +31,9 @@ export const SMAAWeightsShader: {
|
|
|
31
31
|
|
|
32
32
|
export const SMAABlendShader: {
|
|
33
33
|
uniforms: {
|
|
34
|
-
tDiffuse:
|
|
35
|
-
tColor:
|
|
36
|
-
resolution:
|
|
34
|
+
tDiffuse: IUniform;
|
|
35
|
+
tColor: IUniform;
|
|
36
|
+
resolution: IUniform;
|
|
37
37
|
};
|
|
38
38
|
vertexShader: string;
|
|
39
39
|
fragmentShader: string;
|