@tresjs/post-processing 1.0.0 → 2.0.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.
- package/dist/core/pmndrs/{Bloom.vue.d.ts → BloomPmndrs.vue.d.ts} +8 -8
- package/dist/core/pmndrs/{DepthOfField.vue.d.ts → DepthOfFieldPmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/{EffectComposer.vue.d.ts → EffectComposerPmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/{Glitch.vue.d.ts → GlitchPmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/{Noise.vue.d.ts → NoisePmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/{Outline.vue.d.ts → OutlinePmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/{Pixelation.vue.d.ts → PixelationPmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/{Vignette.vue.d.ts → VignettePmndrs.vue.d.ts} +3 -3
- package/dist/core/pmndrs/composables/{useEffect.d.ts → useEffectPmndrs.d.ts} +1 -1
- package/dist/core/pmndrs/index.d.ts +10 -10
- package/dist/core/three/UnrealBloom.vue.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/tres-post-processing.d.ts +2 -0
- package/dist/{three.js → tres-post-processing.js} +572 -205
- package/dist/tres-post-processing.umd.cjs +1009 -0
- package/package.json +18 -21
- package/dist/pmndrs.d.ts +0 -2
- package/dist/pmndrs.js +0 -352
- package/dist/prop-BjrXLDuj.js +0 -43
- package/dist/three.d.ts +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BlendFunction, KernelSize, BloomEffect } from 'postprocessing';
|
|
2
|
-
export interface
|
|
2
|
+
export interface BloomPmndrsProps {
|
|
3
3
|
/**
|
|
4
4
|
* The blend function of this effect. This prop is not reactive.
|
|
5
5
|
* @default BlendFunction.SCREEN
|
|
6
6
|
* @type {BlendFunction}
|
|
7
|
-
* @memberof
|
|
7
|
+
* @memberof BloomPmndrsProps
|
|
8
8
|
*/
|
|
9
9
|
blendFunction?: BlendFunction;
|
|
10
10
|
/**
|
|
@@ -21,7 +21,7 @@ export interface BloomProps {
|
|
|
21
21
|
* @default KernelSize.LARGE
|
|
22
22
|
*
|
|
23
23
|
* @type {KernelSize}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof BloomPmndrsProps
|
|
25
25
|
*/
|
|
26
26
|
kernelSize?: KernelSize;
|
|
27
27
|
/**
|
|
@@ -30,7 +30,7 @@ export interface BloomProps {
|
|
|
30
30
|
* @default 0.9
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof BloomPmndrsProps
|
|
34
34
|
*/
|
|
35
35
|
luminanceThreshold?: number;
|
|
36
36
|
/**
|
|
@@ -39,7 +39,7 @@ export interface BloomProps {
|
|
|
39
39
|
* @default 0.025
|
|
40
40
|
*
|
|
41
41
|
* @type {number}
|
|
42
|
-
* @memberof
|
|
42
|
+
* @memberof BloomPmndrsProps
|
|
43
43
|
*/
|
|
44
44
|
luminanceSmoothing?: number;
|
|
45
45
|
/**
|
|
@@ -48,14 +48,14 @@ export interface BloomProps {
|
|
|
48
48
|
* @default false
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof BloomPmndrsProps
|
|
52
52
|
*/
|
|
53
53
|
mipmapBlur?: boolean;
|
|
54
54
|
}
|
|
55
|
-
declare const _default: import('vue').DefineComponent<
|
|
55
|
+
declare const _default: import('vue').DefineComponent<BloomPmndrsProps, {
|
|
56
56
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
57
57
|
effect: import('vue').ShallowRef<BloomEffect | null>;
|
|
58
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
58
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BloomPmndrsProps> & Readonly<{}>, {
|
|
59
59
|
mipmapBlur: boolean;
|
|
60
60
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
61
61
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlendFunction, DepthOfFieldEffect } from 'postprocessing';
|
|
2
|
-
export interface
|
|
2
|
+
export interface DepthOfFieldPmndrsProps {
|
|
3
3
|
/**
|
|
4
4
|
* The blend function of this effect. This prop is not reactive.
|
|
5
5
|
*/
|
|
@@ -28,8 +28,8 @@ export interface DepthOfFieldProps {
|
|
|
28
28
|
resolutionX?: number;
|
|
29
29
|
resolutionY?: number;
|
|
30
30
|
}
|
|
31
|
-
declare const _default: import('vue').DefineComponent<
|
|
31
|
+
declare const _default: import('vue').DefineComponent<DepthOfFieldPmndrsProps, {
|
|
32
32
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
33
33
|
effect: import('vue').ShallowRef<DepthOfFieldEffect | null>;
|
|
34
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DepthOfFieldPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EffectComposer } from 'postprocessing';
|
|
2
2
|
import { InjectionKey, ShallowRef } from 'vue';
|
|
3
3
|
export declare const effectComposerInjectionKey: InjectionKey<ShallowRef<EffectComposer | null>>;
|
|
4
|
-
export interface
|
|
4
|
+
export interface EffectComposerPmndrsProps {
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
depthBuffer?: boolean;
|
|
7
7
|
disableNormalPass?: boolean;
|
|
@@ -11,11 +11,11 @@ export interface EffectComposerProps {
|
|
|
11
11
|
multisampling?: number;
|
|
12
12
|
frameBufferType?: number;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<EffectComposerPmndrsProps, {
|
|
15
15
|
composer: ShallowRef<EffectComposer | null>;
|
|
16
16
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
17
|
render: (...args: any[]) => void;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<EffectComposerPmndrsProps> & Readonly<{
|
|
19
19
|
onRender?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
enabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlendFunction, GlitchEffect, GlitchMode } from 'postprocessing';
|
|
2
2
|
import { Texture, Vector2 } from 'three';
|
|
3
|
-
export interface
|
|
3
|
+
export interface GlitchPmndrsProps {
|
|
4
4
|
blendFunction?: BlendFunction;
|
|
5
5
|
/**
|
|
6
6
|
* The minimum and maximum delay between glitch activations in seconds.
|
|
@@ -44,8 +44,8 @@ export interface GlitchProps {
|
|
|
44
44
|
*/
|
|
45
45
|
dtSize?: number;
|
|
46
46
|
}
|
|
47
|
-
declare const _default: import('vue').DefineComponent<
|
|
47
|
+
declare const _default: import('vue').DefineComponent<GlitchPmndrsProps, {
|
|
48
48
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
49
49
|
effect: import('vue').ShallowRef<GlitchEffect | null>;
|
|
50
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
50
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GlitchPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BlendFunction, NoiseEffect } from 'postprocessing';
|
|
2
|
-
export interface
|
|
2
|
+
export interface NoisePmndrsProps {
|
|
3
3
|
/**
|
|
4
4
|
* Whether the noise should be multiplied with the input color.
|
|
5
5
|
*/
|
|
6
6
|
premultiply?: boolean;
|
|
7
7
|
blendFunction?: BlendFunction;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: import('vue').DefineComponent<
|
|
9
|
+
declare const _default: import('vue').DefineComponent<NoisePmndrsProps, {
|
|
10
10
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
11
11
|
effect: import('vue').ShallowRef<NoiseEffect | null>;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NoisePmndrsProps> & Readonly<{}>, {
|
|
13
13
|
blendFunction: BlendFunction;
|
|
14
14
|
premultiply: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TresColor } from '@tresjs/core';
|
|
2
2
|
import { BlendFunction, KernelSize, OutlineEffect } from 'postprocessing';
|
|
3
3
|
import { Object3D, Texture } from 'three';
|
|
4
|
-
export interface
|
|
4
|
+
export interface OutlinePmndrsProps {
|
|
5
5
|
/**
|
|
6
6
|
* The objects in the scene which should have an outline.
|
|
7
7
|
*/
|
|
@@ -36,10 +36,10 @@ export interface OutlineProps {
|
|
|
36
36
|
hiddenEdgeColor?: TresColor;
|
|
37
37
|
visibleEdgeColor?: TresColor;
|
|
38
38
|
}
|
|
39
|
-
declare const _default: import('vue').DefineComponent<
|
|
39
|
+
declare const _default: import('vue').DefineComponent<OutlinePmndrsProps, {
|
|
40
40
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
41
41
|
effect: import('vue').ShallowRef<OutlineEffect | null>;
|
|
42
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
42
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OutlinePmndrsProps> & Readonly<{}>, {
|
|
43
43
|
blur: boolean;
|
|
44
44
|
xRay: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PixelationEffect } from 'postprocessing';
|
|
2
|
-
export interface
|
|
2
|
+
export interface PixelationPmndrsProps {
|
|
3
3
|
/**
|
|
4
4
|
* The pixel granularity.
|
|
5
5
|
*/
|
|
6
6
|
granularity?: number;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: import('vue').DefineComponent<
|
|
8
|
+
declare const _default: import('vue').DefineComponent<PixelationPmndrsProps, {
|
|
9
9
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
10
10
|
effect: import('vue').ShallowRef<PixelationEffect | null>;
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PixelationPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlendFunction, VignetteEffect, VignetteTechnique } from 'postprocessing';
|
|
2
|
-
export interface
|
|
2
|
+
export interface VignettePmndrsProps {
|
|
3
3
|
/**
|
|
4
4
|
* Whether the noise should be multiplied with the input color.
|
|
5
5
|
*/
|
|
@@ -8,10 +8,10 @@ export interface VignetteProps {
|
|
|
8
8
|
offset: number;
|
|
9
9
|
darkness: number;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<
|
|
11
|
+
declare const _default: import('vue').DefineComponent<VignettePmndrsProps, {
|
|
12
12
|
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
13
13
|
effect: import('vue').ShallowRef<VignetteEffect | null>;
|
|
14
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VignettePmndrsProps> & Readonly<{}>, {
|
|
15
15
|
blendFunction: BlendFunction;
|
|
16
16
|
technique: VignetteTechnique;
|
|
17
17
|
offset: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, EffectPass } from 'postprocessing';
|
|
2
2
|
import { Reactive, ShallowRef } from 'vue';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const useEffectPmndrs: <T extends Effect>(newEffectFunction: () => T, passDependencies: Reactive<object>) => {
|
|
4
4
|
pass: ShallowRef<EffectPass | null>;
|
|
5
5
|
effect: ShallowRef<T | null>;
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
export {
|
|
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
|
+
export { BloomPmndrs, DepthOfFieldPmndrs, EffectComposerPmndrs, GlitchPmndrs, NoisePmndrs, OutlinePmndrs, PixelationPmndrs, useEffectPmndrs, VignettePmndrs, BloomPmndrsProps, DepthOfFieldPmndrsProps, EffectComposerPmndrsProps, GlitchPmndrsProps, NoisePmndrsProps, OutlinePmndrsProps, PixelationPmndrsProps, VignettePmndrsProps, };
|
|
@@ -7,8 +7,8 @@ export interface UnrealBloomProps {
|
|
|
7
7
|
declare const _default: import('vue').DefineComponent<UnrealBloomProps, {
|
|
8
8
|
pass: import('vue').ShallowRef<UnrealBloomPass>;
|
|
9
9
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UnrealBloomProps> & Readonly<{}>, {
|
|
10
|
-
radius: number;
|
|
11
10
|
strength: number;
|
|
11
|
+
radius: number;
|
|
12
12
|
threshold: number;
|
|
13
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
package/dist/index.d.ts
ADDED