@tresjs/post-processing 2.3.1 → 3.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/pmndrs/ASCIIPmndrs.vue.d.ts +40 -0
- package/dist/core/pmndrs/FXAAPmndrs.vue.d.ts +32 -0
- package/dist/core/pmndrs/SMAAPmndrs.vue.d.ts +42 -0
- package/dist/core/pmndrs/TexturePmndrs.vue.d.ts +21 -0
- package/dist/core/pmndrs/index.d.ts +5 -1
- package/dist/tres-post-processing.js +1038 -850
- package/dist/tres-post-processing.umd.cjs +17 -17
- package/package.json +4 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BlendFunction, ASCIIEffect, ASCIITexture } from 'postprocessing';
|
|
2
|
+
import { Color } from 'three';
|
|
3
|
+
type ASCIITextureOptions = ConstructorParameters<typeof ASCIITexture>[0];
|
|
4
|
+
export interface ASCIIPmndrsProps {
|
|
5
|
+
/**
|
|
6
|
+
* The blend function.
|
|
7
|
+
*/
|
|
8
|
+
blendFunction?: BlendFunction;
|
|
9
|
+
/**
|
|
10
|
+
* The opacity of the effect.
|
|
11
|
+
*/
|
|
12
|
+
opacity?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The cell size.
|
|
15
|
+
*/
|
|
16
|
+
cellSize?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Controls whether the effect should be inverted.
|
|
19
|
+
*/
|
|
20
|
+
inverted?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The color of the effect.
|
|
23
|
+
*/
|
|
24
|
+
color?: Color | string | number | null;
|
|
25
|
+
/**
|
|
26
|
+
* Controls whether the effect should use the scene color.
|
|
27
|
+
* If `true`, it overrides the `color` props.
|
|
28
|
+
*/
|
|
29
|
+
useSceneColor?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The ASCII texture options to use for creating an ASCIITexture instance.
|
|
32
|
+
* https://pmndrs.github.io/postprocessing/public/docs/class/src/textures/ASCIITexture.js~ASCIITexture.html
|
|
33
|
+
*/
|
|
34
|
+
asciiTexture?: ASCIITextureOptions;
|
|
35
|
+
}
|
|
36
|
+
declare const _default: import('vue').DefineComponent<ASCIIPmndrsProps, {
|
|
37
|
+
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
38
|
+
effect: import('vue').ShallowRef<ASCIIEffect | null>;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ASCIIPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BlendFunction, FXAAEffect } from 'postprocessing';
|
|
2
|
+
export interface FXAAPmndrsProps {
|
|
3
|
+
/**
|
|
4
|
+
* The blend function.
|
|
5
|
+
*/
|
|
6
|
+
blendFunction?: BlendFunction;
|
|
7
|
+
/**
|
|
8
|
+
* The opacity of the effect.
|
|
9
|
+
*/
|
|
10
|
+
opacity?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum amount of edge detection samples.
|
|
13
|
+
*/
|
|
14
|
+
samples?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The minimum edge detection threshold. Range is [0.0, 1.0].
|
|
17
|
+
*/
|
|
18
|
+
minEdgeThreshold?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The maximum edge detection threshold. Range is [0.0, 1.0].
|
|
21
|
+
*/
|
|
22
|
+
maxEdgeThreshold?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The subpixel blend quality. Range is [0.0, 1.0].
|
|
25
|
+
*/
|
|
26
|
+
subpixelQuality?: number;
|
|
27
|
+
}
|
|
28
|
+
declare const _default: import('vue').DefineComponent<FXAAPmndrsProps, {
|
|
29
|
+
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
30
|
+
effect: import('vue').ShallowRef<FXAAEffect | null>;
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FXAAPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BlendFunction, EdgeDetectionMode, PredicationMode, SMAAPreset, EffectPass, SMAAEffect } from 'postprocessing';
|
|
2
|
+
export declare const DEBUG_MODE: {
|
|
3
|
+
readonly OFF: 0;
|
|
4
|
+
readonly EDGES: 1;
|
|
5
|
+
readonly WEIGHTS: 2;
|
|
6
|
+
};
|
|
7
|
+
export interface SMAAPmndrsProps {
|
|
8
|
+
/**
|
|
9
|
+
* The blend function.
|
|
10
|
+
*/
|
|
11
|
+
blendFunction?: BlendFunction;
|
|
12
|
+
/**
|
|
13
|
+
* The opacity of the effect.
|
|
14
|
+
*/
|
|
15
|
+
opacity?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The preset configuration for SMAA (Subpixel Morphological Antialiasing).
|
|
18
|
+
*/
|
|
19
|
+
preset?: SMAAPreset;
|
|
20
|
+
/**
|
|
21
|
+
* The mode used for edge detection.
|
|
22
|
+
*/
|
|
23
|
+
edgeDetectionMode?: EdgeDetectionMode;
|
|
24
|
+
/**
|
|
25
|
+
* The mode used for predication to improve edge detection.
|
|
26
|
+
*/
|
|
27
|
+
predicationMode?: PredicationMode;
|
|
28
|
+
/**
|
|
29
|
+
* The debug mode for visualizing the effect.
|
|
30
|
+
*
|
|
31
|
+
* OPTIONS:
|
|
32
|
+
* - 0: OFF
|
|
33
|
+
* - 1: EDGES
|
|
34
|
+
* - 2: WEIGHTS
|
|
35
|
+
*/
|
|
36
|
+
debug?: typeof DEBUG_MODE[keyof typeof DEBUG_MODE];
|
|
37
|
+
}
|
|
38
|
+
declare const _default: import('vue').DefineComponent<SMAAPmndrsProps, {
|
|
39
|
+
pass: import('vue').ShallowRef<EffectPass | null>;
|
|
40
|
+
effect: import('vue').ShallowRef<SMAAEffect | null>;
|
|
41
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SMAAPmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BlendFunction, TextureEffect } from 'postprocessing';
|
|
2
|
+
import { Texture } from 'three';
|
|
3
|
+
export interface TexturePmndrsProps {
|
|
4
|
+
/**
|
|
5
|
+
* The blend function.
|
|
6
|
+
*/
|
|
7
|
+
blendFunction?: BlendFunction;
|
|
8
|
+
/**
|
|
9
|
+
* The texture.
|
|
10
|
+
*/
|
|
11
|
+
texture?: Texture;
|
|
12
|
+
/**
|
|
13
|
+
* The opacity of the effect.
|
|
14
|
+
*/
|
|
15
|
+
opacity?: number;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import('vue').DefineComponent<TexturePmndrsProps, {
|
|
18
|
+
pass: import('vue').ShallowRef<import('postprocessing').EffectPass | null>;
|
|
19
|
+
effect: import('vue').ShallowRef<TextureEffect | null>;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TexturePmndrsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -26,4 +26,8 @@ import { default as ColorDepthPmndrs, ColorDepthPmndrsProps } from './ColorDepth
|
|
|
26
26
|
import { default as GridPmndrs, GridPmndrsProps } from './GridPmndrs.vue';
|
|
27
27
|
import { default as FishEyePmndrs, FishEyePmndrsProps } from './FishEyePmndrs.vue';
|
|
28
28
|
import { default as BrightnessContrastPmndrs, BrightnessContrastPmndrsProps } from './BrightnessContrastPmndrs.vue';
|
|
29
|
-
|
|
29
|
+
import { default as SMAAPmndrs, SMAAPmndrsProps } from './SMAAPmndrs.vue';
|
|
30
|
+
import { default as FXAAPmndrs, FXAAPmndrsProps } from './FXAAPmndrs.vue';
|
|
31
|
+
import { default as TexturePmndrs, TexturePmndrsProps } from './TexturePmndrs.vue';
|
|
32
|
+
import { default as ASCIIPmndrs, ASCIIPmndrsProps } from './ASCIIPmndrs.vue';
|
|
33
|
+
export { BloomPmndrs, DepthOfFieldPmndrs, EffectComposerPmndrs, GlitchPmndrs, NoisePmndrs, OutlinePmndrs, PixelationPmndrs, useEffectPmndrs, VignettePmndrs, BarrelBlurPmndrs, HueSaturationPmndrs, ToneMappingPmndrs, ChromaticAberrationPmndrs, ScanlinePmndrs, KuwaharaPmndrs, ColorAveragePmndrs, LensDistortionPmndrs, ShockWavePmndrs, TiltShiftPmndrs, DotScreenPmndrs, SepiaPmndrs, LinocutPmndrs, DepthPickingPassPmndrs, GodRaysPmndrs, ColorDepthPmndrs, GridPmndrs, FishEyePmndrs, BrightnessContrastPmndrs, SMAAPmndrs, FXAAPmndrs, TexturePmndrs, ASCIIPmndrs, BloomPmndrsProps, DepthOfFieldPmndrsProps, EffectComposerPmndrsProps, GlitchPmndrsProps, NoisePmndrsProps, OutlinePmndrsProps, PixelationPmndrsProps, VignettePmndrsProps, BarrelBlurPmndrsProps, ToneMappingPmndrsProps, ChromaticAberrationPmndrsProps, HueSaturationPmndrsProps, ScanlinePmndrsProps, KuwaharaPmndrsProps, ColorAveragePmndrsProps, LensDistortionPmndrsProps, ShockWavePmndrsProps, TiltShiftPmndrsProps, DotScreenPmndrsProps, SepiaPmndrsProps, LinocutPmndrsProps, DepthPickingPassPmndrsProps, GodRaysPmndrsProps, ColorDepthPmndrsProps, GridPmndrsProps, FishEyePmndrsProps, BrightnessContrastPmndrsProps, SMAAPmndrsProps, FXAAPmndrsProps, TexturePmndrsProps, ASCIIPmndrsProps, };
|