@tresjs/post-processing 1.0.0-next.1 → 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.
Files changed (35) hide show
  1. package/README.md +0 -4
  2. package/dist/core/pmndrs/BloomPmndrs.vue.d.ts +61 -0
  3. package/dist/core/{effects/DepthOfField.vue.d.ts → pmndrs/DepthOfFieldPmndrs.vue.d.ts} +3 -13
  4. package/dist/core/pmndrs/EffectComposerPmndrs.vue.d.ts +36 -0
  5. package/dist/core/pmndrs/GlitchPmndrs.vue.d.ts +51 -0
  6. package/dist/core/pmndrs/NoisePmndrs.vue.d.ts +16 -0
  7. package/dist/core/{effects/Outline.vue.d.ts → pmndrs/OutlinePmndrs.vue.d.ts} +5 -29
  8. package/dist/core/pmndrs/PixelationPmndrs.vue.d.ts +12 -0
  9. package/dist/core/pmndrs/VignettePmndrs.vue.d.ts +20 -0
  10. package/dist/core/pmndrs/composables/useEffectPmndrs.d.ts +6 -0
  11. package/dist/core/pmndrs/index.d.ts +10 -0
  12. package/dist/core/three/EffectComposer.vue.d.ts +20 -0
  13. package/dist/core/three/Glitch.vue.d.ts +15 -0
  14. package/dist/core/three/Halftone.vue.d.ts +23 -0
  15. package/dist/core/three/Output.vue.d.ts +5 -0
  16. package/dist/core/three/Pixelation.vue.d.ts +10 -0
  17. package/dist/core/three/SMAA.vue.d.ts +9 -0
  18. package/dist/core/three/UnrealBloom.vue.d.ts +14 -0
  19. package/dist/core/three/composables/useEffect.d.ts +9 -0
  20. package/dist/core/three/index.d.ts +9 -0
  21. package/dist/index.d.ts +2 -11
  22. package/dist/tres-post-processing.d.ts +2 -0
  23. package/dist/tres-post-processing.js +2129 -0
  24. package/dist/tres-post-processing.umd.cjs +1009 -0
  25. package/dist/util/prop.d.ts +3 -4
  26. package/package.json +34 -28
  27. package/dist/core/EffectComposer.vue.d.ts +0 -73
  28. package/dist/core/effects/Bloom.vue.d.ts +0 -204
  29. package/dist/core/effects/Glitch.vue.d.ts +0 -105
  30. package/dist/core/effects/Noise.vue.d.ts +0 -40
  31. package/dist/core/effects/Pixelation.vue.d.ts +0 -22
  32. package/dist/core/effects/Vignette.vue.d.ts +0 -48
  33. package/dist/core/injectionKeys.d.ts +0 -4
  34. package/dist/tres-postprocessing.js +0 -345
  35. package/dist/tres-postprocessing.umd.cjs +0 -8
@@ -1,5 +1,4 @@
1
1
  import { Ref, WatchOptions } from 'vue';
2
-
3
2
  /**
4
3
  * Creates a prop watcher function that monitors changes to a property and updates a target object.
5
4
  *
@@ -13,7 +12,7 @@ import { Ref, WatchOptions } from 'vue';
13
12
  */
14
13
  export declare const makePropWatcher: <T, E>(propGetter: () => T, target: Ref<E>, propertyPath: string, newPlainObjectFunction: () => E & {
15
14
  dispose?: () => void;
16
- }, watchOptions?: WatchOptions) => import('vue').WatchStopHandle;
15
+ }, watchOptions?: WatchOptions) => import('vue').WatchHandle;
17
16
  /**
18
17
  * Creates multiple prop watchers for monitoring changes to multiple properties and updating a target object.
19
18
  *
@@ -25,7 +24,7 @@ export declare const makePropWatcher: <T, E>(propGetter: () => T, target: Ref<E>
25
24
  */
26
25
  export declare const makePropWatchers: <E>(propGettersAndPropertyPaths: (string | (() => any))[][], target: Ref<E>, newPlainObjectFunction: () => E & {
27
26
  dispose?: () => void;
28
- }) => import('vue').WatchStopHandle[];
27
+ }) => import('vue').WatchHandle[];
29
28
  /**
30
29
  * Creates multiple prop watchers via the props object for monitoring changes to multiple properties and updating a target object.
31
30
  * Use this method in case the prop names match the names of the properties you want to set on your target object.
@@ -38,4 +37,4 @@ export declare const makePropWatchersUsingAllProps: <E>(props: {
38
37
  [key: string]: any;
39
38
  }, target: Ref<E>, newPlainObjectFunction: () => E & {
40
39
  dispose?: () => void;
41
- }) => import('vue').WatchStopHandle[];
40
+ }) => import('vue').WatchHandle[];
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@tresjs/post-processing",
3
3
  "type": "module",
4
- "version": "1.0.0-next.1",
5
- "packageManager": "pnpm@8.10.2",
4
+ "version": "2.0.0",
5
+ "packageManager": "pnpm@9.14.2",
6
6
  "description": "Post-processing library for TresJS",
7
7
  "author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
8
8
  "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Tresjs/post-processing.git"
12
+ },
9
13
  "keywords": [
10
14
  "vue",
11
15
  "3d",
@@ -15,15 +19,18 @@
15
19
  "effects",
16
20
  "fx"
17
21
  ],
22
+ "maintainers": [
23
+ "Alvaro Saburido (https://github.com/alvarosabu/)",
24
+ "Tino Koch (https://github.com/Tinoooo)"
25
+ ],
18
26
  "exports": {
19
27
  ".": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/tres-postprocessing.js"
28
+ "types": "./dist/tres-post-processing.d.ts",
29
+ "import": "./dist/tres-post-processing.js",
30
+ "require": "./dist/tres-post-processing.cjs"
22
31
  },
23
32
  "./*": "./*"
24
33
  },
25
- "main": "./dist/tres-postprocessing.js",
26
- "module": "./dist/tres-postprocessing.js",
27
34
  "files": [
28
35
  "*.d.ts",
29
36
  "dist"
@@ -45,37 +52,36 @@
45
52
  },
46
53
  "peerDependencies": {
47
54
  "@tresjs/core": ">=4.0",
48
- "three": ">=0.133",
55
+ "three": ">=0.169",
49
56
  "vue": ">=3.4"
50
57
  },
51
58
  "dependencies": {
52
- "@vueuse/core": "^10.11.0",
53
- "postprocessing": "^6.36.0",
54
- "three-stdlib": "^2.30.5"
59
+ "@vueuse/core": "^12.2.0",
60
+ "postprocessing": "^6.36.5"
55
61
  },
56
62
  "devDependencies": {
57
- "@release-it/conventional-changelog": "^8.0.1",
58
- "@tresjs/core": "^4.2.2",
59
- "@tresjs/eslint-config": "^1.1.0",
60
- "@types/three": "^0.167.0",
61
- "@unocss/core": "^0.61.5",
62
- "@vitejs/plugin-vue": "^5.1.0",
63
- "eslint": "^9.7.0",
63
+ "@release-it/conventional-changelog": "^9.0.4",
64
+ "@tresjs/core": "^4.3.1",
65
+ "@tresjs/eslint-config": "^1.4.0",
66
+ "@types/three": "^0.171.0",
67
+ "@unocss/core": "^0.65.3",
68
+ "@vitejs/plugin-vue": "^5.2.1",
69
+ "eslint": "^9.17.0",
64
70
  "gsap": "^3.12.5",
65
71
  "kolorist": "^1.8.0",
66
72
  "pathe": "^1.1.2",
67
- "release-it": "^17.6.0",
73
+ "release-it": "^17.11.0",
68
74
  "rollup-plugin-analyzer": "^4.0.0",
69
- "rollup-plugin-visualizer": "^5.12.0",
70
- "three": "^0.167.0",
71
- "typescript": "^5.5.4",
72
- "unocss": "^0.61.5",
73
- "vite": "^5.3.5",
74
- "vite-plugin-banner": "^0.7.1",
75
- "vite-plugin-dts": "4.0.0-beta.1",
75
+ "rollup-plugin-visualizer": "^5.13.1",
76
+ "three": "^0.172.0",
77
+ "typescript": "^5.7.2",
78
+ "unocss": "^0.65.3",
79
+ "vite": "^6.0.6",
80
+ "vite-plugin-banner": "^0.8.0",
81
+ "vite-plugin-dts": "4.4.0",
76
82
  "vite-svg-loader": "^5.1.0",
77
- "vitepress": "1.3.1",
78
- "vue": "^3.4.34",
79
- "vue-tsc": "^2.0.29"
83
+ "vitepress": "1.5.0",
84
+ "vue": "^3.5.13",
85
+ "vue-tsc": "^2.2.0"
80
86
  }
81
87
  }
@@ -1,73 +0,0 @@
1
- import { TresObject } from '@tresjs/core';
2
- import { EffectComposer as EffectComposerImpl } from 'postprocessing';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface EffectComposerProps {
6
- enabled?: boolean;
7
- children?: TresObject[];
8
- depthBuffer?: boolean;
9
- disableNormalPass?: boolean;
10
- stencilBuffer?: boolean;
11
- resolutionScale?: number;
12
- autoClear?: boolean;
13
- multisampling?: number;
14
- frameBufferType?: number;
15
- }
16
- declare function __VLS_template(): {
17
- default?(_: {}): any;
18
- };
19
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<EffectComposerProps>, {
20
- enabled: boolean;
21
- autoClear: boolean;
22
- frameBufferType: 1016;
23
- disableNormalPass: boolean;
24
- depthBuffer: undefined;
25
- multisampling: number;
26
- stencilBuffer: undefined;
27
- }>, {
28
- composer: ShallowRef<EffectComposerImpl | null>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
- render: (...args: any[]) => void;
31
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EffectComposerProps>, {
32
- enabled: boolean;
33
- autoClear: boolean;
34
- frameBufferType: 1016;
35
- disableNormalPass: boolean;
36
- depthBuffer: undefined;
37
- multisampling: number;
38
- stencilBuffer: undefined;
39
- }>>> & {
40
- onRender?: ((...args: any[]) => any) | undefined;
41
- }, {
42
- enabled: boolean;
43
- depthBuffer: boolean;
44
- disableNormalPass: boolean;
45
- stencilBuffer: boolean;
46
- autoClear: boolean;
47
- multisampling: number;
48
- frameBufferType: number;
49
- }, {}>;
50
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
51
- export default _default;
52
- type __VLS_WithDefaults<P, D> = {
53
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
- default: D[K];
55
- }> : P[K];
56
- };
57
- type __VLS_Prettify<T> = {
58
- [K in keyof T]: T[K];
59
- } & {};
60
- type __VLS_WithTemplateSlots<T, S> = T & {
61
- new (): {
62
- $slots: S;
63
- };
64
- };
65
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
- type __VLS_TypePropsToOption<T> = {
67
- [K in keyof T]-?: {} extends Pick<T, K> ? {
68
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
- } : {
70
- type: import('vue').PropType<T[K]>;
71
- required: true;
72
- };
73
- };
@@ -1,204 +0,0 @@
1
- import { BloomEffect, BlendFunction, KernelSize } from 'postprocessing';
2
-
3
- export interface BloomProps {
4
- /**
5
- * The blend function of this effect. This prop is not reactive.
6
- * @default BlendFunction.SCREEN
7
- * @type {BlendFunction}
8
- * @memberof BloomProps
9
- */
10
- blendFunction?: BlendFunction;
11
- /**
12
- * The intensity of the bloom effect.
13
- *
14
- * @default 1
15
- * @type {number}
16
- * @memberof BloomProps
17
- */
18
- intensity?: number;
19
- /**
20
- * The kernel size.
21
- *
22
- * @default KernelSize.LARGE
23
- *
24
- * @type {KernelSize}
25
- * @memberof BloomProps
26
- */
27
- kernelSize?: KernelSize;
28
- /**
29
- * The luminance threshold. Raise this value to mask out darker elements in the scene. Range is [0, 1].
30
- *
31
- * @default 0.9
32
- *
33
- * @type {number}
34
- * @memberof BloomProps
35
- */
36
- luminanceThreshold?: number;
37
- /**
38
- * Controls the smoothness of the luminance threshold. Range is [0, 1].
39
- *
40
- * @default 0.025
41
- *
42
- * @type {number}
43
- * @memberof BloomProps
44
- */
45
- luminanceSmoothing?: number;
46
- /**
47
- * Enables mip map blur.
48
- *
49
- * @default false
50
- *
51
- * @type {boolean}
52
- * @memberof BloomProps
53
- */
54
- mipmapBlur?: boolean;
55
- }
56
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BloomProps>, {
57
- mipmapBlur: undefined;
58
- }>, {
59
- pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
60
- effect: import('vue').ShallowRef<BloomEffect | null>;
61
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BloomProps>, {
62
- mipmapBlur: undefined;
63
- }>>>, {
64
- mipmapBlur: boolean;
65
- }, {}>;
66
- export default _default;
67
- export declare const __VLS_globalTypesStart: {};
68
- declare global {
69
- type __VLS_IntrinsicElements = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<globalThis.JSX.IntrinsicElements, Record<string, any>>>;
70
- type __VLS_Element = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.Element, globalThis.JSX.Element>;
71
- type __VLS_GlobalComponents = __VLS_PickNotAny<import('vue').GlobalComponents, {}> & __VLS_PickNotAny<import('@vue/runtime-core').GlobalComponents, {}> & __VLS_PickNotAny<import('@vue/runtime-dom').GlobalComponents, {}> & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>;
72
- type __VLS_BuiltInPublicProps = __VLS_PickNotAny<import('vue').VNodeProps, {}> & __VLS_PickNotAny<import('vue').AllowedComponentProps, {}> & __VLS_PickNotAny<import('vue').ComponentCustomProps, {}>;
73
- type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
74
- type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
75
- const __VLS_intrinsicElements: __VLS_IntrinsicElements;
76
- function __VLS_getVForSourceType(source: number): [number, number, number][];
77
- function __VLS_getVForSourceType(source: string): [string, number, number][];
78
- function __VLS_getVForSourceType<T extends any[]>(source: T): [
79
- item: T[number],
80
- key: number,
81
- index: number
82
- ][];
83
- function __VLS_getVForSourceType<T extends {
84
- [Symbol.iterator](): Iterator<any>;
85
- }>(source: T): [
86
- item: T extends {
87
- [Symbol.iterator](): Iterator<infer T1>;
88
- } ? T1 : never,
89
- key: number,
90
- index: undefined
91
- ][];
92
- function __VLS_getVForSourceType<T extends number | {
93
- [Symbol.iterator](): Iterator<any>;
94
- }>(source: T): [
95
- item: number | (Exclude<T, number> extends {
96
- [Symbol.iterator](): Iterator<infer T1>;
97
- } ? T1 : never),
98
- key: number,
99
- index: undefined
100
- ][];
101
- function __VLS_getVForSourceType<T>(source: T): [
102
- item: T[keyof T],
103
- key: keyof T,
104
- index: number
105
- ][];
106
- function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
107
- function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
108
- function __VLS_directiveFunction<T>(dir: T): T extends import('vue').ObjectDirective<infer E, infer V> | import('vue').FunctionDirective<infer E, infer V> ? (value: V) => void : T;
109
- function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
110
- function __VLS_makeOptional<T>(t: T): {
111
- [K in keyof T]?: T[K];
112
- };
113
- type __VLS_SelfComponent<N, C> = string extends N ? {} : N extends string ? {
114
- [P in N]: C;
115
- } : {};
116
- type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
117
- [K in N0]: LocalComponents[N1];
118
- } : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
119
- [K in N0]: LocalComponents[N2];
120
- } : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
121
- [K in N0]: LocalComponents[N3];
122
- } : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
123
- [K in N0]: __VLS_GlobalComponents[N1];
124
- } : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
125
- [K in N0]: __VLS_GlobalComponents[N2];
126
- } : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
127
- [K in N0]: __VLS_GlobalComponents[N3];
128
- } : {
129
- [K in N0]: unknown;
130
- };
131
- function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
132
- $props: infer Props;
133
- } ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
134
- __ctx?: {
135
- attrs?: any;
136
- slots?: K extends {
137
- $slots: infer Slots;
138
- } ? Slots : any;
139
- emit?: K extends {
140
- $emit: infer Emit;
141
- } ? Emit : any;
142
- } & {
143
- props?: (K extends {
144
- $props: infer Props;
145
- } ? Props : any) & Record<string, unknown>;
146
- expose?(exposed: K): void;
147
- };
148
- } : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
149
- __ctx?: {
150
- attrs?: any;
151
- expose?: any;
152
- slots?: any;
153
- emit?: any;
154
- props?: {} & Record<string, unknown>;
155
- };
156
- };
157
- function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
158
- function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
159
- function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): __VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
160
- __ctx?: infer Ctx;
161
- } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>;
162
- type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
163
- __ctx?: {
164
- props?: infer P;
165
- };
166
- } ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
167
- type __VLS_AsFunctionOrAny<F> = unknown extends F ? any : ((...args: any) => any) extends F ? F : any;
168
- function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
169
- /**
170
- * emit
171
- */
172
- type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
173
- type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
174
- type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
175
- type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
176
- [K in E & string]: (...args: A) => void;
177
- } : never : never;
178
- type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
179
- [K in keyof T]: T[K] extends any[] ? {
180
- (...args: T[K]): void;
181
- } : never;
182
- }>>;
183
- type __VLS_PrettifyGlobal<T> = {
184
- [K in keyof T]: T[K];
185
- } & {};
186
- }
187
- export declare const __VLS_globalTypesEnd: {};
188
- type __VLS_WithDefaults<P, D> = {
189
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
190
- default: D[K];
191
- }> : P[K];
192
- };
193
- type __VLS_Prettify<T> = {
194
- [K in keyof T]: T[K];
195
- } & {};
196
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
197
- type __VLS_TypePropsToOption<T> = {
198
- [K in keyof T]-?: {} extends Pick<T, K> ? {
199
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
200
- } : {
201
- type: import('vue').PropType<T[K]>;
202
- required: true;
203
- };
204
- };
@@ -1,105 +0,0 @@
1
- import { GlitchEffect, GlitchMode, BlendFunction } from 'postprocessing';
2
- import { Texture, Vector2 } from 'three';
3
-
4
- export interface GlitchProps {
5
- blendFunction?: BlendFunction;
6
- /**
7
- * The minimum and maximum delay between glitch activations in seconds.
8
- *
9
- * @default [1.5, 3.5]
10
- *
11
- * @type {Vector2}
12
- * @memberof GlitchProps
13
- */
14
- delay?: Vector2;
15
- /**
16
- * The minimum and maximum duration of a glitch in seconds.
17
- *
18
- * @default [0.6, 1.0]
19
- *
20
- * @type {Vector2}
21
- * @memberof GlitchProps
22
- */
23
- duration?: Vector2;
24
- /**
25
- * The strength of weak and strong glitches.
26
- *
27
- * @default [0.3, 1.0]
28
- *
29
- * @type {Vector2}
30
- * @memberof GlitchProps
31
- */
32
- strength?: Vector2;
33
- /**
34
- * The glitch mode. Can be DISABLED | SPORADIC | CONSTANT_MILD | CONSTANT_WILD .
35
- *
36
- * @default GlitchMode.SPORADIC
37
- *
38
- * @type {GlitchMode}
39
- * @memberof GlitchProps
40
- */
41
- mode?: GlitchMode;
42
- /**
43
- * Turn the effect on and off.
44
- *
45
- * @type {boolean}
46
- * @memberof GlitchProps
47
- */
48
- active?: boolean;
49
- /**
50
- *
51
- * The threshold for strong glitches.
52
- *
53
- * @default 0.85
54
- *
55
- * @type {number}
56
- * @memberof GlitchProps
57
- */
58
- ratio?: number;
59
- /**
60
- * The scale of the blocky glitch columns.
61
- *
62
- * @default 0.05
63
- *
64
- * @type {number}
65
- * @memberof GlitchProps
66
- */
67
- columns?: number;
68
- /**
69
- * A chromatic aberration offset. If provided, the glitch effect will influence this offset.
70
- *
71
- * @type {Vector2}
72
- * @memberof GlitchProps
73
- */
74
- chromaticAberrationOffset?: Vector2;
75
- /**
76
- * A perturbation map. If none is provided, a noise texture will be created.
77
- *
78
- * @type {Texture}
79
- * @memberof GlitchProps
80
- */
81
- perturbationMap?: Texture;
82
- /**
83
- * The size of the generated noise map. Will be ignored if a perturbation map is provided.
84
- *
85
- * @default 64
86
- *
87
- * @type {number}
88
- * @memberof GlitchProps
89
- */
90
- dtSize?: number;
91
- }
92
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<GlitchProps>, {
93
- pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
94
- effect: import('vue').ShallowRef<GlitchEffect | null>;
95
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<GlitchProps>>>, {}, {}>;
96
- export default _default;
97
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
98
- type __VLS_TypePropsToOption<T> = {
99
- [K in keyof T]-?: {} extends Pick<T, K> ? {
100
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
101
- } : {
102
- type: import('vue').PropType<T[K]>;
103
- required: true;
104
- };
105
- };
@@ -1,40 +0,0 @@
1
- import { BlendFunction, NoiseEffect } from 'postprocessing';
2
-
3
- export interface NoiseProps {
4
- /**
5
- * Whether the noise should be multiplied with the input color.
6
- */
7
- premultiply?: boolean;
8
- blendFunction?: BlendFunction;
9
- }
10
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<NoiseProps>, {
11
- premultiply: boolean;
12
- blendFunction: BlendFunction;
13
- }>, {
14
- pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
15
- effect: import('vue').ShallowRef<NoiseEffect | null>;
16
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NoiseProps>, {
17
- premultiply: boolean;
18
- blendFunction: BlendFunction;
19
- }>>>, {
20
- blendFunction: BlendFunction;
21
- premultiply: boolean;
22
- }, {}>;
23
- export default _default;
24
- type __VLS_WithDefaults<P, D> = {
25
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
- default: D[K];
27
- }> : P[K];
28
- };
29
- type __VLS_Prettify<T> = {
30
- [K in keyof T]: T[K];
31
- } & {};
32
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
- type __VLS_TypePropsToOption<T> = {
34
- [K in keyof T]-?: {} extends Pick<T, K> ? {
35
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
- } : {
37
- type: import('vue').PropType<T[K]>;
38
- required: true;
39
- };
40
- };
@@ -1,22 +0,0 @@
1
- import { PixelationEffect } from 'postprocessing';
2
-
3
- export interface PixelationProps {
4
- /**
5
- * The pixel granularity.
6
- */
7
- granularity?: number;
8
- }
9
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<PixelationProps>, {
10
- pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
11
- effect: import('vue').ShallowRef<PixelationEffect | null>;
12
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<PixelationProps>>>, {}, {}>;
13
- export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToOption<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,48 +0,0 @@
1
- import { BlendFunction, VignetteEffect, VignetteTechnique } from 'postprocessing';
2
-
3
- export interface VignetteProps {
4
- /**
5
- * Whether the noise should be multiplied with the input color.
6
- */
7
- technique?: VignetteTechnique;
8
- blendFunction?: BlendFunction;
9
- offset: number;
10
- darkness: number;
11
- }
12
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<VignetteProps>, {
13
- technique: VignetteTechnique;
14
- blendFunction: BlendFunction;
15
- offset: number;
16
- darkness: number;
17
- }>, {
18
- pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
19
- effect: import('vue').ShallowRef<VignetteEffect | null>;
20
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<VignetteProps>, {
21
- technique: VignetteTechnique;
22
- blendFunction: BlendFunction;
23
- offset: number;
24
- darkness: number;
25
- }>>>, {
26
- blendFunction: BlendFunction;
27
- technique: VignetteTechnique;
28
- offset: number;
29
- darkness: number;
30
- }, {}>;
31
- export default _default;
32
- type __VLS_WithDefaults<P, D> = {
33
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
- default: D[K];
35
- }> : P[K];
36
- };
37
- type __VLS_Prettify<T> = {
38
- [K in keyof T]: T[K];
39
- } & {};
40
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
- type __VLS_TypePropsToOption<T> = {
42
- [K in keyof T]-?: {} extends Pick<T, K> ? {
43
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
- } : {
45
- type: import('vue').PropType<T[K]>;
46
- required: true;
47
- };
48
- };
@@ -1,4 +0,0 @@
1
- import { EffectComposer } from 'postprocessing';
2
- import { InjectionKey, ShallowRef } from 'vue';
3
-
4
- export declare const effectComposerInjectionKey: InjectionKey<ShallowRef<EffectComposer | null>>;