@types/three 0.143.0 → 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 +216 -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 +17 -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 +31 -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 +7 -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 +17 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +19 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -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/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/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 +157 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +285 -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/ReflectorForSSRPass.d.ts +4 -4
- three/examples/jsm/postprocessing/SSRPass.d.ts +3 -3
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +17 -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/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 +2 -2
- 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
|
@@ -21,7 +21,7 @@ export interface ReflectorShader {
|
|
|
21
21
|
fragmentShader: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export interface
|
|
24
|
+
export interface ReflectorForSSRPassOptions {
|
|
25
25
|
clipBias?: number | undefined;
|
|
26
26
|
textureWidth?: number | undefined;
|
|
27
27
|
textureHeight?: number | undefined;
|
|
@@ -30,9 +30,9 @@ export interface ReflectorOptions {
|
|
|
30
30
|
shader?: ReflectorShader | undefined;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export class
|
|
33
|
+
export class ReflectorForSSRPass<TGeometry extends BufferGeometry = BufferGeometry> extends Mesh<TGeometry> {
|
|
34
34
|
type: 'ReflectorForSSRPass';
|
|
35
|
-
options:
|
|
35
|
+
options: ReflectorForSSRPassOptions;
|
|
36
36
|
|
|
37
37
|
static ReflectorShader: ReflectorShader;
|
|
38
38
|
|
|
@@ -49,7 +49,7 @@ export class Reflector<TGeometry extends BufferGeometry = BufferGeometry> extend
|
|
|
49
49
|
|
|
50
50
|
renderTarget: WebGLRenderTarget;
|
|
51
51
|
|
|
52
|
-
constructor(geometry: TGeometry, options:
|
|
52
|
+
constructor(geometry: TGeometry, options: ReflectorForSSRPassOptions);
|
|
53
53
|
|
|
54
54
|
doRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera) => void;
|
|
55
55
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ColorRepresentation,
|
|
13
13
|
} from '../../../src/Three';
|
|
14
14
|
import { Pass, FullScreenQuad } from '../postprocessing/Pass';
|
|
15
|
-
import {
|
|
15
|
+
import { ReflectorForSSRPass } from '../objects/ReflectorForSSRPass';
|
|
16
16
|
|
|
17
17
|
export interface SSRPassParams {
|
|
18
18
|
renderer: WebGLRenderer;
|
|
@@ -23,7 +23,7 @@ export interface SSRPassParams {
|
|
|
23
23
|
selects: Mesh[] | null;
|
|
24
24
|
isPerspectiveCamera?: boolean | undefined;
|
|
25
25
|
isBouncing?: boolean | undefined;
|
|
26
|
-
groundReflector:
|
|
26
|
+
groundReflector: ReflectorForSSRPass | null;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export class SSRPass extends Pass {
|
|
@@ -33,7 +33,7 @@ export class SSRPass extends Pass {
|
|
|
33
33
|
renderer: WebGLRenderer;
|
|
34
34
|
scene: Scene;
|
|
35
35
|
camera: Camera;
|
|
36
|
-
groundReflector:
|
|
36
|
+
groundReflector: ReflectorForSSRPass | null;
|
|
37
37
|
opacity: number;
|
|
38
38
|
output: number;
|
|
39
39
|
maxDistance: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Node from '../../../nodes/core/Node';
|
|
2
|
+
|
|
3
|
+
export interface SlotNodeParameters<TNode extends Node = Node> {
|
|
4
|
+
node?: TNode;
|
|
5
|
+
nodeType?: string;
|
|
6
|
+
source?: string | null;
|
|
7
|
+
target?: string | null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default class SlotNode<TNode extends Node = Node> extends Node {
|
|
11
|
+
inclusionType: 'replace';
|
|
12
|
+
node: TNode | null;
|
|
13
|
+
source: null;
|
|
14
|
+
target: null;
|
|
15
|
+
|
|
16
|
+
constructor(params: SlotNodeParameters<TNode>);
|
|
17
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import NodeBuilder from '../../../nodes/core/NodeBuilder';
|
|
2
|
+
import { Texture, TextureEncoding, Renderer, Object3D } from '../../../../../src/Three';
|
|
3
|
+
import Node from '../../../nodes/core/Node';
|
|
4
|
+
import SlotNode from './SlotNode';
|
|
5
|
+
import { NodeShaderStageOption } from '../../../nodes/core/constants';
|
|
6
|
+
|
|
7
|
+
export class WebGLNodeBuilder extends NodeBuilder {
|
|
8
|
+
constructor(
|
|
9
|
+
object: Object3D,
|
|
10
|
+
renderer: Renderer,
|
|
11
|
+
shader: { uniforms: any; vertexShader: any; fragmentShader: any },
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
addSlot(shaderStage: NodeShaderStageOption, slotNode: SlotNode): Node;
|
|
15
|
+
addFlowCode(code: string): string;
|
|
16
|
+
|
|
17
|
+
getTexture(textureProperty: string, uvSnippet: string): string;
|
|
18
|
+
getTextureBias(textureProperty: string, uvSnippet: string, biasSnippet: string): string;
|
|
19
|
+
|
|
20
|
+
getTextureLevel(
|
|
21
|
+
textureProperty: string,
|
|
22
|
+
uvSnippet: string,
|
|
23
|
+
biasSnippet: string,
|
|
24
|
+
shaderStage?: NodeShaderStageOption,
|
|
25
|
+
): string;
|
|
26
|
+
getCubeTexture(texturePropert: string, uvSnippet: string, shaderStage?: NodeShaderStageOption): string;
|
|
27
|
+
|
|
28
|
+
getCubeTextureLevel(
|
|
29
|
+
textureProperty: string,
|
|
30
|
+
uvSnippet: string,
|
|
31
|
+
biasSnippet: string,
|
|
32
|
+
shaderStage?: NodeShaderStageOption,
|
|
33
|
+
): string;
|
|
34
|
+
|
|
35
|
+
getCubeTextureBias(textureProperty: string, uvSnippet: string, biasSnippet: string): string;
|
|
36
|
+
getUniforms(shaderStage: string): string;
|
|
37
|
+
|
|
38
|
+
getAttributes(shaderStage: string): string;
|
|
39
|
+
|
|
40
|
+
getVarys(shaderStage: string): string;
|
|
41
|
+
|
|
42
|
+
addCodeAfterCode(shaderStage: string, snippet: string, code: string): string;
|
|
43
|
+
addCodeAfterInclude(shaderStage: string, snippet: string, code: string): string;
|
|
44
|
+
|
|
45
|
+
replaceCode(shaderStage: string, source: string, target: string): void;
|
|
46
|
+
parseInclude(shaderStage: string, ...includes: string[]): void;
|
|
47
|
+
getTextureEncodingFromMap(map: Texture): TextureEncoding;
|
|
48
|
+
|
|
49
|
+
getInstanceIndex(): string;
|
|
50
|
+
getFrontFacing(): string;
|
|
51
|
+
|
|
52
|
+
buildCode(): void;
|
|
53
|
+
build(): this;
|
|
54
|
+
|
|
55
|
+
getSlot(shaderStage: string, name: string): Node;
|
|
56
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const AfterimageShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
damp:
|
|
6
|
-
tOld:
|
|
7
|
-
tNew:
|
|
5
|
+
damp: IUniform;
|
|
6
|
+
tOld: IUniform;
|
|
7
|
+
tNew: IUniform;
|
|
8
8
|
};
|
|
9
9
|
vertexShader: string;
|
|
10
10
|
fragmentShader: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const BleachBypassShader: {
|
|
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 BlendShader: {
|
|
4
4
|
uniforms: {
|
|
5
|
-
tDiffuse1:
|
|
6
|
-
tDiffuse2:
|
|
7
|
-
mixRatio:
|
|
8
|
-
opacity:
|
|
5
|
+
tDiffuse1: IUniform;
|
|
6
|
+
tDiffuse2: IUniform;
|
|
7
|
+
mixRatio: IUniform;
|
|
8
|
+
opacity: IUniform;
|
|
9
9
|
};
|
|
10
10
|
vertexShader: string;
|
|
11
11
|
fragmentShader: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUniform } from '../../../src/Three';
|
|
2
2
|
|
|
3
3
|
export const BokehShader: {
|
|
4
4
|
defines: {
|
|
@@ -6,14 +6,14 @@ export const BokehShader: {
|
|
|
6
6
|
PERSPECTIVE_CAMERA: number;
|
|
7
7
|
};
|
|
8
8
|
uniforms: {
|
|
9
|
-
tColor:
|
|
10
|
-
tDepth:
|
|
11
|
-
focus:
|
|
12
|
-
aspect:
|
|
13
|
-
aperture:
|
|
14
|
-
maxblur:
|
|
15
|
-
nearClip:
|
|
16
|
-
farClip:
|
|
9
|
+
tColor: IUniform;
|
|
10
|
+
tDepth: IUniform;
|
|
11
|
+
focus: IUniform;
|
|
12
|
+
aspect: IUniform;
|
|
13
|
+
aperture: IUniform;
|
|
14
|
+
maxblur: IUniform;
|
|
15
|
+
nearClip: IUniform;
|
|
16
|
+
farClip: IUniform;
|
|
17
17
|
};
|
|
18
18
|
vertexShader: string;
|
|
19
19
|
fragmentShader: string;
|
|
@@ -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;
|