@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.
@@ -1,10 +1,10 @@
1
1
  import { BlendFunction, KernelSize, BloomEffect } from 'postprocessing';
2
- export interface BloomProps {
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 BloomProps
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 BloomProps
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 BloomProps
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 BloomProps
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 BloomProps
51
+ * @memberof BloomPmndrsProps
52
52
  */
53
53
  mipmapBlur?: boolean;
54
54
  }
55
- declare const _default: import('vue').DefineComponent<BloomProps, {
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<BloomProps> & 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 DepthOfFieldProps {
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<DepthOfFieldProps, {
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<DepthOfFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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 EffectComposerProps {
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<EffectComposerProps, {
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<EffectComposerProps> & 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 GlitchProps {
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<GlitchProps, {
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<GlitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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 NoiseProps {
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<NoiseProps, {
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<NoiseProps> & 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 OutlineProps {
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<OutlineProps, {
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<OutlineProps> & 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 PixelationProps {
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<PixelationProps, {
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<PixelationProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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 VignetteProps {
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<VignetteProps, {
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<VignetteProps> & 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 useEffect: <T extends Effect>(newEffectFunction: () => T, passDependencies: Reactive<object>) => {
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 Bloom, BloomProps } from './Bloom.vue';
2
- import { useEffect } from './composables/useEffect';
3
- import { default as DepthOfField, DepthOfFieldProps } from './DepthOfField.vue';
4
- import { default as EffectComposer, EffectComposerProps } from './EffectComposer.vue';
5
- import { default as Glitch, GlitchProps } from './Glitch.vue';
6
- import { default as Noise, NoiseProps } from './Noise.vue';
7
- import { default as Outline, OutlineProps } from './Outline.vue';
8
- import { default as Pixelation, PixelationProps } from './Pixelation.vue';
9
- import { default as Vignette, VignetteProps } from './Vignette.vue';
10
- export { Bloom, DepthOfField, EffectComposer, Glitch, Noise, Outline, Pixelation, useEffect, Vignette, BloomProps, DepthOfFieldProps, EffectComposerProps, GlitchProps, NoiseProps, OutlineProps, PixelationProps, VignetteProps, };
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;
@@ -0,0 +1,2 @@
1
+ export * from './core/pmndrs';
2
+ export * from './core/three';
@@ -0,0 +1,2 @@
1
+ export * from './index'
2
+ export {}