@tresjs/post-processing 3.1.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/dist/tres-post-processing.d.ts +1226 -2
- package/dist/tres-post-processing.js +2432 -3380
- package/package.json +15 -15
- 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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/post-processing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"description": "Post-processing library for TresJS",
|
|
6
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,13 +24,12 @@
|
|
|
24
24
|
"Tino Koch (https://github.com/Tinoooo)"
|
|
25
25
|
],
|
|
26
26
|
"exports": {
|
|
27
|
-
".":
|
|
28
|
-
|
|
29
|
-
"import": "./dist/tres-post-processing.js",
|
|
30
|
-
"require": "./dist/tres-post-processing.cjs"
|
|
31
|
-
},
|
|
32
|
-
"./*": "./*"
|
|
27
|
+
".": "./dist/tres-post-processing.js",
|
|
28
|
+
"./package.json": "./package.json"
|
|
33
29
|
},
|
|
30
|
+
"main": "./dist/tres-post-processing.js",
|
|
31
|
+
"module": "./dist/tres-post-processing.js",
|
|
32
|
+
"types": "./dist/tres-post-processing.d.ts",
|
|
34
33
|
"files": [
|
|
35
34
|
"*.d.ts",
|
|
36
35
|
"dist"
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
"access": "public"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"@tresjs/core": "5.1.
|
|
41
|
+
"@tresjs/core": "5.1.1",
|
|
43
42
|
"three": ">=0.169",
|
|
44
43
|
"vue": ">=3.4"
|
|
45
44
|
},
|
|
@@ -56,15 +55,16 @@
|
|
|
56
55
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
57
56
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
58
57
|
"three": "^0.180.0",
|
|
58
|
+
"tsdown": "0.16.1",
|
|
59
59
|
"typescript": "^5.8.3",
|
|
60
|
-
"vite": "^7.1.
|
|
60
|
+
"vite": "^7.1.9",
|
|
61
61
|
"vite-plugin-banner": "^0.8.1",
|
|
62
62
|
"vite-plugin-dts": "4.5.4",
|
|
63
|
-
"vue": "^3.5.
|
|
64
|
-
"vue-tsc": "^3.
|
|
65
|
-
"@tresjs/
|
|
66
|
-
"@tresjs/
|
|
67
|
-
"@tresjs/
|
|
63
|
+
"vue": "^3.5.22",
|
|
64
|
+
"vue-tsc": "^3.1.1",
|
|
65
|
+
"@tresjs/core": "5.1.1",
|
|
66
|
+
"@tresjs/eslint-config": "1.5.1",
|
|
67
|
+
"@tresjs/leches": "1.1.1"
|
|
68
68
|
},
|
|
69
69
|
"nx": {
|
|
70
70
|
"implicitDependencies": [
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"scripts": {
|
|
75
75
|
"dev": "cd playground && npm run dev",
|
|
76
76
|
"playground": "cd playground && npm run dev",
|
|
77
|
-
"build": "
|
|
77
|
+
"build": "tsdown",
|
|
78
78
|
"preview": "vite preview",
|
|
79
79
|
"lint": "eslint .",
|
|
80
80
|
"typecheck": "vue-tsc --noEmit",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, ASCIIEffect, ASCIITexture } from 'postprocessing';
|
|
2
|
-
import { Color } from 'three';
|
|
3
|
-
type ASCIITextureOptions = ConstructorParameters<typeof ASCIITexture>[0];
|
|
4
|
-
export interface ASCIIPmndrsProps {
|
|
5
|
-
/**
|
|
6
|
-
* The blend function.
|
|
7
|
-
*/
|
|
8
|
-
blendFunction?: BlendFunction;
|
|
9
|
-
/**
|
|
10
|
-
* The opacity of the effect.
|
|
11
|
-
*/
|
|
12
|
-
opacity?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The cell size.
|
|
15
|
-
*/
|
|
16
|
-
cellSize?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Controls whether the effect should be inverted.
|
|
19
|
-
*/
|
|
20
|
-
inverted?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The color of the effect.
|
|
23
|
-
*/
|
|
24
|
-
color?: Color | string | number | null;
|
|
25
|
-
/**
|
|
26
|
-
* Controls whether the effect should use the scene color.
|
|
27
|
-
* If `true`, it overrides the `color` props.
|
|
28
|
-
*/
|
|
29
|
-
useSceneColor?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* The ASCII texture options to use for creating an ASCIITexture instance.
|
|
32
|
-
* https://pmndrs.github.io/postprocessing/public/docs/class/src/textures/ASCIITexture.js~ASCIITexture.html
|
|
33
|
-
*/
|
|
34
|
-
asciiTexture?: ASCIITextureOptions;
|
|
35
|
-
}
|
|
36
|
-
declare const _default: import('vue').DefineComponent<ASCIIPmndrsProps, {
|
|
37
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
38
|
-
effect: import('vue').ShallowRef<ASCIIEffect | null>;
|
|
39
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ASCIIPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BlendFunction } from 'postprocessing';
|
|
2
|
-
import { Vector2 } from 'three';
|
|
3
|
-
import { BarrelBlurEffect } from './custom/barrel-blur/index';
|
|
4
|
-
export interface BarrelBlurPmndrsProps {
|
|
5
|
-
/**
|
|
6
|
-
* The blend function for the effect.
|
|
7
|
-
* Determines how this effect blends with other effects.
|
|
8
|
-
*/
|
|
9
|
-
blendFunction?: BlendFunction;
|
|
10
|
-
/**
|
|
11
|
-
* The intensity of the barrel distortion.
|
|
12
|
-
* A value between 0 (no distortion) and 1 (maximum distortion).
|
|
13
|
-
*/
|
|
14
|
-
amount?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The offset of the barrel distortion center.
|
|
17
|
-
* A Vector2 value or an A value or an array of two numbers, with both values ranging from 0 to 1.
|
|
18
|
-
* This allows you to change the position of the distortion effect.
|
|
19
|
-
*/
|
|
20
|
-
offset?: Vector2 | [number, number];
|
|
21
|
-
}
|
|
22
|
-
declare const _default: import('vue').DefineComponent<BarrelBlurPmndrsProps, {
|
|
23
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
24
|
-
effect: import('vue').ShallowRef<BarrelBlurEffect | null>;
|
|
25
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BarrelBlurPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
export default _default;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, KernelSize, BloomEffect } from 'postprocessing';
|
|
2
|
-
export interface BloomPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function of this effect.
|
|
5
|
-
* @default BlendFunction.SCREEN
|
|
6
|
-
* @type {BlendFunction}
|
|
7
|
-
* @memberof BloomPmndrsProps
|
|
8
|
-
*/
|
|
9
|
-
blendFunction?: BlendFunction;
|
|
10
|
-
/**
|
|
11
|
-
* The intensity of the bloom effect.
|
|
12
|
-
*
|
|
13
|
-
* @default 1
|
|
14
|
-
* @type {number}
|
|
15
|
-
* @memberof BloomProps
|
|
16
|
-
*/
|
|
17
|
-
intensity?: number;
|
|
18
|
-
/**
|
|
19
|
-
* The kernel size.
|
|
20
|
-
*
|
|
21
|
-
* @default KernelSize.LARGE
|
|
22
|
-
*
|
|
23
|
-
* @type {KernelSize}
|
|
24
|
-
* @memberof BloomPmndrsProps
|
|
25
|
-
*/
|
|
26
|
-
kernelSize?: KernelSize;
|
|
27
|
-
/**
|
|
28
|
-
* The luminance threshold. Raise this value to mask out darker elements in the scene. Range is [0, 1].
|
|
29
|
-
*
|
|
30
|
-
* @default 0.9
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof BloomPmndrsProps
|
|
34
|
-
*/
|
|
35
|
-
luminanceThreshold?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Controls the smoothness of the luminance threshold. Range is [0, 1].
|
|
38
|
-
*
|
|
39
|
-
* @default 0.025
|
|
40
|
-
*
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof BloomPmndrsProps
|
|
43
|
-
*/
|
|
44
|
-
luminanceSmoothing?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Enables mip map blur.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof BloomPmndrsProps
|
|
52
|
-
*/
|
|
53
|
-
mipmapBlur?: boolean;
|
|
54
|
-
}
|
|
55
|
-
declare const _default: import('vue').DefineComponent<BloomPmndrsProps, {
|
|
56
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
57
|
-
effect: import('vue').ShallowRef<BloomEffect | null>;
|
|
58
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BloomPmndrsProps> & Readonly<{}>, {
|
|
59
|
-
mipmapBlur: boolean;
|
|
60
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
61
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, BrightnessContrastEffect } from 'postprocessing';
|
|
2
|
-
export interface BrightnessContrastPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The brightness of the effect.
|
|
9
|
-
*/
|
|
10
|
-
brightness?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The contrast of the effect.
|
|
13
|
-
*/
|
|
14
|
-
contrast?: number;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: import('vue').DefineComponent<BrightnessContrastPmndrsProps, {
|
|
17
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
18
|
-
effect: import('vue').ShallowRef<BrightnessContrastEffect | null>;
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BrightnessContrastPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ChromaticAberrationEffect, BlendFunction } from 'postprocessing';
|
|
2
|
-
import { Vector2 } from 'three';
|
|
3
|
-
export interface ChromaticAberrationPmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The blend function.
|
|
6
|
-
*/
|
|
7
|
-
blendFunction?: BlendFunction;
|
|
8
|
-
/**
|
|
9
|
-
* The color offset.
|
|
10
|
-
*/
|
|
11
|
-
offset?: Vector2;
|
|
12
|
-
/**
|
|
13
|
-
* Whether the effect should be modulated with a radial gradient.
|
|
14
|
-
*/
|
|
15
|
-
radialModulation?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The modulation offset, applicable if radial modulation is enabled.
|
|
18
|
-
*/
|
|
19
|
-
modulationOffset?: number;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: import('vue').DefineComponent<ChromaticAberrationPmndrsProps, {
|
|
22
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
23
|
-
effect: import('vue').ShallowRef<ChromaticAberrationEffect | null>;
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChromaticAberrationPmndrsProps> & Readonly<{}>, {
|
|
25
|
-
radialModulation: boolean;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, ColorAverageEffect } from 'postprocessing';
|
|
2
|
-
export interface ColorAveragePmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The opacity of the color Average.
|
|
9
|
-
*/
|
|
10
|
-
opacity?: number;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: import('vue').DefineComponent<ColorAveragePmndrsProps, {
|
|
13
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
14
|
-
effect: import('vue').ShallowRef<ColorAverageEffect | null>;
|
|
15
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColorAveragePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, ColorDepthEffect } from 'postprocessing';
|
|
2
|
-
export interface ColorDepthPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The color bit depth.
|
|
9
|
-
*/
|
|
10
|
-
bits?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The opacity of the effect.
|
|
13
|
-
*/
|
|
14
|
-
opacity?: number;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: import('vue').DefineComponent<ColorDepthPmndrsProps, {
|
|
17
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
18
|
-
effect: import('vue').ShallowRef<ColorDepthEffect | null>;
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColorDepthPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, DepthOfFieldEffect } from 'postprocessing';
|
|
2
|
-
export interface DepthOfFieldPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function of this effect.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The focus distance in world units.
|
|
9
|
-
*/
|
|
10
|
-
worldFocusDistance?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The focus range in world units.
|
|
13
|
-
*/
|
|
14
|
-
worldFocusRange?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The normalized focus distance. Range is [0.0, 1.0].
|
|
17
|
-
*/
|
|
18
|
-
focusDistance?: number;
|
|
19
|
-
/**
|
|
20
|
-
* The focus range. Range is [0.0, 1.0].
|
|
21
|
-
*/
|
|
22
|
-
focusRange?: number;
|
|
23
|
-
/**
|
|
24
|
-
* The scale of the bokeh blur.
|
|
25
|
-
*/
|
|
26
|
-
bokehScale?: number;
|
|
27
|
-
resolutionScale?: number;
|
|
28
|
-
resolutionX?: number;
|
|
29
|
-
resolutionY?: number;
|
|
30
|
-
}
|
|
31
|
-
declare const _default: import('vue').DefineComponent<DepthOfFieldPmndrsProps, {
|
|
32
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
33
|
-
effect: import('vue').ShallowRef<DepthOfFieldEffect | null>;
|
|
34
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DepthOfFieldPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DepthPackingStrategies } from 'three';
|
|
2
|
-
import { DepthCopyMode, DepthPickingPass } from 'postprocessing';
|
|
3
|
-
export interface DepthPickingPassPmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The depth packing strategy.
|
|
6
|
-
* Default: RGBADepthPacking
|
|
7
|
-
*/
|
|
8
|
-
depthPacking?: DepthPackingStrategies;
|
|
9
|
-
/**
|
|
10
|
-
* The depth copy mode.
|
|
11
|
-
* Default: DepthCopyMode.SINGLE
|
|
12
|
-
*/
|
|
13
|
-
mode?: DepthCopyMode;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: import('vue').DefineComponent<DepthPickingPassPmndrsProps, {
|
|
16
|
-
pass: DepthPickingPass;
|
|
17
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DepthPickingPassPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, DotScreenEffect } from 'postprocessing';
|
|
2
|
-
export interface DotScreenPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The angle of the dot pattern.
|
|
5
|
-
* Default: 1.57
|
|
6
|
-
*/
|
|
7
|
-
angle?: number;
|
|
8
|
-
/**
|
|
9
|
-
* The scale of the dot pattern.
|
|
10
|
-
* Default: 1.0
|
|
11
|
-
*/
|
|
12
|
-
scale?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The blend function. Defines how the effect blends with the original scene.
|
|
15
|
-
*/
|
|
16
|
-
blendFunction?: BlendFunction;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: import('vue').DefineComponent<DotScreenPmndrsProps, {
|
|
19
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
20
|
-
effect: import('vue').ShallowRef<DotScreenEffect | null>;
|
|
21
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DotScreenPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { EffectComposer } from 'postprocessing';
|
|
2
|
-
import { InjectionKey, ShallowRef } from 'vue';
|
|
3
|
-
export declare const effectComposerInjectionKey: InjectionKey<ShallowRef<EffectComposer | null>>;
|
|
4
|
-
export interface EffectComposerPmndrsProps {
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
depthBuffer?: boolean;
|
|
7
|
-
disableNormalPass?: boolean;
|
|
8
|
-
stencilBuffer?: boolean;
|
|
9
|
-
resolutionScale?: number;
|
|
10
|
-
autoClear?: boolean;
|
|
11
|
-
multisampling?: number;
|
|
12
|
-
frameBufferType?: number;
|
|
13
|
-
}
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<EffectComposerPmndrsProps, {
|
|
15
|
-
composer: ShallowRef<EffectComposer | null>;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
-
render: (...args: any[]) => void;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<EffectComposerPmndrsProps> & Readonly<{
|
|
19
|
-
onRender?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
depthBuffer: boolean;
|
|
23
|
-
disableNormalPass: boolean;
|
|
24
|
-
stencilBuffer: boolean;
|
|
25
|
-
autoClear: boolean;
|
|
26
|
-
multisampling: number;
|
|
27
|
-
frameBufferType: number;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
29
|
-
default?(_: {}): any;
|
|
30
|
-
}>;
|
|
31
|
-
export default _default;
|
|
32
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
-
new (): {
|
|
34
|
-
$slots: S;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, FXAAEffect } from 'postprocessing';
|
|
2
|
-
export interface FXAAPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The opacity of the effect.
|
|
9
|
-
*/
|
|
10
|
-
opacity?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The maximum amount of edge detection samples.
|
|
13
|
-
*/
|
|
14
|
-
samples?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The minimum edge detection threshold. Range is [0.0, 1.0].
|
|
17
|
-
*/
|
|
18
|
-
minEdgeThreshold?: number;
|
|
19
|
-
/**
|
|
20
|
-
* The maximum edge detection threshold. Range is [0.0, 1.0].
|
|
21
|
-
*/
|
|
22
|
-
maxEdgeThreshold?: number;
|
|
23
|
-
/**
|
|
24
|
-
* The subpixel blend quality. Range is [0.0, 1.0].
|
|
25
|
-
*/
|
|
26
|
-
subpixelQuality?: number;
|
|
27
|
-
}
|
|
28
|
-
declare const _default: import('vue').DefineComponent<FXAAPmndrsProps, {
|
|
29
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
30
|
-
effect: import('vue').ShallowRef<FXAAEffect | null>;
|
|
31
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FXAAPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BlendFunction } from 'postprocessing';
|
|
2
|
-
import { Vector2 } from 'three';
|
|
3
|
-
import { FishEyeEffect } from './custom/fish-eye/index';
|
|
4
|
-
export interface FishEyePmndrsProps {
|
|
5
|
-
/**
|
|
6
|
-
* The blend function for the effect.
|
|
7
|
-
* Determines how this effect blends with other effects.
|
|
8
|
-
*/
|
|
9
|
-
blendFunction?: BlendFunction;
|
|
10
|
-
/**
|
|
11
|
-
* The lens scale.
|
|
12
|
-
* A Vector2 value or an array of two numbers.
|
|
13
|
-
*/
|
|
14
|
-
lensS?: Vector2 | [number, number];
|
|
15
|
-
/**
|
|
16
|
-
* The lens factor.
|
|
17
|
-
* A Vector2 value or an array of two numbers.
|
|
18
|
-
*/
|
|
19
|
-
lensF?: Vector2 | [number, number];
|
|
20
|
-
/**
|
|
21
|
-
* The scale of the effect.
|
|
22
|
-
* A number value.
|
|
23
|
-
*/
|
|
24
|
-
scale?: number;
|
|
25
|
-
}
|
|
26
|
-
declare const _default: import('vue').DefineComponent<FishEyePmndrsProps, {
|
|
27
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
28
|
-
effect: import('vue').ShallowRef<FishEyeEffect | null>;
|
|
29
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FishEyePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
-
export default _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, GlitchEffect, GlitchMode } from 'postprocessing';
|
|
2
|
-
import { Texture, Vector2 } from 'three';
|
|
3
|
-
export interface GlitchPmndrsProps {
|
|
4
|
-
blendFunction?: BlendFunction;
|
|
5
|
-
/**
|
|
6
|
-
* The minimum and maximum delay between glitch activations in seconds.
|
|
7
|
-
*/
|
|
8
|
-
delay?: Vector2;
|
|
9
|
-
/**
|
|
10
|
-
* The minimum and maximum duration of a glitch in seconds.
|
|
11
|
-
*/
|
|
12
|
-
duration?: Vector2;
|
|
13
|
-
/**
|
|
14
|
-
* The strength of weak and strong glitches.
|
|
15
|
-
*/
|
|
16
|
-
strength?: Vector2;
|
|
17
|
-
/**
|
|
18
|
-
* The glitch mode. Can be DISABLED | SPORADIC | CONSTANT_MILD | CONSTANT_WILD.
|
|
19
|
-
*/
|
|
20
|
-
mode?: GlitchMode;
|
|
21
|
-
/**
|
|
22
|
-
* Turn the effect on and off.
|
|
23
|
-
*/
|
|
24
|
-
active?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* The threshold for strong glitches.
|
|
28
|
-
*/
|
|
29
|
-
ratio?: number;
|
|
30
|
-
/**
|
|
31
|
-
* The scale of the blocky glitch columns.
|
|
32
|
-
*/
|
|
33
|
-
columns?: number;
|
|
34
|
-
/**
|
|
35
|
-
* A chromatic aberration offset. If provided, the glitch effect will influence this offset.
|
|
36
|
-
*/
|
|
37
|
-
chromaticAberrationOffset?: Vector2;
|
|
38
|
-
/**
|
|
39
|
-
* A perturbation map. If none is provided, a noise texture will be created.
|
|
40
|
-
*/
|
|
41
|
-
perturbationMap?: Texture;
|
|
42
|
-
/**
|
|
43
|
-
* The size of the generated noise map. Will be ignored if a perturbation map is provided.
|
|
44
|
-
*/
|
|
45
|
-
dtSize?: number;
|
|
46
|
-
}
|
|
47
|
-
declare const _default: import('vue').DefineComponent<GlitchPmndrsProps, {
|
|
48
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
49
|
-
effect: import('vue').ShallowRef<GlitchEffect | null>;
|
|
50
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GlitchPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
|
-
export default _default;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, KernelSize, GodRaysEffect } from 'postprocessing';
|
|
2
|
-
import { Points, Mesh } from 'three';
|
|
3
|
-
export interface GodRaysPmndrsProps {
|
|
4
|
-
/**
|
|
5
|
-
* The blend function of this effect.
|
|
6
|
-
*/
|
|
7
|
-
blendFunction?: BlendFunction;
|
|
8
|
-
/**
|
|
9
|
-
* The light source. Must not write depth and has to be flagged as transparent.
|
|
10
|
-
*/
|
|
11
|
-
lightSource?: Mesh | Points | null;
|
|
12
|
-
/**
|
|
13
|
-
* The opacity of the God Rays.
|
|
14
|
-
*/
|
|
15
|
-
opacity?: number;
|
|
16
|
-
/**
|
|
17
|
-
* The density of the light rays.
|
|
18
|
-
*/
|
|
19
|
-
density?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The decay of the light rays.
|
|
22
|
-
*/
|
|
23
|
-
decay?: number;
|
|
24
|
-
/**
|
|
25
|
-
* The blur kernel size. Has no effect if blur is disabled.
|
|
26
|
-
*/
|
|
27
|
-
kernelSize?: KernelSize;
|
|
28
|
-
/**
|
|
29
|
-
* The resolution scale.
|
|
30
|
-
*/
|
|
31
|
-
resolutionScale?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the god rays should be blurred to reduce artifacts.
|
|
34
|
-
*/
|
|
35
|
-
blur?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* The horizontal resolution.
|
|
38
|
-
*/
|
|
39
|
-
resolutionX?: number;
|
|
40
|
-
/**
|
|
41
|
-
* The vertical resolution.
|
|
42
|
-
*/
|
|
43
|
-
resolutionY?: number;
|
|
44
|
-
/**
|
|
45
|
-
* The weight of the light rays.
|
|
46
|
-
*/
|
|
47
|
-
weight?: number;
|
|
48
|
-
/**
|
|
49
|
-
* A constant attenuation coefficient.
|
|
50
|
-
*/
|
|
51
|
-
exposure?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The number of samples per pixel.
|
|
54
|
-
*/
|
|
55
|
-
samples?: number;
|
|
56
|
-
/**
|
|
57
|
-
* An upper bound for the saturation of the overall effect.
|
|
58
|
-
*/
|
|
59
|
-
clampMax?: number;
|
|
60
|
-
}
|
|
61
|
-
declare const _default: import('vue').DefineComponent<GodRaysPmndrsProps, {
|
|
62
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
63
|
-
effect: import('vue').ShallowRef<GodRaysEffect | null>;
|
|
64
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GodRaysPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
65
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, GridEffect } from 'postprocessing';
|
|
2
|
-
export interface GridPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The blend function.
|
|
5
|
-
*/
|
|
6
|
-
blendFunction?: BlendFunction;
|
|
7
|
-
/**
|
|
8
|
-
* The scale.
|
|
9
|
-
*/
|
|
10
|
-
scale?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The line width.
|
|
13
|
-
*/
|
|
14
|
-
lineWidth?: number;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: import('vue').DefineComponent<GridPmndrsProps, {
|
|
17
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
18
|
-
effect: import('vue').ShallowRef<GridEffect | null>;
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GridPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BlendFunction, HueSaturationEffect } from 'postprocessing';
|
|
2
|
-
export interface HueSaturationPmndrsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The saturation adjustment. A value of 0.0 results in grayscale, and 1.0 leaves saturation unchanged.
|
|
5
|
-
* Range: [0.0, 1.0]
|
|
6
|
-
*/
|
|
7
|
-
saturation?: number;
|
|
8
|
-
/**
|
|
9
|
-
* The hue adjustment in radians.
|
|
10
|
-
* Range: [-π, π] (or [0, 2π] for a full rotation)
|
|
11
|
-
*/
|
|
12
|
-
hue?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The blend function. Defines how the effect blends with the original scene.
|
|
15
|
-
*/
|
|
16
|
-
blendFunction?: BlendFunction;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: import('vue').DefineComponent<HueSaturationPmndrsProps, {
|
|
19
|
-
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
20
|
-
effect: import('vue').ShallowRef<HueSaturationEffect | null>;
|
|
21
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HueSaturationPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
export default _default;
|
|
@@ -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;
|