-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathstatic-mesh-gradient-def.ts
More file actions
84 lines (82 loc) · 2.24 KB
/
Copy pathstatic-mesh-gradient-def.ts
File metadata and controls
84 lines (82 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { staticMeshGradientPresets } from '@paper-design/shaders-react';
import { staticCommonParams, type ShaderDef } from '@paper-design/shaders';
const defaultParams = staticMeshGradientPresets[0].params;
export const staticMeshGradientDef: ShaderDef = {
name: 'Static Mesh Gradient',
description:
'Multi-point mesh gradients with up to 10 color spots, enhanced by two-direction warping, adjustable blend sharpness, and grain controls. Perfect for elegant wallpapers and atmospheric backdrops.',
params: [
{
name: 'colors',
type: 'string[]',
defaultValue: [],
isColor: true,
description: 'Up to 10 colors used in the gradient',
},
{
name: 'positions',
type: 'number',
min: 0,
max: 100,
defaultValue: defaultParams.positions,
description: 'Color spots placement',
},
{
name: 'waveX',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.waveX,
description: 'Strength of sine wave distortion along X axis',
},
{
name: 'waveXShift',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.waveXShift,
description: 'Phase offset applied to the X-axis wave',
},
{
name: 'waveY',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.waveY,
description: 'Strength of sine wave distortion along Y axis',
},
{
name: 'waveYShift',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.waveYShift,
description: 'Phase offset applied to the Y-axis wave',
},
{
name: 'mixing',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.mixing,
description: 'Blending behavior (sharper vs. smoother color transitions)',
},
{
name: 'grainMixer',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.grainMixer,
description: 'Strength of grain distortion applied to color edges',
},
{
name: 'grainOverlay',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.grainOverlay,
description: 'Post-processing RGB grain overlay',
},
...staticCommonParams,
],
};