@tresjs/post-processing 3.9.2 → 3.11.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/tres-post-processing.d.ts +215 -78
- package/dist/tres-post-processing.js +287 -6
- package/package.json +8 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/post-processing
|
|
3
|
-
* version: v3.
|
|
3
|
+
* version: v3.11.0
|
|
4
4
|
* (c) 2026
|
|
5
5
|
* description: Post-processing library for TresJS
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
7
|
*/
|
|
8
8
|
import { Reactive, ShallowRef } from "vue";
|
|
9
|
-
import { ASCIIEffect, ASCIITexture, BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthCopyMode, DepthOfFieldEffect, DepthPickingPass, DotScreenEffect, EdgeDetectionMode, Effect, EffectComposer, EffectPass, FXAAEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, KernelSize, LensDistortionEffect, NoiseEffect, OutlineEffect, PixelationEffect, PredicationMode, SMAAEffect, SMAAPreset, ScanlineEffect, SepiaEffect, ShockWaveEffect, TextureEffect, TiltShiftEffect, ToneMappingEffect, ToneMappingMode, VignetteEffect, VignetteTechnique } from "postprocessing";
|
|
9
|
+
import { ASCIIEffect, ASCIITexture, BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthCopyMode, DepthOfFieldEffect, DepthPickingPass, DotScreenEffect, EdgeDetectionMode, Effect, EffectComposer, EffectPass, FXAAEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, KernelSize, LensDistortionEffect, NoiseEffect, OutlineEffect, Pass, PixelationEffect, PredicationMode, SMAAEffect, SMAAPreset, ScanlineEffect, SepiaEffect, ShockWaveEffect, TextureEffect, TiltShiftEffect, ToneMappingEffect, ToneMappingMode, VignetteEffect, VignetteTechnique } from "postprocessing";
|
|
10
10
|
import { TresColor } from "@tresjs/core";
|
|
11
|
-
import { Color, DepthPackingStrategies, Mesh, Object3D, Points, Texture, Vector2, Vector3, WebGLRenderTarget } from "three";
|
|
11
|
+
import { Color, ColorRepresentation, DepthPackingStrategies, Mesh, Object3D, Points, Texture, Vector2, Vector3, WebGLRenderTarget } from "three";
|
|
12
12
|
import { EffectComposer as EffectComposer$1 } from "three/examples/jsm/postprocessing/EffectComposer.js";
|
|
13
13
|
import { GlitchPass } from "three/examples/jsm/postprocessing/GlitchPass.js";
|
|
14
14
|
import { HalftonePass } from "three/examples/jsm/postprocessing/HalftonePass.js";
|
|
15
|
+
import { Pass as Pass$1 } from "three/examples/jsm/postprocessing/Pass.js";
|
|
15
16
|
import { RenderPixelatedPass } from "three/examples/jsm/postprocessing/RenderPixelatedPass.js";
|
|
16
17
|
import { OutputPass } from "three/examples/jsm/postprocessing/OutputPass.js";
|
|
17
18
|
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
|
|
18
19
|
import { UnrealBloomPass } from "three/examples/jsm/postprocessing/UnrealBloomPass.js";
|
|
19
|
-
import { Pass } from "three/examples/jsm/postprocessing/Pass.js";
|
|
20
20
|
import { Blending } from "three/src/constants.js";
|
|
21
21
|
//#region src/core/pmndrs/BloomPmndrs.vue.d.ts
|
|
22
22
|
interface BloomPmndrsProps {
|
|
@@ -81,8 +81,8 @@ interface BloomPmndrsProps {
|
|
|
81
81
|
*/
|
|
82
82
|
radius?: number;
|
|
83
83
|
}
|
|
84
|
-
declare const _default$2: typeof __VLS_export$
|
|
85
|
-
declare const __VLS_export$
|
|
84
|
+
declare const _default$2: typeof __VLS_export$39;
|
|
85
|
+
declare const __VLS_export$39: import("vue").DefineComponent<BloomPmndrsProps, {
|
|
86
86
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
87
87
|
effect: import("vue").ShallowRef<BloomEffect | null>;
|
|
88
88
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BloomPmndrsProps> & Readonly<{}>, {
|
|
@@ -130,8 +130,8 @@ interface DepthOfFieldPmndrsProps {
|
|
|
130
130
|
resolutionX?: number;
|
|
131
131
|
resolutionY?: number;
|
|
132
132
|
}
|
|
133
|
-
declare const _default$7: typeof __VLS_export$
|
|
134
|
-
declare const __VLS_export$
|
|
133
|
+
declare const _default$7: typeof __VLS_export$38;
|
|
134
|
+
declare const __VLS_export$38: import("vue").DefineComponent<DepthOfFieldPmndrsProps, {
|
|
135
135
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
136
136
|
effect: import("vue").ShallowRef<DepthOfFieldEffect | null>;
|
|
137
137
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DepthOfFieldPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -147,8 +147,8 @@ interface EffectComposerPmndrsProps {
|
|
|
147
147
|
multisampling?: number;
|
|
148
148
|
frameBufferType?: number;
|
|
149
149
|
}
|
|
150
|
-
declare const _default$11: typeof __VLS_export$
|
|
151
|
-
declare const __VLS_export$
|
|
150
|
+
declare const _default$11: typeof __VLS_export$37;
|
|
151
|
+
declare const __VLS_export$37: __VLS_WithSlots$1<import("vue").DefineComponent<EffectComposerPmndrsProps, {
|
|
152
152
|
composer: ShallowRef<EffectComposer | null>;
|
|
153
153
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
154
154
|
render: (...args: any[]) => void;
|
|
@@ -216,8 +216,8 @@ interface GlitchPmndrsProps {
|
|
|
216
216
|
*/
|
|
217
217
|
dtSize?: number;
|
|
218
218
|
}
|
|
219
|
-
declare const _default$15: typeof __VLS_export$
|
|
220
|
-
declare const __VLS_export$
|
|
219
|
+
declare const _default$15: typeof __VLS_export$36;
|
|
220
|
+
declare const __VLS_export$36: import("vue").DefineComponent<GlitchPmndrsProps, {
|
|
221
221
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
222
222
|
effect: import("vue").ShallowRef<GlitchEffect | null>;
|
|
223
223
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GlitchPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -230,8 +230,8 @@ interface NoisePmndrsProps {
|
|
|
230
230
|
premultiply?: boolean;
|
|
231
231
|
blendFunction?: BlendFunction;
|
|
232
232
|
}
|
|
233
|
-
declare const _default$
|
|
234
|
-
declare const __VLS_export$
|
|
233
|
+
declare const _default$25: typeof __VLS_export$35;
|
|
234
|
+
declare const __VLS_export$35: import("vue").DefineComponent<NoisePmndrsProps, {
|
|
235
235
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
236
236
|
effect: import("vue").ShallowRef<NoiseEffect | null>;
|
|
237
237
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NoisePmndrsProps> & Readonly<{}>, {
|
|
@@ -271,14 +271,14 @@ interface OutlinePmndrsProps {
|
|
|
271
271
|
hiddenEdgeColor?: TresColor;
|
|
272
272
|
visibleEdgeColor?: TresColor;
|
|
273
273
|
}
|
|
274
|
-
declare const __VLS_export$
|
|
274
|
+
declare const __VLS_export$34: import("vue").DefineComponent<OutlinePmndrsProps, {
|
|
275
275
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
276
276
|
effect: import("vue").ShallowRef<OutlineEffect | null>;
|
|
277
277
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OutlinePmndrsProps> & Readonly<{}>, {
|
|
278
278
|
blur: boolean;
|
|
279
279
|
xRay: boolean;
|
|
280
280
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
281
|
-
declare const _default$
|
|
281
|
+
declare const _default$26: typeof __VLS_export$34;
|
|
282
282
|
//#endregion
|
|
283
283
|
//#region src/core/pmndrs/PixelationPmndrs.vue.d.ts
|
|
284
284
|
interface PixelationPmndrsProps {
|
|
@@ -287,8 +287,8 @@ interface PixelationPmndrsProps {
|
|
|
287
287
|
*/
|
|
288
288
|
granularity?: number;
|
|
289
289
|
}
|
|
290
|
-
declare const _default$
|
|
291
|
-
declare const __VLS_export$
|
|
290
|
+
declare const _default$29: typeof __VLS_export$33;
|
|
291
|
+
declare const __VLS_export$33: import("vue").DefineComponent<PixelationPmndrsProps, {
|
|
292
292
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
293
293
|
effect: import("vue").ShallowRef<PixelationEffect | null>;
|
|
294
294
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PixelationPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -303,8 +303,8 @@ interface VignettePmndrsProps {
|
|
|
303
303
|
offset?: number;
|
|
304
304
|
darkness?: number;
|
|
305
305
|
}
|
|
306
|
-
declare const _default$
|
|
307
|
-
declare const __VLS_export$
|
|
306
|
+
declare const _default$39: typeof __VLS_export$32;
|
|
307
|
+
declare const __VLS_export$32: import("vue").DefineComponent<VignettePmndrsProps, {
|
|
308
308
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
309
309
|
effect: import("vue").ShallowRef<VignetteEffect | null>;
|
|
310
310
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VignettePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -364,11 +364,11 @@ interface BarrelBlurPmndrsProps {
|
|
|
364
364
|
*/
|
|
365
365
|
offset?: Vector2 | [number, number];
|
|
366
366
|
}
|
|
367
|
-
declare const __VLS_export$
|
|
367
|
+
declare const __VLS_export$31: import("vue").DefineComponent<BarrelBlurPmndrsProps, {
|
|
368
368
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
369
369
|
effect: import("vue").ShallowRef<BarrelBlurEffect | null>;
|
|
370
370
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BarrelBlurPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
371
|
-
declare const _default$1: typeof __VLS_export$
|
|
371
|
+
declare const _default$1: typeof __VLS_export$31;
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/core/pmndrs/ToneMappingPmndrs.vue.d.ts
|
|
374
374
|
interface ToneMappingPmndrsProps {
|
|
@@ -401,11 +401,11 @@ interface ToneMappingPmndrsProps {
|
|
|
401
401
|
*/
|
|
402
402
|
whitePoint?: number;
|
|
403
403
|
}
|
|
404
|
-
declare const __VLS_export$
|
|
404
|
+
declare const __VLS_export$30: import("vue").DefineComponent<ToneMappingPmndrsProps, {
|
|
405
405
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
406
406
|
effect: import("vue").ShallowRef<ToneMappingEffect | null>;
|
|
407
407
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToneMappingPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
408
|
-
declare const _default$
|
|
408
|
+
declare const _default$37: typeof __VLS_export$30;
|
|
409
409
|
//#endregion
|
|
410
410
|
//#region src/core/pmndrs/ChromaticAberrationPmndrs.vue.d.ts
|
|
411
411
|
interface ChromaticAberrationPmndrsProps {
|
|
@@ -426,13 +426,13 @@ interface ChromaticAberrationPmndrsProps {
|
|
|
426
426
|
*/
|
|
427
427
|
modulationOffset?: number;
|
|
428
428
|
}
|
|
429
|
-
declare const __VLS_export$
|
|
429
|
+
declare const __VLS_export$29: import("vue").DefineComponent<ChromaticAberrationPmndrsProps, {
|
|
430
430
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
431
431
|
effect: import("vue").ShallowRef<ChromaticAberrationEffect | null>;
|
|
432
432
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChromaticAberrationPmndrsProps> & Readonly<{}>, {
|
|
433
433
|
radialModulation: boolean;
|
|
434
434
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
435
|
-
declare const _default$4: typeof __VLS_export$
|
|
435
|
+
declare const _default$4: typeof __VLS_export$29;
|
|
436
436
|
//#endregion
|
|
437
437
|
//#region src/core/pmndrs/HueSaturationPmndrs.vue.d.ts
|
|
438
438
|
interface HueSaturationPmndrsProps {
|
|
@@ -451,11 +451,11 @@ interface HueSaturationPmndrsProps {
|
|
|
451
451
|
*/
|
|
452
452
|
blendFunction?: BlendFunction;
|
|
453
453
|
}
|
|
454
|
-
declare const __VLS_export$
|
|
454
|
+
declare const __VLS_export$28: import("vue").DefineComponent<HueSaturationPmndrsProps, {
|
|
455
455
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
456
456
|
effect: import("vue").ShallowRef<HueSaturationEffect | null>;
|
|
457
457
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HueSaturationPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
458
|
-
declare const _default$19: typeof __VLS_export$
|
|
458
|
+
declare const _default$19: typeof __VLS_export$28;
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/core/pmndrs/ScanlinePmndrs.vue.d.ts
|
|
461
461
|
interface ScanlinePmndrsProps {
|
|
@@ -476,11 +476,11 @@ interface ScanlinePmndrsProps {
|
|
|
476
476
|
*/
|
|
477
477
|
opacity?: number;
|
|
478
478
|
}
|
|
479
|
-
declare const __VLS_export$
|
|
479
|
+
declare const __VLS_export$27: import("vue").DefineComponent<ScanlinePmndrsProps, {
|
|
480
480
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
481
481
|
effect: import("vue").ShallowRef<ScanlineEffect | null>;
|
|
482
482
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScanlinePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
483
|
-
declare const _default$
|
|
483
|
+
declare const _default$32: typeof __VLS_export$27;
|
|
484
484
|
//#endregion
|
|
485
485
|
//#region src/core/pmndrs/custom/kuwahara/index.d.ts
|
|
486
486
|
declare class KuwaharaEffect extends Effect {
|
|
@@ -535,11 +535,11 @@ interface KuwaharaPmndrsProps {
|
|
|
535
535
|
*/
|
|
536
536
|
sectorCount?: number;
|
|
537
537
|
}
|
|
538
|
-
declare const __VLS_export$
|
|
538
|
+
declare const __VLS_export$26: import("vue").DefineComponent<KuwaharaPmndrsProps, {
|
|
539
539
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
540
540
|
effect: import("vue").ShallowRef<KuwaharaEffect | null>;
|
|
541
541
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KuwaharaPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
542
|
-
declare const _default$20: typeof __VLS_export$
|
|
542
|
+
declare const _default$20: typeof __VLS_export$26;
|
|
543
543
|
//#endregion
|
|
544
544
|
//#region src/core/pmndrs/ColorAveragePmndrs.vue.d.ts
|
|
545
545
|
interface ColorAveragePmndrsProps {
|
|
@@ -552,11 +552,11 @@ interface ColorAveragePmndrsProps {
|
|
|
552
552
|
*/
|
|
553
553
|
opacity?: number;
|
|
554
554
|
}
|
|
555
|
-
declare const __VLS_export$
|
|
555
|
+
declare const __VLS_export$25: import("vue").DefineComponent<ColorAveragePmndrsProps, {
|
|
556
556
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
557
557
|
effect: import("vue").ShallowRef<ColorAverageEffect | null>;
|
|
558
558
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorAveragePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
559
|
-
declare const _default$5: typeof __VLS_export$
|
|
559
|
+
declare const _default$5: typeof __VLS_export$25;
|
|
560
560
|
//#endregion
|
|
561
561
|
//#region src/core/pmndrs/LensDistortionPmndrs.vue.d.ts
|
|
562
562
|
interface LensDistortionPmndrsProps {
|
|
@@ -577,11 +577,11 @@ interface LensDistortionPmndrsProps {
|
|
|
577
577
|
*/
|
|
578
578
|
skew?: number;
|
|
579
579
|
}
|
|
580
|
-
declare const __VLS_export$
|
|
580
|
+
declare const __VLS_export$24: import("vue").DefineComponent<LensDistortionPmndrsProps, {
|
|
581
581
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
582
582
|
effect: import("vue").ShallowRef<LensDistortionEffect | null>;
|
|
583
583
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LensDistortionPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
584
|
-
declare const _default$21: typeof __VLS_export$
|
|
584
|
+
declare const _default$21: typeof __VLS_export$24;
|
|
585
585
|
//#endregion
|
|
586
586
|
//#region src/core/pmndrs/ShockWavePmndrs.vue.d.ts
|
|
587
587
|
interface ShockWavePmndrsProps {
|
|
@@ -606,11 +606,11 @@ interface ShockWavePmndrsProps {
|
|
|
606
606
|
*/
|
|
607
607
|
waveSize?: number;
|
|
608
608
|
}
|
|
609
|
-
declare const __VLS_export$
|
|
609
|
+
declare const __VLS_export$23: import("vue").DefineComponent<ShockWavePmndrsProps, {
|
|
610
610
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
611
611
|
effect: import("vue").ShallowRef<ShockWaveEffect | null>;
|
|
612
612
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ShockWavePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
613
|
-
declare const _default$
|
|
613
|
+
declare const _default$34: typeof __VLS_export$23;
|
|
614
614
|
//#endregion
|
|
615
615
|
//#region src/core/pmndrs/TiltShiftPmndrs.vue.d.ts
|
|
616
616
|
interface TiltShiftPmndrsProps {
|
|
@@ -656,11 +656,11 @@ interface TiltShiftPmndrsProps {
|
|
|
656
656
|
*/
|
|
657
657
|
resolutionY?: number;
|
|
658
658
|
}
|
|
659
|
-
declare const __VLS_export$
|
|
659
|
+
declare const __VLS_export$22: import("vue").DefineComponent<TiltShiftPmndrsProps, {
|
|
660
660
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
661
661
|
effect: import("vue").ShallowRef<TiltShiftEffect | null>;
|
|
662
662
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TiltShiftPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
663
|
-
declare const _default$
|
|
663
|
+
declare const _default$36: typeof __VLS_export$22;
|
|
664
664
|
//#endregion
|
|
665
665
|
//#region src/core/pmndrs/DotScreenPmndrs.vue.d.ts
|
|
666
666
|
interface DotScreenPmndrsProps {
|
|
@@ -679,11 +679,11 @@ interface DotScreenPmndrsProps {
|
|
|
679
679
|
*/
|
|
680
680
|
blendFunction?: BlendFunction;
|
|
681
681
|
}
|
|
682
|
-
declare const __VLS_export$
|
|
682
|
+
declare const __VLS_export$21: import("vue").DefineComponent<DotScreenPmndrsProps, {
|
|
683
683
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
684
684
|
effect: import("vue").ShallowRef<DotScreenEffect | null>;
|
|
685
685
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DotScreenPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
686
|
-
declare const _default$9: typeof __VLS_export$
|
|
686
|
+
declare const _default$9: typeof __VLS_export$21;
|
|
687
687
|
//#endregion
|
|
688
688
|
//#region src/core/pmndrs/SepiaPmndrs.vue.d.ts
|
|
689
689
|
interface SepiaPmndrsProps {
|
|
@@ -696,11 +696,11 @@ interface SepiaPmndrsProps {
|
|
|
696
696
|
*/
|
|
697
697
|
intensity?: number;
|
|
698
698
|
}
|
|
699
|
-
declare const __VLS_export$
|
|
699
|
+
declare const __VLS_export$20: import("vue").DefineComponent<SepiaPmndrsProps, {
|
|
700
700
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
701
701
|
effect: import("vue").ShallowRef<SepiaEffect | null>;
|
|
702
702
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SepiaPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
703
|
-
declare const _default$
|
|
703
|
+
declare const _default$33: typeof __VLS_export$20;
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region src/core/pmndrs/custom/linocut/index.d.ts
|
|
706
706
|
/**
|
|
@@ -738,11 +738,11 @@ interface LinocutPmndrsProps {
|
|
|
738
738
|
center?: Vector2 | [number, number];
|
|
739
739
|
rotation?: number;
|
|
740
740
|
}
|
|
741
|
-
declare const __VLS_export$
|
|
741
|
+
declare const __VLS_export$19: import("vue").DefineComponent<LinocutPmndrsProps, {
|
|
742
742
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
743
743
|
effect: import("vue").ShallowRef<LinocutEffect | null>;
|
|
744
744
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinocutPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
745
|
-
declare const _default$22: typeof __VLS_export$
|
|
745
|
+
declare const _default$22: typeof __VLS_export$19;
|
|
746
746
|
//#endregion
|
|
747
747
|
//#region src/core/pmndrs/DepthPickingPassPmndrs.vue.d.ts
|
|
748
748
|
interface DepthPickingPassPmndrsProps {
|
|
@@ -757,10 +757,10 @@ interface DepthPickingPassPmndrsProps {
|
|
|
757
757
|
*/
|
|
758
758
|
mode?: DepthCopyMode;
|
|
759
759
|
}
|
|
760
|
-
declare const __VLS_export$
|
|
760
|
+
declare const __VLS_export$18: import("vue").DefineComponent<DepthPickingPassPmndrsProps, {
|
|
761
761
|
pass: DepthPickingPass;
|
|
762
762
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DepthPickingPassPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
763
|
-
declare const _default$8: typeof __VLS_export$
|
|
763
|
+
declare const _default$8: typeof __VLS_export$18;
|
|
764
764
|
//#endregion
|
|
765
765
|
//#region src/core/pmndrs/GodRaysPmndrs.vue.d.ts
|
|
766
766
|
interface GodRaysPmndrsProps {
|
|
@@ -821,11 +821,11 @@ interface GodRaysPmndrsProps {
|
|
|
821
821
|
*/
|
|
822
822
|
clampMax?: number;
|
|
823
823
|
}
|
|
824
|
-
declare const __VLS_export$
|
|
824
|
+
declare const __VLS_export$17: import("vue").DefineComponent<GodRaysPmndrsProps, {
|
|
825
825
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
826
826
|
effect: import("vue").ShallowRef<GodRaysEffect | null>;
|
|
827
827
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GodRaysPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
828
|
-
declare const _default$16: typeof __VLS_export$
|
|
828
|
+
declare const _default$16: typeof __VLS_export$17;
|
|
829
829
|
//#endregion
|
|
830
830
|
//#region src/core/pmndrs/ColorDepthPmndrs.vue.d.ts
|
|
831
831
|
interface ColorDepthPmndrsProps {
|
|
@@ -842,11 +842,11 @@ interface ColorDepthPmndrsProps {
|
|
|
842
842
|
*/
|
|
843
843
|
opacity?: number;
|
|
844
844
|
}
|
|
845
|
-
declare const __VLS_export$
|
|
845
|
+
declare const __VLS_export$16: import("vue").DefineComponent<ColorDepthPmndrsProps, {
|
|
846
846
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
847
847
|
effect: import("vue").ShallowRef<ColorDepthEffect | null>;
|
|
848
848
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorDepthPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
849
|
-
declare const _default$6: typeof __VLS_export$
|
|
849
|
+
declare const _default$6: typeof __VLS_export$16;
|
|
850
850
|
//#endregion
|
|
851
851
|
//#region src/core/pmndrs/GridPmndrs.vue.d.ts
|
|
852
852
|
interface GridPmndrsProps {
|
|
@@ -863,11 +863,11 @@ interface GridPmndrsProps {
|
|
|
863
863
|
*/
|
|
864
864
|
lineWidth?: number;
|
|
865
865
|
}
|
|
866
|
-
declare const __VLS_export$
|
|
866
|
+
declare const __VLS_export$15: import("vue").DefineComponent<GridPmndrsProps, {
|
|
867
867
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
868
868
|
effect: import("vue").ShallowRef<GridEffect | null>;
|
|
869
869
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
870
|
-
declare const _default$17: typeof __VLS_export$
|
|
870
|
+
declare const _default$17: typeof __VLS_export$15;
|
|
871
871
|
//#endregion
|
|
872
872
|
//#region src/core/pmndrs/custom/fish-eye/index.d.ts
|
|
873
873
|
/**
|
|
@@ -936,11 +936,11 @@ interface FishEyePmndrsProps {
|
|
|
936
936
|
*/
|
|
937
937
|
scale?: number;
|
|
938
938
|
}
|
|
939
|
-
declare const __VLS_export$
|
|
939
|
+
declare const __VLS_export$14: import("vue").DefineComponent<FishEyePmndrsProps, {
|
|
940
940
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
941
941
|
effect: import("vue").ShallowRef<FishEyeEffect | null>;
|
|
942
942
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FishEyePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
943
|
-
declare const _default$13: typeof __VLS_export$
|
|
943
|
+
declare const _default$13: typeof __VLS_export$14;
|
|
944
944
|
//#endregion
|
|
945
945
|
//#region src/core/pmndrs/BrightnessContrastPmndrs.vue.d.ts
|
|
946
946
|
interface BrightnessContrastPmndrsProps {
|
|
@@ -957,11 +957,11 @@ interface BrightnessContrastPmndrsProps {
|
|
|
957
957
|
*/
|
|
958
958
|
contrast?: number;
|
|
959
959
|
}
|
|
960
|
-
declare const __VLS_export$
|
|
960
|
+
declare const __VLS_export$13: import("vue").DefineComponent<BrightnessContrastPmndrsProps, {
|
|
961
961
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
962
962
|
effect: import("vue").ShallowRef<BrightnessContrastEffect | null>;
|
|
963
963
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BrightnessContrastPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
964
|
-
declare const _default$3: typeof __VLS_export$
|
|
964
|
+
declare const _default$3: typeof __VLS_export$13;
|
|
965
965
|
//#endregion
|
|
966
966
|
//#region src/core/pmndrs/SMAAPmndrs.vue.d.ts
|
|
967
967
|
declare const DEBUG_MODE: {
|
|
@@ -1000,8 +1000,8 @@ interface SMAAPmndrsProps {
|
|
|
1000
1000
|
*/
|
|
1001
1001
|
debug?: typeof DEBUG_MODE[keyof typeof DEBUG_MODE];
|
|
1002
1002
|
}
|
|
1003
|
-
declare const _default$
|
|
1004
|
-
declare const __VLS_export$
|
|
1003
|
+
declare const _default$31: typeof __VLS_export$12;
|
|
1004
|
+
declare const __VLS_export$12: import("vue").DefineComponent<SMAAPmndrsProps, {
|
|
1005
1005
|
pass: import("vue").ShallowRef<EffectPass | null>;
|
|
1006
1006
|
effect: import("vue").ShallowRef<SMAAEffect | null>;
|
|
1007
1007
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SMAAPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1033,11 +1033,11 @@ interface FXAAPmndrsProps {
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
subpixelQuality?: number;
|
|
1035
1035
|
}
|
|
1036
|
-
declare const __VLS_export$
|
|
1036
|
+
declare const __VLS_export$11: import("vue").DefineComponent<FXAAPmndrsProps, {
|
|
1037
1037
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
1038
1038
|
effect: import("vue").ShallowRef<FXAAEffect | null>;
|
|
1039
1039
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FXAAPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1040
|
-
declare const _default$12: typeof __VLS_export$
|
|
1040
|
+
declare const _default$12: typeof __VLS_export$11;
|
|
1041
1041
|
//#endregion
|
|
1042
1042
|
//#region src/core/pmndrs/TexturePmndrs.vue.d.ts
|
|
1043
1043
|
interface TexturePmndrsProps {
|
|
@@ -1054,11 +1054,11 @@ interface TexturePmndrsProps {
|
|
|
1054
1054
|
*/
|
|
1055
1055
|
opacity?: number;
|
|
1056
1056
|
}
|
|
1057
|
-
declare const __VLS_export$
|
|
1057
|
+
declare const __VLS_export$10: import("vue").DefineComponent<TexturePmndrsProps, {
|
|
1058
1058
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
1059
1059
|
effect: import("vue").ShallowRef<TextureEffect | null>;
|
|
1060
1060
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TexturePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1061
|
-
declare const _default$
|
|
1061
|
+
declare const _default$35: typeof __VLS_export$10;
|
|
1062
1062
|
//#endregion
|
|
1063
1063
|
//#region src/core/pmndrs/ASCIIPmndrs.vue.d.ts
|
|
1064
1064
|
type ASCIITextureOptions = ConstructorParameters<typeof ASCIITexture>[0];
|
|
@@ -1094,11 +1094,137 @@ interface ASCIIPmndrsProps {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
asciiTexture?: ASCIITextureOptions;
|
|
1096
1096
|
}
|
|
1097
|
-
declare const __VLS_export$
|
|
1097
|
+
declare const __VLS_export$9: import("vue").DefineComponent<ASCIIPmndrsProps, {
|
|
1098
1098
|
pass: import("vue").ShallowRef<import("postprocessing").EffectPass | null>;
|
|
1099
1099
|
effect: import("vue").ShallowRef<ASCIIEffect | null>;
|
|
1100
1100
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ASCIIPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1101
|
-
declare const _default: typeof __VLS_export$
|
|
1101
|
+
declare const _default: typeof __VLS_export$9;
|
|
1102
|
+
//#endregion
|
|
1103
|
+
//#region src/util/n8ao.d.ts
|
|
1104
|
+
/**
|
|
1105
|
+
* 0 = Combined, 1 = AO only, 2 = No AO, 3 = Split (scene with and without AO), 4 = Split AO (AO only and combined)
|
|
1106
|
+
*/
|
|
1107
|
+
type N8AORenderMode = 0 | 1 | 2 | 3 | 4;
|
|
1108
|
+
/** Mirrors the `configuration` object of n8ao 2.x passes. */
|
|
1109
|
+
interface N8AOConfiguration {
|
|
1110
|
+
aoRadius: number;
|
|
1111
|
+
distanceFalloff: number;
|
|
1112
|
+
intensity: number;
|
|
1113
|
+
color: Color;
|
|
1114
|
+
aoSamples: number;
|
|
1115
|
+
denoiseSamples: number;
|
|
1116
|
+
denoiseRadius: number;
|
|
1117
|
+
denoiseIterations: number;
|
|
1118
|
+
aoTones: number;
|
|
1119
|
+
renderMode: N8AORenderMode;
|
|
1120
|
+
gammaCorrection: boolean;
|
|
1121
|
+
screenSpaceRadius: boolean;
|
|
1122
|
+
halfRes: boolean;
|
|
1123
|
+
depthAwareUpsampling: boolean;
|
|
1124
|
+
colorMultiply: boolean;
|
|
1125
|
+
transparencyAware: boolean;
|
|
1126
|
+
accumulate: boolean;
|
|
1127
|
+
neuralDenoise: boolean;
|
|
1128
|
+
biasOffset: number;
|
|
1129
|
+
biasMultiplier: number;
|
|
1130
|
+
}
|
|
1131
|
+
type N8AOQualityMode = 'Performance' | 'Low' | 'Medium' | 'High' | 'Ultra' | 'Neural-Low' | 'Neural-Medium' | 'Neural-High';
|
|
1132
|
+
interface N8AOPassMembers {
|
|
1133
|
+
configuration: N8AOConfiguration;
|
|
1134
|
+
setQualityMode: (mode: N8AOQualityMode) => void;
|
|
1135
|
+
}
|
|
1136
|
+
/** `N8AOPass` from n8ao, a three.js pass that renders the scene itself. */
|
|
1137
|
+
type N8AOPassInstance = Pass$1 & N8AOPassMembers;
|
|
1138
|
+
/** `N8AOPostPass` from n8ao, a pmndrs pass that reads the frame of a preceding `RenderPass`. */
|
|
1139
|
+
type N8AOPostPassInstance = Pass & N8AOPassMembers & {
|
|
1140
|
+
/** When true, the pass picks gamma correction from its position in the chain. */
|
|
1141
|
+
autosetGamma: boolean;
|
|
1142
|
+
};
|
|
1143
|
+
interface N8AOProps {
|
|
1144
|
+
/**
|
|
1145
|
+
* Radius of the occlusion in world units (in pixels when `screenSpaceRadius` is true).
|
|
1146
|
+
* Should be one or two magnitudes smaller than the scene.
|
|
1147
|
+
* Default: 5
|
|
1148
|
+
*/
|
|
1149
|
+
aoRadius?: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* How fast the occlusion fades with distance, as a ratio of `aoRadius`.
|
|
1152
|
+
* Default: 1
|
|
1153
|
+
*/
|
|
1154
|
+
distanceFalloff?: number;
|
|
1155
|
+
/**
|
|
1156
|
+
* Artistic darkening of the occlusion, applied as `pow(ao, intensity)`.
|
|
1157
|
+
* Default: 5
|
|
1158
|
+
*/
|
|
1159
|
+
intensity?: number;
|
|
1160
|
+
/**
|
|
1161
|
+
* Color of the occlusion, in sRGB.
|
|
1162
|
+
* Default: 0x000000
|
|
1163
|
+
*/
|
|
1164
|
+
color?: ColorRepresentation;
|
|
1165
|
+
/**
|
|
1166
|
+
* Number of AO samples per pixel. Changing it recompiles the shaders.
|
|
1167
|
+
* Default: 16
|
|
1168
|
+
*/
|
|
1169
|
+
aoSamples?: number;
|
|
1170
|
+
/**
|
|
1171
|
+
* Number of denoise samples per pixel. Changing it recompiles the shaders.
|
|
1172
|
+
* Default: 8
|
|
1173
|
+
*/
|
|
1174
|
+
denoiseSamples?: number;
|
|
1175
|
+
/**
|
|
1176
|
+
* Radius of the denoise filter.
|
|
1177
|
+
* Default: 12
|
|
1178
|
+
*/
|
|
1179
|
+
denoiseRadius?: number;
|
|
1180
|
+
/**
|
|
1181
|
+
* Number of denoise passes.
|
|
1182
|
+
* Default: 2
|
|
1183
|
+
*/
|
|
1184
|
+
denoiseIterations?: number;
|
|
1185
|
+
/**
|
|
1186
|
+
* Compute the AO at half resolution and upscale it. Usually 2x to 4x faster.
|
|
1187
|
+
* Default: false
|
|
1188
|
+
*/
|
|
1189
|
+
halfRes?: boolean;
|
|
1190
|
+
/**
|
|
1191
|
+
* Use depth-aware upscaling in `halfRes` mode. Without it, the upscaled AO bleeds over edges.
|
|
1192
|
+
* Default: true
|
|
1193
|
+
*/
|
|
1194
|
+
depthAwareUpsampling?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* Interpret `aoRadius` in pixels and `distanceFalloff` as a ratio of it.
|
|
1197
|
+
* Default: false
|
|
1198
|
+
*/
|
|
1199
|
+
screenSpaceRadius?: boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* Quantize the AO into this many tones (toon shading). 0 keeps it continuous.
|
|
1202
|
+
* Default: 0
|
|
1203
|
+
*/
|
|
1204
|
+
aoTones?: number;
|
|
1205
|
+
/**
|
|
1206
|
+
* Debug view. 0 = Combined, 1 = AO only, 2 = No AO, 3 = Split, 4 = Split AO.
|
|
1207
|
+
* Default: 0
|
|
1208
|
+
*/
|
|
1209
|
+
renderMode?: N8AORenderMode;
|
|
1210
|
+
/**
|
|
1211
|
+
* Apply sRGB conversion to the output. Set it to false when a later pass already converts color space.
|
|
1212
|
+
* Default: automatic for `N8AOPmndrs` (true only when it is the last pass), true for `N8AO`
|
|
1213
|
+
*/
|
|
1214
|
+
gammaCorrection?: boolean;
|
|
1215
|
+
}
|
|
1216
|
+
//#endregion
|
|
1217
|
+
//#region src/core/pmndrs/N8AOPmndrs.vue.d.ts
|
|
1218
|
+
type N8AOPmndrsProps = N8AOProps;
|
|
1219
|
+
declare const __VLS_export$8: import("vue").DefineComponent<N8AOProps, {
|
|
1220
|
+
pass: import("vue").ShallowRef<N8AOPostPassInstance | null>;
|
|
1221
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<N8AOProps> & Readonly<{}>, {
|
|
1222
|
+
halfRes: boolean;
|
|
1223
|
+
depthAwareUpsampling: boolean;
|
|
1224
|
+
screenSpaceRadius: boolean;
|
|
1225
|
+
gammaCorrection: boolean;
|
|
1226
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1227
|
+
declare const _default$24: typeof __VLS_export$8;
|
|
1102
1228
|
//#endregion
|
|
1103
1229
|
//#region src/core/three/composables/useEffect.d.ts
|
|
1104
1230
|
/**
|
|
@@ -1106,7 +1232,7 @@ declare const _default: typeof __VLS_export$7;
|
|
|
1106
1232
|
* @param passDependencies - A reactive object that the pass depends on (usually props). Changes to this object will trigger re-rendering.
|
|
1107
1233
|
* @param dependencyFieldsTriggeringRecreation - fields in passDependencies that require effect recreation when changed
|
|
1108
1234
|
*/
|
|
1109
|
-
export declare const useEffect: <T extends Pass, D extends Record<PropertyKey, any>>(newPassFunction: () => T, passDependencies?: Reactive<D>, dependencyFieldsTriggeringRecreation?: (keyof D)[]) => {
|
|
1235
|
+
export declare const useEffect: <T extends Pass$1, D extends Record<PropertyKey, any>>(newPassFunction: () => T, passDependencies?: Reactive<D>, dependencyFieldsTriggeringRecreation?: (keyof D)[]) => {
|
|
1110
1236
|
pass: ShallowRef<T>;
|
|
1111
1237
|
};
|
|
1112
1238
|
//#endregion
|
|
@@ -1116,8 +1242,8 @@ interface EffectComposerProps {
|
|
|
1116
1242
|
renderTarget?: WebGLRenderTarget;
|
|
1117
1243
|
withoutRenderPass?: boolean;
|
|
1118
1244
|
}
|
|
1119
|
-
declare const _default$10: typeof __VLS_export$
|
|
1120
|
-
declare const __VLS_export$
|
|
1245
|
+
declare const _default$10: typeof __VLS_export$7;
|
|
1246
|
+
declare const __VLS_export$7: __VLS_WithSlots<import("vue").DefineComponent<EffectComposerProps, {
|
|
1121
1247
|
composer: ShallowRef<EffectComposer$1 | null>;
|
|
1122
1248
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EffectComposerProps> & Readonly<{}>, {
|
|
1123
1249
|
enabled: boolean;
|
|
@@ -1141,8 +1267,8 @@ interface GlitchProps {
|
|
|
1141
1267
|
*/
|
|
1142
1268
|
goWild?: boolean;
|
|
1143
1269
|
}
|
|
1144
|
-
declare const _default$14: typeof __VLS_export$
|
|
1145
|
-
declare const __VLS_export$
|
|
1270
|
+
declare const _default$14: typeof __VLS_export$6;
|
|
1271
|
+
declare const __VLS_export$6: import("vue").DefineComponent<GlitchProps, {
|
|
1146
1272
|
pass: import("vue").ShallowRef<GlitchPass>;
|
|
1147
1273
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GlitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1148
1274
|
//#endregion
|
|
@@ -1164,18 +1290,29 @@ interface HalftoneProps {
|
|
|
1164
1290
|
greyscale?: boolean;
|
|
1165
1291
|
blendingMode?: Blending;
|
|
1166
1292
|
}
|
|
1167
|
-
declare const _default$18: typeof __VLS_export$
|
|
1168
|
-
declare const __VLS_export$
|
|
1293
|
+
declare const _default$18: typeof __VLS_export$5;
|
|
1294
|
+
declare const __VLS_export$5: import("vue").DefineComponent<HalftoneProps, {
|
|
1169
1295
|
pass: import("vue").ShallowRef<HalftonePass>;
|
|
1170
1296
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HalftoneProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1171
1297
|
//#endregion
|
|
1298
|
+
//#region src/core/three/N8AO.vue.d.ts
|
|
1299
|
+
declare const __VLS_export$4: import("vue").DefineComponent<N8AOProps, {
|
|
1300
|
+
pass: import("vue").ShallowRef<N8AOPassInstance | null>;
|
|
1301
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<N8AOProps> & Readonly<{}>, {
|
|
1302
|
+
halfRes: boolean;
|
|
1303
|
+
depthAwareUpsampling: boolean;
|
|
1304
|
+
screenSpaceRadius: boolean;
|
|
1305
|
+
gammaCorrection: boolean;
|
|
1306
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1307
|
+
declare const _default$23: typeof __VLS_export$4;
|
|
1308
|
+
//#endregion
|
|
1172
1309
|
//#region src/core/three/Pixelation.vue.d.ts
|
|
1173
1310
|
interface PixelationProps {
|
|
1174
1311
|
pixelSize: number;
|
|
1175
1312
|
depthEdgeStrength?: number;
|
|
1176
1313
|
normalEdgeStrength?: number;
|
|
1177
1314
|
}
|
|
1178
|
-
declare const _default$
|
|
1315
|
+
declare const _default$28: typeof __VLS_export$3;
|
|
1179
1316
|
declare const __VLS_export$3: import("vue").DefineComponent<PixelationProps, {
|
|
1180
1317
|
pass: import("vue").ShallowRef<RenderPixelatedPass>;
|
|
1181
1318
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PixelationProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1184,14 +1321,14 @@ declare const __VLS_export$3: import("vue").DefineComponent<PixelationProps, {
|
|
|
1184
1321
|
declare const __VLS_export$2: import("vue").DefineComponent<{}, {
|
|
1185
1322
|
pass: import("vue").ShallowRef<OutputPass>;
|
|
1186
1323
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1187
|
-
declare const _default$
|
|
1324
|
+
declare const _default$27: typeof __VLS_export$2;
|
|
1188
1325
|
//#endregion
|
|
1189
1326
|
//#region src/core/three/SMAA.vue.d.ts
|
|
1190
1327
|
interface SMAAProps {
|
|
1191
1328
|
width?: number;
|
|
1192
1329
|
height?: number;
|
|
1193
1330
|
}
|
|
1194
|
-
declare const _default$
|
|
1331
|
+
declare const _default$30: typeof __VLS_export$1;
|
|
1195
1332
|
declare const __VLS_export$1: import("vue").DefineComponent<SMAAProps, {
|
|
1196
1333
|
pass: import("vue").ShallowRef<SMAAPass>;
|
|
1197
1334
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SMAAProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1202,7 +1339,7 @@ interface UnrealBloomProps {
|
|
|
1202
1339
|
strength?: number;
|
|
1203
1340
|
threshold?: number;
|
|
1204
1341
|
}
|
|
1205
|
-
declare const _default$
|
|
1342
|
+
declare const _default$38: typeof __VLS_export;
|
|
1206
1343
|
declare const __VLS_export: import("vue").DefineComponent<UnrealBloomProps, {
|
|
1207
1344
|
pass: import("vue").ShallowRef<UnrealBloomPass>;
|
|
1208
1345
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UnrealBloomProps> & Readonly<{}>, {
|
|
@@ -1211,4 +1348,4 @@ declare const __VLS_export: import("vue").DefineComponent<UnrealBloomProps, {
|
|
|
1211
1348
|
threshold: number;
|
|
1212
1349
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1213
1350
|
//#endregion
|
|
1214
|
-
export { _default as ASCIIPmndrs, type ASCIIPmndrsProps, _default$1 as BarrelBlurPmndrs, type BarrelBlurPmndrsProps, _default$2 as BloomPmndrs, type BloomPmndrsProps, _default$3 as BrightnessContrastPmndrs, type BrightnessContrastPmndrsProps, _default$4 as ChromaticAberrationPmndrs, type ChromaticAberrationPmndrsProps, _default$5 as ColorAveragePmndrs, type ColorAveragePmndrsProps, _default$6 as ColorDepthPmndrs, type ColorDepthPmndrsProps, _default$7 as DepthOfFieldPmndrs, type DepthOfFieldPmndrsProps, _default$8 as DepthPickingPassPmndrs, type DepthPickingPassPmndrsProps, _default$9 as DotScreenPmndrs, type DotScreenPmndrsProps, _default$10 as EffectComposer, _default$11 as EffectComposerPmndrs, type EffectComposerPmndrsProps, type EffectComposerProps, _default$12 as FXAAPmndrs, type FXAAPmndrsProps, _default$13 as FishEyePmndrs, type FishEyePmndrsProps, _default$14 as Glitch, _default$15 as GlitchPmndrs, type GlitchPmndrsProps, type GlitchProps, _default$16 as GodRaysPmndrs, type GodRaysPmndrsProps, _default$17 as GridPmndrs, type GridPmndrsProps, _default$18 as Halftone, type HalftoneProps, _default$19 as HueSaturationPmndrs, type HueSaturationPmndrsProps, _default$20 as KuwaharaPmndrs, type KuwaharaPmndrsProps, _default$21 as LensDistortionPmndrs, type LensDistortionPmndrsProps, _default$22 as LinocutPmndrs, type LinocutPmndrsProps, _default$23 as NoisePmndrs, type NoisePmndrsProps, _default$
|
|
1351
|
+
export { _default as ASCIIPmndrs, type ASCIIPmndrsProps, _default$1 as BarrelBlurPmndrs, type BarrelBlurPmndrsProps, _default$2 as BloomPmndrs, type BloomPmndrsProps, _default$3 as BrightnessContrastPmndrs, type BrightnessContrastPmndrsProps, _default$4 as ChromaticAberrationPmndrs, type ChromaticAberrationPmndrsProps, _default$5 as ColorAveragePmndrs, type ColorAveragePmndrsProps, _default$6 as ColorDepthPmndrs, type ColorDepthPmndrsProps, _default$7 as DepthOfFieldPmndrs, type DepthOfFieldPmndrsProps, _default$8 as DepthPickingPassPmndrs, type DepthPickingPassPmndrsProps, _default$9 as DotScreenPmndrs, type DotScreenPmndrsProps, _default$10 as EffectComposer, _default$11 as EffectComposerPmndrs, type EffectComposerPmndrsProps, type EffectComposerProps, _default$12 as FXAAPmndrs, type FXAAPmndrsProps, _default$13 as FishEyePmndrs, type FishEyePmndrsProps, _default$14 as Glitch, _default$15 as GlitchPmndrs, type GlitchPmndrsProps, type GlitchProps, _default$16 as GodRaysPmndrs, type GodRaysPmndrsProps, _default$17 as GridPmndrs, type GridPmndrsProps, _default$18 as Halftone, type HalftoneProps, _default$19 as HueSaturationPmndrs, type HueSaturationPmndrsProps, _default$20 as KuwaharaPmndrs, type KuwaharaPmndrsProps, _default$21 as LensDistortionPmndrs, type LensDistortionPmndrsProps, _default$22 as LinocutPmndrs, type LinocutPmndrsProps, _default$23 as N8AO, _default$24 as N8AOPmndrs, type N8AOPmndrsProps, type N8AOProps, _default$25 as NoisePmndrs, type NoisePmndrsProps, _default$26 as OutlinePmndrs, type OutlinePmndrsProps, _default$27 as Output, _default$28 as Pixelation, _default$29 as PixelationPmndrs, type PixelationPmndrsProps, type PixelationProps, _default$30 as SMAA, _default$31 as SMAAPmndrs, type SMAAPmndrsProps, type SMAAProps, _default$32 as ScanlinePmndrs, type ScanlinePmndrsProps, _default$33 as SepiaPmndrs, type SepiaPmndrsProps, _default$34 as ShockWavePmndrs, type ShockWavePmndrsProps, _default$35 as TexturePmndrs, type TexturePmndrsProps, _default$36 as TiltShiftPmndrs, type TiltShiftPmndrsProps, _default$37 as ToneMappingPmndrs, type ToneMappingPmndrsProps, _default$38 as UnrealBloom, type UnrealBloomProps, _default$39 as VignettePmndrs, type VignettePmndrsProps };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/post-processing
|
|
3
|
-
* version: v3.
|
|
3
|
+
* version: v3.11.0
|
|
4
4
|
* (c) 2026
|
|
5
5
|
* description: Post-processing library for TresJS
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
7
|
*/
|
|
8
|
-
import { computed, defineComponent, inject, nextTick, onUnmounted, provide, renderSlot, shallowRef, toRaw, watch, watchEffect } from "vue";
|
|
9
|
-
import { ASCIIEffect, ASCIITexture, BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthDownsamplingPass, DepthOfFieldEffect, DepthPickingPass, DotScreenEffect, Effect, EffectComposer, EffectPass, FXAAEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, LensDistortionEffect, NoiseEffect, NormalPass, OutlineEffect, PixelationEffect, RenderPass, SMAAEffect, ScanlineEffect, SepiaEffect, ShockWaveEffect, TextureEffect, TiltShiftEffect, ToneMappingEffect, VignetteEffect } from "postprocessing";
|
|
10
|
-
import { normalizeColor, useLoop, useTres, useTresContext } from "@tresjs/core";
|
|
11
|
-
import { HalfFloatType, Mesh, MeshBasicMaterial, SphereGeometry, Uniform, Vector2, Vector3 } from "three";
|
|
8
|
+
import { computed, defineComponent, inject, mergeDefaults, nextTick, onUnmounted, provide, renderSlot, shallowRef, toRaw, watch, watchEffect } from "vue";
|
|
9
|
+
import { ASCIIEffect, ASCIITexture, BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthDownsamplingPass, DepthOfFieldEffect, DepthPickingPass, DotScreenEffect, Effect, EffectComposer, EffectPass, FXAAEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, LensDistortionEffect, NoiseEffect, NormalPass, OutlineEffect, Pass, PixelationEffect, RenderPass, SMAAEffect, ScanlineEffect, SepiaEffect, ShockWaveEffect, TextureEffect, TiltShiftEffect, ToneMappingEffect, VignetteEffect } from "postprocessing";
|
|
10
|
+
import { isProd, logWarning, normalizeColor, useLoop, useTres, useTresContext } from "@tresjs/core";
|
|
11
|
+
import { Color, HalfFloatType, Material, Mesh, MeshBasicMaterial, RenderTarget, SphereGeometry, Texture, Uniform, Vector2, Vector3 } from "three";
|
|
12
12
|
import WEBGL from "three/examples/jsm/capabilities/WebGL.js";
|
|
13
13
|
import { useDevicePixelRatio } from "@vueuse/core";
|
|
14
14
|
import { EffectComposer as EffectComposer$1 } from "three/examples/jsm/postprocessing/EffectComposer.js";
|
|
@@ -16,6 +16,7 @@ import { RenderPass as RenderPass$1 } from "three/examples/jsm/postprocessing/Re
|
|
|
16
16
|
import { GlitchPass } from "three/examples/jsm/postprocessing/GlitchPass.js";
|
|
17
17
|
import { HalftonePass } from "three/examples/jsm/postprocessing/HalftonePass.js";
|
|
18
18
|
import { HalftoneShader } from "three/examples/jsm/shaders/HalftoneShader.js";
|
|
19
|
+
import { Pass as Pass$1 } from "three/examples/jsm/postprocessing/Pass.js";
|
|
19
20
|
import { RenderPixelatedPass } from "three/examples/jsm/postprocessing/RenderPixelatedPass.js";
|
|
20
21
|
import { OutputPass } from "three/examples/jsm/postprocessing/OutputPass.js";
|
|
21
22
|
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
|
|
@@ -2222,6 +2223,197 @@ var ASCIIPmndrs_default = /* @__PURE__ */ defineComponent({
|
|
|
2222
2223
|
}
|
|
2223
2224
|
});
|
|
2224
2225
|
//#endregion
|
|
2226
|
+
//#region src/util/n8ao.ts
|
|
2227
|
+
let n8aoModule;
|
|
2228
|
+
const loadN8AO = () => n8aoModule ??= import("n8ao");
|
|
2229
|
+
const loadN8AOPass = async () => (await loadN8AO()).N8AOPass;
|
|
2230
|
+
const loadN8AOPostPass = async () => (await loadN8AO()).N8AOPostPass;
|
|
2231
|
+
const n8aoDefaults = {
|
|
2232
|
+
aoRadius: 5,
|
|
2233
|
+
distanceFalloff: 1,
|
|
2234
|
+
intensity: 5,
|
|
2235
|
+
color: 0,
|
|
2236
|
+
aoSamples: 16,
|
|
2237
|
+
denoiseSamples: 8,
|
|
2238
|
+
denoiseRadius: 12,
|
|
2239
|
+
denoiseIterations: 2,
|
|
2240
|
+
halfRes: false,
|
|
2241
|
+
depthAwareUpsampling: true,
|
|
2242
|
+
screenSpaceRadius: false,
|
|
2243
|
+
aoTones: 0,
|
|
2244
|
+
renderMode: 0
|
|
2245
|
+
};
|
|
2246
|
+
/**
|
|
2247
|
+
* `withDefaults` for both N8AO components. Vue casts absent boolean props to `false`, which would
|
|
2248
|
+
* override the n8ao defaults (`depthAwareUpsampling: true`, automatic gamma in the pmndrs pass).
|
|
2249
|
+
*/
|
|
2250
|
+
const n8aoPropDefaults = {
|
|
2251
|
+
halfRes: void 0,
|
|
2252
|
+
depthAwareUpsampling: void 0,
|
|
2253
|
+
screenSpaceRadius: void 0,
|
|
2254
|
+
gammaCorrection: void 0
|
|
2255
|
+
};
|
|
2256
|
+
const configurationProps = Object.keys(n8aoDefaults);
|
|
2257
|
+
const applyProp = (pass, props, key) => {
|
|
2258
|
+
const value = props[key] ?? n8aoDefaults[key];
|
|
2259
|
+
Object.assign(pass.configuration, { [key]: key === "color" ? new Color(value) : value });
|
|
2260
|
+
};
|
|
2261
|
+
const applyGammaCorrection = (pass, gammaCorrection) => {
|
|
2262
|
+
if (gammaCorrection !== void 0) pass.configuration.gammaCorrection = gammaCorrection;
|
|
2263
|
+
else if ("autosetGamma" in pass) pass.autosetGamma = true;
|
|
2264
|
+
else pass.configuration.gammaCorrection = true;
|
|
2265
|
+
};
|
|
2266
|
+
const disposePass = (pass) => {
|
|
2267
|
+
for (const [key, value] of Object.entries(pass)) {
|
|
2268
|
+
if (key === "depthTexture" || !value) continue;
|
|
2269
|
+
const isFullScreenQuad = typeof value === "object" && "_mesh" in value && typeof value.dispose === "function";
|
|
2270
|
+
if (value instanceof RenderTarget || value instanceof Material || value instanceof Texture || isFullScreenQuad) value.dispose();
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
/**
|
|
2274
|
+
* Keeps one n8ao pass in the composer for the lifetime of the calling component.
|
|
2275
|
+
*
|
|
2276
|
+
* @param composer - The composer provided by the parent composer component.
|
|
2277
|
+
* @param family - The pass class loader, placeholder and `addPass` of the composer family.
|
|
2278
|
+
* @param props - The component props.
|
|
2279
|
+
*/
|
|
2280
|
+
const useN8AO = (composer, family, props) => {
|
|
2281
|
+
const { scene, camera, sizes, invalidate } = useTres();
|
|
2282
|
+
const pass = shallowRef(null);
|
|
2283
|
+
let slot = null;
|
|
2284
|
+
let owner = null;
|
|
2285
|
+
let generation = 0;
|
|
2286
|
+
const removePass = () => {
|
|
2287
|
+
if (slot) owner?.removePass(slot);
|
|
2288
|
+
if (pass.value) disposePass(pass.value);
|
|
2289
|
+
pass.value = null;
|
|
2290
|
+
slot = null;
|
|
2291
|
+
owner = null;
|
|
2292
|
+
};
|
|
2293
|
+
watch([
|
|
2294
|
+
() => composer?.value,
|
|
2295
|
+
scene,
|
|
2296
|
+
camera,
|
|
2297
|
+
() => !!sizes.width.value && !!sizes.height.value
|
|
2298
|
+
], async ([currentComposer, currentScene, currentCamera, hasSize]) => {
|
|
2299
|
+
const build = ++generation;
|
|
2300
|
+
const index = slot && currentComposer && currentComposer === owner ? currentComposer.passes.indexOf(slot) : -1;
|
|
2301
|
+
removePass();
|
|
2302
|
+
if (!currentComposer || !currentScene || !currentCamera || !hasSize) return;
|
|
2303
|
+
const placeholder = family.createPlaceholder();
|
|
2304
|
+
family.addPass(currentComposer, placeholder, ~index ? index : void 0);
|
|
2305
|
+
slot = placeholder;
|
|
2306
|
+
owner = currentComposer;
|
|
2307
|
+
const PassClass = await family.loadPassClass();
|
|
2308
|
+
if (build !== generation) return;
|
|
2309
|
+
const newPass = new PassClass(currentScene, currentCamera, sizes.width.value, sizes.height.value);
|
|
2310
|
+
for (const key of configurationProps) applyProp(newPass, props, key);
|
|
2311
|
+
applyGammaCorrection(newPass, props.gammaCorrection);
|
|
2312
|
+
const placeholderIndex = currentComposer.passes.indexOf(placeholder);
|
|
2313
|
+
currentComposer.removePass(placeholder);
|
|
2314
|
+
family.addPass(currentComposer, newPass, ~placeholderIndex ? placeholderIndex : void 0);
|
|
2315
|
+
slot = newPass;
|
|
2316
|
+
pass.value = newPass;
|
|
2317
|
+
invalidate();
|
|
2318
|
+
}, { immediate: true });
|
|
2319
|
+
for (const key of configurationProps) watch(() => props[key], () => {
|
|
2320
|
+
if (!pass.value) return;
|
|
2321
|
+
applyProp(pass.value, props, key);
|
|
2322
|
+
invalidate();
|
|
2323
|
+
});
|
|
2324
|
+
watch(() => props.gammaCorrection, (gammaCorrection) => {
|
|
2325
|
+
if (!pass.value) return;
|
|
2326
|
+
applyGammaCorrection(pass.value, gammaCorrection);
|
|
2327
|
+
invalidate();
|
|
2328
|
+
});
|
|
2329
|
+
onUnmounted(() => {
|
|
2330
|
+
generation++;
|
|
2331
|
+
removePass();
|
|
2332
|
+
});
|
|
2333
|
+
return { pass };
|
|
2334
|
+
};
|
|
2335
|
+
//#endregion
|
|
2336
|
+
//#region src/core/pmndrs/N8AOPmndrs.vue
|
|
2337
|
+
var N8AOPmndrs_default = /* @__PURE__ */ defineComponent({
|
|
2338
|
+
__name: "N8AOPmndrs",
|
|
2339
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
2340
|
+
aoRadius: {
|
|
2341
|
+
type: Number,
|
|
2342
|
+
required: false
|
|
2343
|
+
},
|
|
2344
|
+
distanceFalloff: {
|
|
2345
|
+
type: Number,
|
|
2346
|
+
required: false
|
|
2347
|
+
},
|
|
2348
|
+
intensity: {
|
|
2349
|
+
type: Number,
|
|
2350
|
+
required: false
|
|
2351
|
+
},
|
|
2352
|
+
color: {
|
|
2353
|
+
type: [
|
|
2354
|
+
Object,
|
|
2355
|
+
String,
|
|
2356
|
+
Number
|
|
2357
|
+
],
|
|
2358
|
+
required: false
|
|
2359
|
+
},
|
|
2360
|
+
aoSamples: {
|
|
2361
|
+
type: Number,
|
|
2362
|
+
required: false
|
|
2363
|
+
},
|
|
2364
|
+
denoiseSamples: {
|
|
2365
|
+
type: Number,
|
|
2366
|
+
required: false
|
|
2367
|
+
},
|
|
2368
|
+
denoiseRadius: {
|
|
2369
|
+
type: Number,
|
|
2370
|
+
required: false
|
|
2371
|
+
},
|
|
2372
|
+
denoiseIterations: {
|
|
2373
|
+
type: Number,
|
|
2374
|
+
required: false
|
|
2375
|
+
},
|
|
2376
|
+
halfRes: {
|
|
2377
|
+
type: Boolean,
|
|
2378
|
+
required: false
|
|
2379
|
+
},
|
|
2380
|
+
depthAwareUpsampling: {
|
|
2381
|
+
type: Boolean,
|
|
2382
|
+
required: false
|
|
2383
|
+
},
|
|
2384
|
+
screenSpaceRadius: {
|
|
2385
|
+
type: Boolean,
|
|
2386
|
+
required: false
|
|
2387
|
+
},
|
|
2388
|
+
aoTones: {
|
|
2389
|
+
type: Number,
|
|
2390
|
+
required: false
|
|
2391
|
+
},
|
|
2392
|
+
renderMode: {
|
|
2393
|
+
type: Number,
|
|
2394
|
+
required: false
|
|
2395
|
+
},
|
|
2396
|
+
gammaCorrection: {
|
|
2397
|
+
type: Boolean,
|
|
2398
|
+
required: false
|
|
2399
|
+
}
|
|
2400
|
+
}, n8aoPropDefaults),
|
|
2401
|
+
setup(__props, { expose: __expose }) {
|
|
2402
|
+
const props = __props;
|
|
2403
|
+
const { pass } = useN8AO(inject(effectComposerInjectionKey$1), {
|
|
2404
|
+
loadPassClass: loadN8AOPostPass,
|
|
2405
|
+
createPlaceholder: () => {
|
|
2406
|
+
const placeholder = new Pass("N8AOPlaceholder");
|
|
2407
|
+
placeholder.enabled = false;
|
|
2408
|
+
return placeholder;
|
|
2409
|
+
},
|
|
2410
|
+
addPass: (composer, pass, index) => composer.addPass(pass, index)
|
|
2411
|
+
}, props);
|
|
2412
|
+
__expose({ pass });
|
|
2413
|
+
return () => {};
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
//#endregion
|
|
2225
2417
|
//#region src/core/three/EffectComposer.vue?vue&type=script&setup=true&lang.ts
|
|
2226
2418
|
const effectComposerInjectionKey = Symbol("effectComposerThree");
|
|
2227
2419
|
//#endregion
|
|
@@ -2399,6 +2591,95 @@ var Halftone_default = /* @__PURE__ */ defineComponent({
|
|
|
2399
2591
|
}
|
|
2400
2592
|
});
|
|
2401
2593
|
//#endregion
|
|
2594
|
+
//#region src/core/three/N8AO.vue
|
|
2595
|
+
var N8AO_default = /* @__PURE__ */ defineComponent({
|
|
2596
|
+
__name: "N8AO",
|
|
2597
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
2598
|
+
aoRadius: {
|
|
2599
|
+
type: Number,
|
|
2600
|
+
required: false
|
|
2601
|
+
},
|
|
2602
|
+
distanceFalloff: {
|
|
2603
|
+
type: Number,
|
|
2604
|
+
required: false
|
|
2605
|
+
},
|
|
2606
|
+
intensity: {
|
|
2607
|
+
type: Number,
|
|
2608
|
+
required: false
|
|
2609
|
+
},
|
|
2610
|
+
color: {
|
|
2611
|
+
type: [
|
|
2612
|
+
Object,
|
|
2613
|
+
String,
|
|
2614
|
+
Number
|
|
2615
|
+
],
|
|
2616
|
+
required: false
|
|
2617
|
+
},
|
|
2618
|
+
aoSamples: {
|
|
2619
|
+
type: Number,
|
|
2620
|
+
required: false
|
|
2621
|
+
},
|
|
2622
|
+
denoiseSamples: {
|
|
2623
|
+
type: Number,
|
|
2624
|
+
required: false
|
|
2625
|
+
},
|
|
2626
|
+
denoiseRadius: {
|
|
2627
|
+
type: Number,
|
|
2628
|
+
required: false
|
|
2629
|
+
},
|
|
2630
|
+
denoiseIterations: {
|
|
2631
|
+
type: Number,
|
|
2632
|
+
required: false
|
|
2633
|
+
},
|
|
2634
|
+
halfRes: {
|
|
2635
|
+
type: Boolean,
|
|
2636
|
+
required: false
|
|
2637
|
+
},
|
|
2638
|
+
depthAwareUpsampling: {
|
|
2639
|
+
type: Boolean,
|
|
2640
|
+
required: false
|
|
2641
|
+
},
|
|
2642
|
+
screenSpaceRadius: {
|
|
2643
|
+
type: Boolean,
|
|
2644
|
+
required: false
|
|
2645
|
+
},
|
|
2646
|
+
aoTones: {
|
|
2647
|
+
type: Number,
|
|
2648
|
+
required: false
|
|
2649
|
+
},
|
|
2650
|
+
renderMode: {
|
|
2651
|
+
type: Number,
|
|
2652
|
+
required: false
|
|
2653
|
+
},
|
|
2654
|
+
gammaCorrection: {
|
|
2655
|
+
type: Boolean,
|
|
2656
|
+
required: false
|
|
2657
|
+
}
|
|
2658
|
+
}, n8aoPropDefaults),
|
|
2659
|
+
setup(__props, { expose: __expose }) {
|
|
2660
|
+
const props = __props;
|
|
2661
|
+
let warned = false;
|
|
2662
|
+
const { pass } = useN8AO(inject(effectComposerInjectionKey), {
|
|
2663
|
+
loadPassClass: loadN8AOPass,
|
|
2664
|
+
createPlaceholder: () => {
|
|
2665
|
+
const placeholder = new Pass$1();
|
|
2666
|
+
placeholder.enabled = false;
|
|
2667
|
+
return placeholder;
|
|
2668
|
+
},
|
|
2669
|
+
addPass: (composer, pass, index) => {
|
|
2670
|
+
const passesBefore = index === void 0 ? composer.passes : composer.passes.slice(0, index);
|
|
2671
|
+
if (!isProd && !warned && passesBefore.some((p) => p.isRenderPass)) {
|
|
2672
|
+
warned = true;
|
|
2673
|
+
logWarning("<N8AO> renders the scene itself, so the RenderPass before it renders the scene a second time each frame. Set `without-render-pass` on <EffectComposer>.");
|
|
2674
|
+
}
|
|
2675
|
+
index === void 0 ? composer.addPass(pass) : composer.insertPass(pass, index);
|
|
2676
|
+
}
|
|
2677
|
+
}, props);
|
|
2678
|
+
__expose({ pass });
|
|
2679
|
+
return () => {};
|
|
2680
|
+
}
|
|
2681
|
+
});
|
|
2682
|
+
//#endregion
|
|
2402
2683
|
//#region src/core/three/Pixelation.vue
|
|
2403
2684
|
var Pixelation_default = /* @__PURE__ */ defineComponent({
|
|
2404
2685
|
__name: "Pixelation",
|
|
@@ -2505,4 +2786,4 @@ var UnrealBloom_default = /* @__PURE__ */ defineComponent({
|
|
|
2505
2786
|
}
|
|
2506
2787
|
});
|
|
2507
2788
|
//#endregion
|
|
2508
|
-
export { ASCIIPmndrs_default as ASCIIPmndrs, BarrelBlurPmndrs_default as BarrelBlurPmndrs, BloomPmndrs_default as BloomPmndrs, BrightnessContrastPmndrs_default as BrightnessContrastPmndrs, ChromaticAberrationPmndrs_default as ChromaticAberrationPmndrs, ColorAveragePmndrs_default as ColorAveragePmndrs, ColorDepthPmndrs_default as ColorDepthPmndrs, DepthOfFieldPmndrs_default as DepthOfFieldPmndrs, DepthPickingPassPmndrs_default as DepthPickingPassPmndrs, DotScreenPmndrs_default as DotScreenPmndrs, EffectComposer_default as EffectComposer, EffectComposerPmndrs_default as EffectComposerPmndrs, FXAAPmndrs_default as FXAAPmndrs, FishEyePmndrs_default as FishEyePmndrs, Glitch_default as Glitch, GlitchPmndrs_default as GlitchPmndrs, GodRaysPmndrs_default as GodRaysPmndrs, GridPmndrs_default as GridPmndrs, Halftone_default as Halftone, HueSaturationPmndrs_default as HueSaturationPmndrs, KuwaharaPmndrs_default as KuwaharaPmndrs, LensDistortionPmndrs_default as LensDistortionPmndrs, LinocutPmndrs_default as LinocutPmndrs, NoisePmndrs_default as NoisePmndrs, OutlinePmndrs_default as OutlinePmndrs, Output_default as Output, Pixelation_default as Pixelation, PixelationPmndrs_default as PixelationPmndrs, SMAA_default as SMAA, SMAAPmndrs_default as SMAAPmndrs, ScanlinePmndrs_default as ScanlinePmndrs, SepiaPmndrs_default as SepiaPmndrs, ShockWavePmndrs_default as ShockWavePmndrs, TexturePmndrs_default as TexturePmndrs, TiltShiftPmndrs_default as TiltShiftPmndrs, ToneMappingPmndrs_default as ToneMappingPmndrs, UnrealBloom_default as UnrealBloom, VignettePmndrs_default as VignettePmndrs, useEffect, useEffectPmndrs };
|
|
2789
|
+
export { ASCIIPmndrs_default as ASCIIPmndrs, BarrelBlurPmndrs_default as BarrelBlurPmndrs, BloomPmndrs_default as BloomPmndrs, BrightnessContrastPmndrs_default as BrightnessContrastPmndrs, ChromaticAberrationPmndrs_default as ChromaticAberrationPmndrs, ColorAveragePmndrs_default as ColorAveragePmndrs, ColorDepthPmndrs_default as ColorDepthPmndrs, DepthOfFieldPmndrs_default as DepthOfFieldPmndrs, DepthPickingPassPmndrs_default as DepthPickingPassPmndrs, DotScreenPmndrs_default as DotScreenPmndrs, EffectComposer_default as EffectComposer, EffectComposerPmndrs_default as EffectComposerPmndrs, FXAAPmndrs_default as FXAAPmndrs, FishEyePmndrs_default as FishEyePmndrs, Glitch_default as Glitch, GlitchPmndrs_default as GlitchPmndrs, GodRaysPmndrs_default as GodRaysPmndrs, GridPmndrs_default as GridPmndrs, Halftone_default as Halftone, HueSaturationPmndrs_default as HueSaturationPmndrs, KuwaharaPmndrs_default as KuwaharaPmndrs, LensDistortionPmndrs_default as LensDistortionPmndrs, LinocutPmndrs_default as LinocutPmndrs, N8AO_default as N8AO, N8AOPmndrs_default as N8AOPmndrs, NoisePmndrs_default as NoisePmndrs, OutlinePmndrs_default as OutlinePmndrs, Output_default as Output, Pixelation_default as Pixelation, PixelationPmndrs_default as PixelationPmndrs, SMAA_default as SMAA, SMAAPmndrs_default as SMAAPmndrs, ScanlinePmndrs_default as ScanlinePmndrs, SepiaPmndrs_default as SepiaPmndrs, ShockWavePmndrs_default as ShockWavePmndrs, TexturePmndrs_default as TexturePmndrs, TiltShiftPmndrs_default as TiltShiftPmndrs, ToneMappingPmndrs_default as ToneMappingPmndrs, UnrealBloom_default as UnrealBloom, VignettePmndrs_default as VignettePmndrs, useEffect, useEffectPmndrs };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/post-processing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.11.0",
|
|
5
5
|
"description": "Post-processing library for TresJS",
|
|
6
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,12 +45,15 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@vueuse/core": "^15.0.0",
|
|
48
|
+
"n8ao": "^2.0.1",
|
|
48
49
|
"postprocessing": "^6.39.5"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/three": "^0.186.0",
|
|
52
53
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
54
|
+
"@vue/test-utils": "^2.5.0",
|
|
53
55
|
"eslint": "^10.9.1",
|
|
56
|
+
"jsdom": "^30.1.1",
|
|
54
57
|
"kolorist": "^1.8.0",
|
|
55
58
|
"pathe": "^2.0.3",
|
|
56
59
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
@@ -61,9 +64,10 @@
|
|
|
61
64
|
"vite": "^8.2.2",
|
|
62
65
|
"vite-plugin-banner": "^0.8.1",
|
|
63
66
|
"vite-plugin-dts": "^5.1.1",
|
|
67
|
+
"vitest": "5.0.1",
|
|
64
68
|
"vue": "^3.5.42",
|
|
65
69
|
"vue-tsc": "^3.3.11",
|
|
66
|
-
"@tresjs/core": "5.
|
|
70
|
+
"@tresjs/core": "5.10.0",
|
|
67
71
|
"@tresjs/eslint-config": "1.7.0"
|
|
68
72
|
},
|
|
69
73
|
"nx": {
|
|
@@ -77,6 +81,8 @@
|
|
|
77
81
|
"preview": "vite preview",
|
|
78
82
|
"lint": "eslint .",
|
|
79
83
|
"typecheck": "vue-tsc --noEmit",
|
|
84
|
+
"test": "vitest",
|
|
85
|
+
"test:ci": "vitest run",
|
|
80
86
|
"lint:fix": "eslint . --fix"
|
|
81
87
|
}
|
|
82
88
|
}
|