@tresjs/post-processing 3.0.0 → 3.1.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.
- package/README.md +1 -1
- package/dist/tres-post-processing.d.ts +1226 -2
- package/dist/tres-post-processing.js +2432 -3380
- package/package.json +17 -17
- package/dist/core/pmndrs/ASCIIPmndrs.vue.d.ts +0 -40
- package/dist/core/pmndrs/BarrelBlurPmndrs.vue.d.ts +0 -26
- package/dist/core/pmndrs/BloomPmndrs.vue.d.ts +0 -61
- package/dist/core/pmndrs/BrightnessContrastPmndrs.vue.d.ts +0 -20
- package/dist/core/pmndrs/ChromaticAberrationPmndrs.vue.d.ts +0 -27
- package/dist/core/pmndrs/ColorAveragePmndrs.vue.d.ts +0 -16
- package/dist/core/pmndrs/ColorDepthPmndrs.vue.d.ts +0 -20
- package/dist/core/pmndrs/DepthOfFieldPmndrs.vue.d.ts +0 -35
- package/dist/core/pmndrs/DepthPickingPassPmndrs.vue.d.ts +0 -18
- package/dist/core/pmndrs/DotScreenPmndrs.vue.d.ts +0 -22
- package/dist/core/pmndrs/EffectComposerPmndrs.vue.d.ts +0 -36
- package/dist/core/pmndrs/FXAAPmndrs.vue.d.ts +0 -32
- package/dist/core/pmndrs/FishEyePmndrs.vue.d.ts +0 -30
- package/dist/core/pmndrs/GlitchPmndrs.vue.d.ts +0 -51
- package/dist/core/pmndrs/GodRaysPmndrs.vue.d.ts +0 -65
- package/dist/core/pmndrs/GridPmndrs.vue.d.ts +0 -20
- package/dist/core/pmndrs/HueSaturationPmndrs.vue.d.ts +0 -22
- package/dist/core/pmndrs/KuwaharaPmndrs.vue.d.ts +0 -27
- package/dist/core/pmndrs/LensDistortionPmndrs.vue.d.ts +0 -25
- package/dist/core/pmndrs/LinocutPmndrs.vue.d.ts +0 -15
- package/dist/core/pmndrs/NoisePmndrs.vue.d.ts +0 -15
- package/dist/core/pmndrs/OutlinePmndrs.vue.d.ts +0 -43
- package/dist/core/pmndrs/PixelationPmndrs.vue.d.ts +0 -12
- package/dist/core/pmndrs/SMAAPmndrs.vue.d.ts +0 -42
- package/dist/core/pmndrs/ScanlinePmndrs.vue.d.ts +0 -24
- package/dist/core/pmndrs/SepiaPmndrs.vue.d.ts +0 -16
- package/dist/core/pmndrs/ShockWavePmndrs.vue.d.ts +0 -29
- package/dist/core/pmndrs/TexturePmndrs.vue.d.ts +0 -21
- package/dist/core/pmndrs/TiltShiftPmndrs.vue.d.ts +0 -49
- package/dist/core/pmndrs/ToneMappingPmndrs.vue.d.ts +0 -36
- package/dist/core/pmndrs/VignettePmndrs.vue.d.ts +0 -15
- package/dist/core/pmndrs/composables/useEffectPmndrs.d.ts +0 -11
- package/dist/core/pmndrs/custom/barrel-blur/index.d.ts +0 -36
- package/dist/core/pmndrs/custom/fish-eye/index.d.ts +0 -44
- package/dist/core/pmndrs/custom/kuwahara/index.d.ts +0 -31
- package/dist/core/pmndrs/custom/linocut/index.d.ts +0 -27
- package/dist/core/pmndrs/index.d.ts +0 -33
- package/dist/core/three/EffectComposer.vue.d.ts +0 -20
- package/dist/core/three/Glitch.vue.d.ts +0 -15
- package/dist/core/three/Halftone.vue.d.ts +0 -23
- package/dist/core/three/Output.vue.d.ts +0 -5
- package/dist/core/three/Pixelation.vue.d.ts +0 -10
- package/dist/core/three/SMAA.vue.d.ts +0 -9
- package/dist/core/three/UnrealBloom.vue.d.ts +0 -14
- package/dist/core/three/composables/useEffect.d.ts +0 -10
- package/dist/core/three/index.d.ts +0 -9
- package/dist/index.d.ts +0 -2
- package/dist/tres-post-processing.umd.cjs +0 -1231
- package/dist/util/object.d.ts +0 -55
- package/dist/util/prop.d.ts +0 -40
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BlendFunction } from 'postprocessing';
|
|
2
|
-
import { KuwaharaEffect } from './custom/kuwahara/index';
|
|
3
|
-
export interface KuwaharaPmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The blend function for the effect.
|
|
6
|
-
* Determines how this effect blends with other effects.
|
|
7
|
-
*/
|
|
8
|
-
blendFunction?: BlendFunction;
|
|
9
|
-
/**
|
|
10
|
-
* The intensity of the barrel distortion.
|
|
11
|
-
* A value between 0 (no distortion) and 1 (maximum distortion).
|
|
12
|
-
*/
|
|
13
|
-
radius?: number;
|
|
14
|
-
/**
|
|
15
|
-
* The number of sectors.
|
|
16
|
-
* Determines the number of angular divisions used in the Kuwahara filter.
|
|
17
|
-
* Higher values can improve the quality of the effect but may reduce performance.
|
|
18
|
-
* The maximum value is defined by MAX_SECTOR_COUNT = 8 in the kuwahara/index.ts file.
|
|
19
|
-
* It is preferable that the value is an integer.
|
|
20
|
-
*/
|
|
21
|
-
sectorCount?: number;
|
|
22
|
-
}
|
|
23
|
-
declare const _default: import('vue').DefineComponent<KuwaharaPmndrsProps, {
|
|
24
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
25
|
-
effect: import('vue').ShallowRef<KuwaharaEffect | null>;
|
|
26
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KuwaharaPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LensDistortionEffect } from 'postprocessing';
|
|
2
|
-
import { Vector2 } from 'three';
|
|
3
|
-
export interface LensDistortionPmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The distortion effect strength.
|
|
6
|
-
*/
|
|
7
|
-
distortion?: Vector2 | [number, number];
|
|
8
|
-
/**
|
|
9
|
-
* The center point.
|
|
10
|
-
*/
|
|
11
|
-
principalPoint?: Vector2 | [number, number];
|
|
12
|
-
/**
|
|
13
|
-
* The focal length.
|
|
14
|
-
*/
|
|
15
|
-
focalLength?: Vector2 | [number, number];
|
|
16
|
-
/**
|
|
17
|
-
* The skew value.
|
|
18
|
-
*/
|
|
19
|
-
skew?: number;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: import('vue').DefineComponent<LensDistortionPmndrsProps, {
|
|
22
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
23
|
-
effect: import('vue').ShallowRef<LensDistortionEffect | null>;
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LensDistortionPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BlendFunction } from 'postprocessing';
|
|
2
|
-
import { LinocutEffect } from './custom/linocut/index';
|
|
3
|
-
import { Vector2 } from 'three';
|
|
4
|
-
export interface LinocutPmndrsProps {
|
|
5
|
-
blendFunction?: BlendFunction;
|
|
6
|
-
scale?: number;
|
|
7
|
-
noiseScale?: number;
|
|
8
|
-
center?: Vector2 | [number, number];
|
|
9
|
-
rotation?: number;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<LinocutPmndrsProps, {
|
|
12
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
13
|
-
effect: import('vue').ShallowRef<LinocutEffect | null>;
|
|
14
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LinocutPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, NoiseEffect } from 'postprocessing';
|
|
2
|
-
export interface NoisePmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the noise should be multiplied with the input color.
|
|
5
|
-
*/
|
|
6
|
-
premultiply?: boolean;
|
|
7
|
-
blendFunction?: BlendFunction;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: import('vue').DefineComponent<NoisePmndrsProps, {
|
|
10
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
11
|
-
effect: import('vue').ShallowRef<NoiseEffect | null>;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NoisePmndrsProps> & Readonly<{}>, {
|
|
13
|
-
premultiply: boolean;
|
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TresColor } from '@tresjs/core';
|
|
2
|
-
import { BlendFunction, KernelSize, OutlineEffect } from 'postprocessing';
|
|
3
|
-
import { Object3D, Texture } from 'three';
|
|
4
|
-
export interface OutlinePmndrsProps {
|
|
5
|
-
/**
|
|
6
|
-
* The objects in the scene which should have an outline.
|
|
7
|
-
*/
|
|
8
|
-
outlinedObjects: Object3D[];
|
|
9
|
-
blur?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Whether occluded parts of selected objects should be visible
|
|
12
|
-
*/
|
|
13
|
-
xRay?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* The blur kernel size. Must be used with blur being true.
|
|
16
|
-
*/
|
|
17
|
-
kernelSize?: KernelSize;
|
|
18
|
-
/**
|
|
19
|
-
* The pulse speed. A value of zero disables the pulse effect.
|
|
20
|
-
*/
|
|
21
|
-
pulseSpeed?: number;
|
|
22
|
-
resolutionX?: number;
|
|
23
|
-
resolutionY?: number;
|
|
24
|
-
edgeStrength?: number;
|
|
25
|
-
patternScale?: number;
|
|
26
|
-
/**
|
|
27
|
-
* The number of samples used for multisample antialiasing. Requires WebGL 2.
|
|
28
|
-
*/
|
|
29
|
-
multisampling?: number;
|
|
30
|
-
blendFunction?: BlendFunction;
|
|
31
|
-
patternTexture?: Texture;
|
|
32
|
-
resolutionScale?: number;
|
|
33
|
-
hiddenEdgeColor?: TresColor;
|
|
34
|
-
visibleEdgeColor?: TresColor;
|
|
35
|
-
}
|
|
36
|
-
declare const _default: import('vue').DefineComponent<OutlinePmndrsProps, {
|
|
37
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
38
|
-
effect: import('vue').ShallowRef<OutlineEffect | null>;
|
|
39
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OutlinePmndrsProps> & Readonly<{}>, {
|
|
40
|
-
blur: boolean;
|
|
41
|
-
xRay: boolean;
|
|
42
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PixelationEffect } from 'postprocessing';
|
|
2
|
-
export interface PixelationPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The pixel granularity.
|
|
5
|
-
*/
|
|
6
|
-
granularity?: number;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: import('vue').DefineComponent<PixelationPmndrsProps, {
|
|
9
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
10
|
-
effect: import('vue').ShallowRef<PixelationEffect | null>;
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PixelationPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, EdgeDetectionMode, PredicationMode, SMAAPreset, EffectPass, SMAAEffect } from 'postprocessing';
|
|
2
|
-
export declare const DEBUG_MODE: {
|
|
3
|
-
readonly OFF: 0;
|
|
4
|
-
readonly EDGES: 1;
|
|
5
|
-
readonly WEIGHTS: 2;
|
|
6
|
-
};
|
|
7
|
-
export interface SMAAPmndrsProps {
|
|
8
|
-
/**
|
|
9
|
-
* The blend function.
|
|
10
|
-
*/
|
|
11
|
-
blendFunction?: BlendFunction;
|
|
12
|
-
/**
|
|
13
|
-
* The opacity of the effect.
|
|
14
|
-
*/
|
|
15
|
-
opacity?: number;
|
|
16
|
-
/**
|
|
17
|
-
* The preset configuration for SMAA (Subpixel Morphological Antialiasing).
|
|
18
|
-
*/
|
|
19
|
-
preset?: SMAAPreset;
|
|
20
|
-
/**
|
|
21
|
-
* The mode used for edge detection.
|
|
22
|
-
*/
|
|
23
|
-
edgeDetectionMode?: EdgeDetectionMode;
|
|
24
|
-
/**
|
|
25
|
-
* The mode used for predication to improve edge detection.
|
|
26
|
-
*/
|
|
27
|
-
predicationMode?: PredicationMode;
|
|
28
|
-
/**
|
|
29
|
-
* The debug mode for visualizing the effect.
|
|
30
|
-
*
|
|
31
|
-
* OPTIONS:
|
|
32
|
-
* - 0: OFF
|
|
33
|
-
* - 1: EDGES
|
|
34
|
-
* - 2: WEIGHTS
|
|
35
|
-
*/
|
|
36
|
-
debug?: typeof DEBUG_MODE[keyof typeof DEBUG_MODE];
|
|
37
|
-
}
|
|
38
|
-
declare const _default: import('vue').DefineComponent<SMAAPmndrsProps, {
|
|
39
|
-
pass: import('vue').ShallowRef<EffectPass | null>;
|
|
40
|
-
effect: import('vue').ShallowRef<SMAAEffect | null>;
|
|
41
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SMAAPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, ScanlineEffect } from 'postprocessing';
|
|
2
|
-
export interface ScanlinePmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The density of the scanlines.
|
|
9
|
-
*/
|
|
10
|
-
density?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The density of the scanlines.
|
|
13
|
-
*/
|
|
14
|
-
scrollSpeed?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The opacity of the scanlines.
|
|
17
|
-
*/
|
|
18
|
-
opacity?: number;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: import('vue').DefineComponent<ScanlinePmndrsProps, {
|
|
21
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
22
|
-
effect: import('vue').ShallowRef<ScanlineEffect | null>;
|
|
23
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScanlinePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, SepiaEffect } from 'postprocessing';
|
|
2
|
-
export interface SepiaPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The intensity of the sepia effect.
|
|
9
|
-
*/
|
|
10
|
-
intensity?: number;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: import('vue').DefineComponent<SepiaPmndrsProps, {
|
|
13
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
14
|
-
effect: import('vue').ShallowRef<SepiaEffect | null>;
|
|
15
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SepiaPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ShockWaveEffect } from 'postprocessing';
|
|
2
|
-
import { Vector3 } from 'three';
|
|
3
|
-
export interface ShockWavePmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The position of the shockwave.
|
|
6
|
-
*/
|
|
7
|
-
position?: Vector3 | [number, number, number];
|
|
8
|
-
/**
|
|
9
|
-
* The amplitude of the shockwave.
|
|
10
|
-
*/
|
|
11
|
-
amplitude?: number;
|
|
12
|
-
/**
|
|
13
|
-
* The speed of the shockwave.
|
|
14
|
-
*/
|
|
15
|
-
speed?: number;
|
|
16
|
-
/**
|
|
17
|
-
* The max radius of the shockwave.
|
|
18
|
-
*/
|
|
19
|
-
maxRadius?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The wave size of the shockwave.
|
|
22
|
-
*/
|
|
23
|
-
waveSize?: number;
|
|
24
|
-
}
|
|
25
|
-
declare const _default: import('vue').DefineComponent<ShockWavePmndrsProps, {
|
|
26
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
27
|
-
effect: import('vue').ShallowRef<ShockWaveEffect | null>;
|
|
28
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ShockWavePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, TextureEffect } from 'postprocessing';
|
|
2
|
-
import { Texture } from 'three';
|
|
3
|
-
export interface TexturePmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The blend function.
|
|
6
|
-
*/
|
|
7
|
-
blendFunction?: BlendFunction;
|
|
8
|
-
/**
|
|
9
|
-
* The texture.
|
|
10
|
-
*/
|
|
11
|
-
texture?: Texture;
|
|
12
|
-
/**
|
|
13
|
-
* The opacity of the effect.
|
|
14
|
-
*/
|
|
15
|
-
opacity?: number;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: import('vue').DefineComponent<TexturePmndrsProps, {
|
|
18
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
19
|
-
effect: import('vue').ShallowRef<TextureEffect | null>;
|
|
20
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TexturePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, KernelSize, TiltShiftEffect } from 'postprocessing';
|
|
2
|
-
export interface TiltShiftPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function. Defines how the effect blends with the original scene.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The relative offset of the focus area.
|
|
9
|
-
* Range: [-0.5, 0.5]
|
|
10
|
-
*/
|
|
11
|
-
offset?: number;
|
|
12
|
-
/**
|
|
13
|
-
* The rotation of the focus area in radians.
|
|
14
|
-
* Range: [-π, π]
|
|
15
|
-
*/
|
|
16
|
-
rotation?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The relative size of the focus area.
|
|
19
|
-
* Range: [0, 1]
|
|
20
|
-
*/
|
|
21
|
-
focusArea?: number;
|
|
22
|
-
/**
|
|
23
|
-
* The softness of the focus area edges.
|
|
24
|
-
* Range: [0, 1]
|
|
25
|
-
*/
|
|
26
|
-
feather?: number;
|
|
27
|
-
/**
|
|
28
|
-
* The blur kernel size.
|
|
29
|
-
*/
|
|
30
|
-
kernelSize?: KernelSize;
|
|
31
|
-
/**
|
|
32
|
-
* The resolution scale.
|
|
33
|
-
* Range: [0.1, 1]
|
|
34
|
-
*/
|
|
35
|
-
resolutionScale?: number;
|
|
36
|
-
/**
|
|
37
|
-
* The horizontal resolution.
|
|
38
|
-
*/
|
|
39
|
-
resolutionX?: number;
|
|
40
|
-
/**
|
|
41
|
-
* The vertical resolution.
|
|
42
|
-
*/
|
|
43
|
-
resolutionY?: number;
|
|
44
|
-
}
|
|
45
|
-
declare const _default: import('vue').DefineComponent<TiltShiftPmndrsProps, {
|
|
46
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
47
|
-
effect: import('vue').ShallowRef<TiltShiftEffect | null>;
|
|
48
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TiltShiftPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
49
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, ToneMappingMode, ToneMappingEffect } from 'postprocessing';
|
|
2
|
-
export interface ToneMappingPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The tone mapping mode.
|
|
5
|
-
*/
|
|
6
|
-
mode?: ToneMappingMode;
|
|
7
|
-
/**
|
|
8
|
-
* The blend function.
|
|
9
|
-
*/
|
|
10
|
-
blendFunction?: BlendFunction;
|
|
11
|
-
/**
|
|
12
|
-
* The resolution for luminance texture. The resolution of the luminance texture. Must be a power of two.
|
|
13
|
-
*/
|
|
14
|
-
resolution?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The average luminance. Only for `REINHARD2`.
|
|
17
|
-
*/
|
|
18
|
-
averageLuminance?: number;
|
|
19
|
-
/**
|
|
20
|
-
* The middle grey factor. Only for `REINHARD2`.
|
|
21
|
-
*/
|
|
22
|
-
middleGrey?: number;
|
|
23
|
-
/**
|
|
24
|
-
* The minimum luminance. Only for `REINHARD2`.
|
|
25
|
-
*/
|
|
26
|
-
minLuminance?: number;
|
|
27
|
-
/**
|
|
28
|
-
* The white point. Only for `REINHARD2`.
|
|
29
|
-
*/
|
|
30
|
-
whitePoint?: number;
|
|
31
|
-
}
|
|
32
|
-
declare const _default: import('vue').DefineComponent<ToneMappingPmndrsProps, {
|
|
33
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
34
|
-
effect: import('vue').ShallowRef<ToneMappingEffect | null>;
|
|
35
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ToneMappingPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, VignetteTechnique, VignetteEffect } from 'postprocessing';
|
|
2
|
-
export interface VignettePmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the noise should be multiplied with the input color.
|
|
5
|
-
*/
|
|
6
|
-
technique?: VignetteTechnique;
|
|
7
|
-
blendFunction?: BlendFunction;
|
|
8
|
-
offset?: number;
|
|
9
|
-
darkness?: number;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<VignettePmndrsProps, {
|
|
12
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
13
|
-
effect: import('vue').ShallowRef<VignetteEffect | null>;
|
|
14
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VignettePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Effect, EffectPass } from 'postprocessing';
|
|
2
|
-
import { Reactive, ShallowRef } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* @param newEffectFunction - A function that returns a new effect instance.
|
|
5
|
-
* @param passDependencies - A reactive object that the pass depends on (usually props). Changes to this object will trigger re-rendering.
|
|
6
|
-
* @param dependencyFieldsTriggeringRecreation - fields in passDependencies that require effect recreation when changed
|
|
7
|
-
*/
|
|
8
|
-
export declare const useEffectPmndrs: <T extends Effect, D extends Record<PropertyKey, any>>(newEffectFunction: () => T, passDependencies: Reactive<D>, dependencyFieldsTriggeringRecreation?: (keyof D)[]) => {
|
|
9
|
-
pass: ShallowRef<EffectPass | null>;
|
|
10
|
-
effect: ShallowRef<T | null>;
|
|
11
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
2
|
-
import { BlendFunction, Effect } from 'postprocessing';
|
|
3
|
-
/**
|
|
4
|
-
* BarrelBlurEffect - A custom effect for applying a barrel distortion
|
|
5
|
-
* with chromatic aberration blur.
|
|
6
|
-
*/
|
|
7
|
-
export declare class BarrelBlurEffect extends Effect {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new BarrelBlurEffect instance.
|
|
10
|
-
*
|
|
11
|
-
* @param {object} [options] - Configuration options for the effect.
|
|
12
|
-
* @param {BlendFunction} [options.blendFunction] - Blend mode.
|
|
13
|
-
* @param {number} [options.amount] - Intensity of the barrel distortion (0 to 1).
|
|
14
|
-
* @param {Vector2} [options.offset] - Offset of the barrel distortion center (0 to 1 for both x and y). This allows you to change the position of the distortion effect.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
constructor({ blendFunction, amount, offset }?: {
|
|
18
|
-
blendFunction?: BlendFunction | undefined;
|
|
19
|
-
amount?: number | undefined;
|
|
20
|
-
offset?: Vector2 | undefined;
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* The amount.
|
|
24
|
-
*
|
|
25
|
-
* @type {number}
|
|
26
|
-
*/
|
|
27
|
-
get amount(): any;
|
|
28
|
-
set amount(value: any);
|
|
29
|
-
/**
|
|
30
|
-
* The offset.
|
|
31
|
-
*
|
|
32
|
-
* @type {Vector2}
|
|
33
|
-
*/
|
|
34
|
-
get offset(): any;
|
|
35
|
-
set offset(value: any);
|
|
36
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
2
|
-
import { BlendFunction, Effect } from 'postprocessing';
|
|
3
|
-
/**
|
|
4
|
-
* FishEyeEffect - A custom effect for applying a fish-eye distortion
|
|
5
|
-
*/
|
|
6
|
-
export declare class FishEyeEffect extends Effect {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new FishEyeEffect instance.
|
|
9
|
-
*
|
|
10
|
-
* @param {object} [options] - Configuration options for the effect.
|
|
11
|
-
* @param {BlendFunction} [options.blendFunction] - Blend mode.
|
|
12
|
-
* @param {Vector2} [options.lensS] - Lens scale.
|
|
13
|
-
* @param {Vector2} [options.lensF] - Lens factor.
|
|
14
|
-
* @param {number} [options.scale] - Scale.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
constructor({ blendFunction, lensS, lensF, scale }?: {
|
|
18
|
-
blendFunction?: BlendFunction | undefined;
|
|
19
|
-
lensS?: Vector2 | undefined;
|
|
20
|
-
lensF?: Vector2 | undefined;
|
|
21
|
-
scale?: number | undefined;
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* The lensS.
|
|
25
|
-
*
|
|
26
|
-
* @type {Vector2}
|
|
27
|
-
*/
|
|
28
|
-
get lensS(): any;
|
|
29
|
-
set lensS(value: any);
|
|
30
|
-
/**
|
|
31
|
-
* The lensF.
|
|
32
|
-
*
|
|
33
|
-
* @type {Vector2}
|
|
34
|
-
*/
|
|
35
|
-
get lensF(): any;
|
|
36
|
-
set lensF(value: any);
|
|
37
|
-
/**
|
|
38
|
-
* The scale.
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
*/
|
|
42
|
-
get scale(): any;
|
|
43
|
-
set scale(value: any);
|
|
44
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, Effect } from 'postprocessing';
|
|
2
|
-
export declare class KuwaharaEffect extends Effect {
|
|
3
|
-
/**
|
|
4
|
-
* Creates a new KuwaharaEffect instance.
|
|
5
|
-
*
|
|
6
|
-
* @param {object} [options] - Configuration options for the effect.
|
|
7
|
-
* @param {BlendFunction} [options.blendFunction] - Blend mode.
|
|
8
|
-
* @param {number} [options.radius] - Intensity of the effect.
|
|
9
|
-
* @param {number} [options.sectorCount] - Number of sectors.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
constructor({ blendFunction, radius, sectorCount }?: {
|
|
13
|
-
blendFunction?: BlendFunction | undefined;
|
|
14
|
-
radius?: number | undefined;
|
|
15
|
-
sectorCount?: number | undefined;
|
|
16
|
-
});
|
|
17
|
-
/**
|
|
18
|
-
* The radius.
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
*/
|
|
22
|
-
get radius(): any;
|
|
23
|
-
set radius(value: any);
|
|
24
|
-
/**
|
|
25
|
-
* The sector count.
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
*/
|
|
29
|
-
get sectorCount(): any;
|
|
30
|
-
set sectorCount(value: any);
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, Effect } from 'postprocessing';
|
|
2
|
-
/**
|
|
3
|
-
* LinocutEffect - A custom effect for applying a linocut shader effect.
|
|
4
|
-
*/
|
|
5
|
-
export declare class LinocutEffect extends Effect {
|
|
6
|
-
/**
|
|
7
|
-
* Creates a new LinocutEffect instance.
|
|
8
|
-
*
|
|
9
|
-
* @param {LinocutPmndrsProps} [options] - Configuration options for the effect.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
constructor({ blendFunction, scale, noiseScale, center, rotation }?: {
|
|
13
|
-
blendFunction?: BlendFunction | undefined;
|
|
14
|
-
scale?: number | undefined;
|
|
15
|
-
noiseScale?: number | undefined;
|
|
16
|
-
center?: number[] | undefined;
|
|
17
|
-
rotation?: number | undefined;
|
|
18
|
-
});
|
|
19
|
-
get scale(): any;
|
|
20
|
-
set scale(value: any);
|
|
21
|
-
get noiseScale(): any;
|
|
22
|
-
set noiseScale(value: any);
|
|
23
|
-
get center(): any;
|
|
24
|
-
set center(value: any);
|
|
25
|
-
get rotation(): any;
|
|
26
|
-
set rotation(value: any);
|
|
27
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as BloomPmndrs, BloomPmndrsProps } from './BloomPmndrs.vue';
|
|
2
|
-
import { useEffectPmndrs } from './composables/useEffectPmndrs';
|
|
3
|
-
import { default as DepthOfFieldPmndrs, DepthOfFieldPmndrsProps } from './DepthOfFieldPmndrs.vue';
|
|
4
|
-
import { default as EffectComposerPmndrs, EffectComposerPmndrsProps } from './EffectComposerPmndrs.vue';
|
|
5
|
-
import { default as GlitchPmndrs, GlitchPmndrsProps } from './GlitchPmndrs.vue';
|
|
6
|
-
import { default as NoisePmndrs, NoisePmndrsProps } from './NoisePmndrs.vue';
|
|
7
|
-
import { default as OutlinePmndrs, OutlinePmndrsProps } from './OutlinePmndrs.vue';
|
|
8
|
-
import { default as PixelationPmndrs, PixelationPmndrsProps } from './PixelationPmndrs.vue';
|
|
9
|
-
import { default as VignettePmndrs, VignettePmndrsProps } from './VignettePmndrs.vue';
|
|
10
|
-
import { default as BarrelBlurPmndrs, BarrelBlurPmndrsProps } from './BarrelBlurPmndrs.vue';
|
|
11
|
-
import { default as ToneMappingPmndrs, ToneMappingPmndrsProps } from './ToneMappingPmndrs.vue';
|
|
12
|
-
import { default as ChromaticAberrationPmndrs, ChromaticAberrationPmndrsProps } from './ChromaticAberrationPmndrs.vue';
|
|
13
|
-
import { default as HueSaturationPmndrs, HueSaturationPmndrsProps } from './HueSaturationPmndrs.vue';
|
|
14
|
-
import { default as ScanlinePmndrs, ScanlinePmndrsProps } from './ScanlinePmndrs.vue';
|
|
15
|
-
import { default as KuwaharaPmndrs, KuwaharaPmndrsProps } from './KuwaharaPmndrs.vue';
|
|
16
|
-
import { default as ColorAveragePmndrs, ColorAveragePmndrsProps } from './ColorAveragePmndrs.vue';
|
|
17
|
-
import { default as LensDistortionPmndrs, LensDistortionPmndrsProps } from './LensDistortionPmndrs.vue';
|
|
18
|
-
import { default as ShockWavePmndrs, ShockWavePmndrsProps } from './ShockWavePmndrs.vue';
|
|
19
|
-
import { default as TiltShiftPmndrs, TiltShiftPmndrsProps } from './TiltShiftPmndrs.vue';
|
|
20
|
-
import { default as DotScreenPmndrs, DotScreenPmndrsProps } from './DotScreenPmndrs.vue';
|
|
21
|
-
import { default as SepiaPmndrs, SepiaPmndrsProps } from './SepiaPmndrs.vue';
|
|
22
|
-
import { default as LinocutPmndrs, LinocutPmndrsProps } from './LinocutPmndrs.vue';
|
|
23
|
-
import { default as DepthPickingPassPmndrs, DepthPickingPassPmndrsProps } from './DepthPickingPassPmndrs.vue';
|
|
24
|
-
import { default as GodRaysPmndrs, GodRaysPmndrsProps } from './GodRaysPmndrs.vue';
|
|
25
|
-
import { default as ColorDepthPmndrs, ColorDepthPmndrsProps } from './ColorDepthPmndrs.vue';
|
|
26
|
-
import { default as GridPmndrs, GridPmndrsProps } from './GridPmndrs.vue';
|
|
27
|
-
import { default as FishEyePmndrs, FishEyePmndrsProps } from './FishEyePmndrs.vue';
|
|
28
|
-
import { default as BrightnessContrastPmndrs, BrightnessContrastPmndrsProps } from './BrightnessContrastPmndrs.vue';
|
|
29
|
-
import { default as SMAAPmndrs, SMAAPmndrsProps } from './SMAAPmndrs.vue';
|
|
30
|
-
import { default as FXAAPmndrs, FXAAPmndrsProps } from './FXAAPmndrs.vue';
|
|
31
|
-
import { default as TexturePmndrs, TexturePmndrsProps } from './TexturePmndrs.vue';
|
|
32
|
-
import { default as ASCIIPmndrs, ASCIIPmndrsProps } from './ASCIIPmndrs.vue';
|
|
33
|
-
export { BloomPmndrs, DepthOfFieldPmndrs, EffectComposerPmndrs, GlitchPmndrs, NoisePmndrs, OutlinePmndrs, PixelationPmndrs, useEffectPmndrs, VignettePmndrs, BarrelBlurPmndrs, HueSaturationPmndrs, ToneMappingPmndrs, ChromaticAberrationPmndrs, ScanlinePmndrs, KuwaharaPmndrs, ColorAveragePmndrs, LensDistortionPmndrs, ShockWavePmndrs, TiltShiftPmndrs, DotScreenPmndrs, SepiaPmndrs, LinocutPmndrs, DepthPickingPassPmndrs, GodRaysPmndrs, ColorDepthPmndrs, GridPmndrs, FishEyePmndrs, BrightnessContrastPmndrs, SMAAPmndrs, FXAAPmndrs, TexturePmndrs, ASCIIPmndrs, BloomPmndrsProps, DepthOfFieldPmndrsProps, EffectComposerPmndrsProps, GlitchPmndrsProps, NoisePmndrsProps, OutlinePmndrsProps, PixelationPmndrsProps, VignettePmndrsProps, BarrelBlurPmndrsProps, ToneMappingPmndrsProps, ChromaticAberrationPmndrsProps, HueSaturationPmndrsProps, ScanlinePmndrsProps, KuwaharaPmndrsProps, ColorAveragePmndrsProps, LensDistortionPmndrsProps, ShockWavePmndrsProps, TiltShiftPmndrsProps, DotScreenPmndrsProps, SepiaPmndrsProps, LinocutPmndrsProps, DepthPickingPassPmndrsProps, GodRaysPmndrsProps, ColorDepthPmndrsProps, GridPmndrsProps, FishEyePmndrsProps, BrightnessContrastPmndrsProps, SMAAPmndrsProps, FXAAPmndrsProps, TexturePmndrsProps, ASCIIPmndrsProps, };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
2
|
-
import { InjectionKey, ShallowRef } from 'vue';
|
|
3
|
-
export declare const effectComposerInjectionKey: InjectionKey<ShallowRef<EffectComposer | null>>;
|
|
4
|
-
export interface EffectComposerProps {
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
withoutRenderPass?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<EffectComposerProps, {
|
|
9
|
-
composer: ShallowRef<EffectComposer | null>;
|
|
10
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EffectComposerProps> & Readonly<{}>, {
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
13
|
-
default?(_: {}): any;
|
|
14
|
-
}>;
|
|
15
|
-
export default _default;
|
|
16
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
-
new (): {
|
|
18
|
-
$slots: S;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GlitchPass } from 'three/examples/jsm/postprocessing/GlitchPass.js';
|
|
2
|
-
export interface GlitchProps {
|
|
3
|
-
/**
|
|
4
|
-
* The size of the generated noise map
|
|
5
|
-
*/
|
|
6
|
-
dtSize?: number;
|
|
7
|
-
/**
|
|
8
|
-
* If true, the glitch effect will be more wild 🤪
|
|
9
|
-
*/
|
|
10
|
-
goWild?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: import('vue').DefineComponent<GlitchProps, {
|
|
13
|
-
pass: import('vue').ShallowRef<GlitchPass>;
|
|
14
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GlitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Blending } from 'three/src/constants.js';
|
|
2
|
-
import { HalftonePass } from 'three/examples/jsm/postprocessing/HalftonePass.js';
|
|
3
|
-
export declare enum HalftoneShape {
|
|
4
|
-
Dot = 1,
|
|
5
|
-
Ellipse = 2,
|
|
6
|
-
Line = 3,
|
|
7
|
-
Square = 4
|
|
8
|
-
}
|
|
9
|
-
export interface HalftoneProps {
|
|
10
|
-
shape?: HalftoneShape;
|
|
11
|
-
radius?: number;
|
|
12
|
-
rotateR?: number;
|
|
13
|
-
rotateG?: number;
|
|
14
|
-
rotateB?: number;
|
|
15
|
-
scatter?: number;
|
|
16
|
-
blending?: number;
|
|
17
|
-
greyscale?: boolean;
|
|
18
|
-
blendingMode?: Blending;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: import('vue').DefineComponent<HalftoneProps, {
|
|
21
|
-
pass: import('vue').ShallowRef<HalftonePass>;
|
|
22
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HalftoneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { OutputPass } from 'three/examples/jsm/postprocessing/OutputPass.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
-
pass: import('vue').ShallowRef<OutputPass>;
|
|
4
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
export default _default;
|