Skip to content

Commit 63dc8e6

Browse files
dix: add commentary for props
1 parent 549e703 commit 63dc8e6

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/core/pmndrs/SMAAPmndrs.vue

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,35 @@ import { useTresContext } from '@tresjs/core'
88
import { effectComposerInjectionKey } from './EffectComposerPmndrs.vue'
99
1010
export interface SMAAPmndrsProps {
11+
/**
12+
* The blend function.
13+
*/
1114
blendFunction?: BlendFunction
15+
/**
16+
* The opacity of the effect.
17+
*/
1218
opacity?: number
19+
/**
20+
* The preset configuration for SMAA (Subpixel Morphological Antialiasing).
21+
*/
1322
preset?: SMAAPreset
23+
/**
24+
* The mode used for edge detection.
25+
*/
1426
edgeDetectionMode?: EdgeDetectionMode
27+
/**
28+
* The mode used for predication to improve edge detection.
29+
*/
1530
predicationMode?: PredicationMode
16-
debug?: number // 0: OFF, 1: EDGES, 2: WEIGHTS
31+
/**
32+
* The debug mode for visualizing the effect.
33+
*
34+
* OPTIONS:
35+
* - 0: OFF
36+
* - 1: EDGES
37+
* - 2: WEIGHTS
38+
*/
39+
debug?: number
1740
}
1841
1942
const props = defineProps<SMAAPmndrsProps>()

0 commit comments

Comments
 (0)