@viji-dev/core 0.2.13 → 0.2.14

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.
@@ -0,0 +1,4 @@
1
+ export declare const shaderUniforms: Record<string, {
2
+ type: string;
3
+ category: string;
4
+ }>;
@@ -0,0 +1,278 @@
1
+ export const shaderUniforms = {
2
+ "u_resolution": {
3
+ "type": "vec2",
4
+ "category": "Core"
5
+ },
6
+ "u_time": {
7
+ "type": "float",
8
+ "category": "Core"
9
+ },
10
+ "u_deltaTime": {
11
+ "type": "float",
12
+ "category": "Core"
13
+ },
14
+ "u_frame": {
15
+ "type": "int",
16
+ "category": "Core"
17
+ },
18
+ "u_pixelRatio": {
19
+ "type": "float",
20
+ "category": "Core"
21
+ },
22
+ "u_fps": {
23
+ "type": "float",
24
+ "category": "Core"
25
+ },
26
+ "u_mouse": {
27
+ "type": "vec2",
28
+ "category": "Mouse API"
29
+ },
30
+ "u_mouseInCanvas": {
31
+ "type": "bool",
32
+ "category": "Mouse API"
33
+ },
34
+ "u_mousePressed": {
35
+ "type": "bool",
36
+ "category": "Mouse API"
37
+ },
38
+ "u_mouseLeft": {
39
+ "type": "bool",
40
+ "category": "Mouse API"
41
+ },
42
+ "u_mouseRight": {
43
+ "type": "bool",
44
+ "category": "Mouse API"
45
+ },
46
+ "u_mouseMiddle": {
47
+ "type": "bool",
48
+ "category": "Mouse API"
49
+ },
50
+ "u_mouseVelocity": {
51
+ "type": "vec2",
52
+ "category": "Mouse API"
53
+ },
54
+ "u_keySpace": {
55
+ "type": "bool",
56
+ "category": "Keyboard API"
57
+ },
58
+ "u_keyShift": {
59
+ "type": "bool",
60
+ "category": "Keyboard API"
61
+ },
62
+ "u_keyCtrl": {
63
+ "type": "bool",
64
+ "category": "Keyboard API"
65
+ },
66
+ "u_keyAlt": {
67
+ "type": "bool",
68
+ "category": "Keyboard API"
69
+ },
70
+ "u_keyW": {
71
+ "type": "bool",
72
+ "category": "Keyboard API"
73
+ },
74
+ "u_keyA": {
75
+ "type": "bool",
76
+ "category": "Keyboard API"
77
+ },
78
+ "u_keyS": {
79
+ "type": "bool",
80
+ "category": "Keyboard API"
81
+ },
82
+ "u_keyD": {
83
+ "type": "bool",
84
+ "category": "Keyboard API"
85
+ },
86
+ "u_keyUp": {
87
+ "type": "bool",
88
+ "category": "Keyboard API"
89
+ },
90
+ "u_keyDown": {
91
+ "type": "bool",
92
+ "category": "Keyboard API"
93
+ },
94
+ "u_keyLeft": {
95
+ "type": "bool",
96
+ "category": "Keyboard API"
97
+ },
98
+ "u_keyRight": {
99
+ "type": "bool",
100
+ "category": "Keyboard API"
101
+ },
102
+ "u_touchCount": {
103
+ "type": "int",
104
+ "category": "Touch API"
105
+ },
106
+ "u_touch0": {
107
+ "type": "vec2",
108
+ "category": "Touch API"
109
+ },
110
+ "u_touch1": {
111
+ "type": "vec2",
112
+ "category": "Touch API"
113
+ },
114
+ "u_touch2": {
115
+ "type": "vec2",
116
+ "category": "Touch API"
117
+ },
118
+ "u_touch3": {
119
+ "type": "vec2",
120
+ "category": "Touch API"
121
+ },
122
+ "u_touch4": {
123
+ "type": "vec2",
124
+ "category": "Touch API"
125
+ },
126
+ "u_audioVolume": {
127
+ "type": "float",
128
+ "category": "Audio"
129
+ },
130
+ "u_audioPeak": {
131
+ "type": "float",
132
+ "category": "Audio"
133
+ },
134
+ "u_audioBass": {
135
+ "type": "float",
136
+ "category": "Audio"
137
+ },
138
+ "u_audioMid": {
139
+ "type": "float",
140
+ "category": "Audio"
141
+ },
142
+ "u_audioTreble": {
143
+ "type": "float",
144
+ "category": "Audio"
145
+ },
146
+ "u_audioSubBass": {
147
+ "type": "float",
148
+ "category": "Audio"
149
+ },
150
+ "u_audioLowMid": {
151
+ "type": "float",
152
+ "category": "Audio"
153
+ },
154
+ "u_audioHighMid": {
155
+ "type": "float",
156
+ "category": "Audio"
157
+ },
158
+ "u_audioPresence": {
159
+ "type": "float",
160
+ "category": "Audio"
161
+ },
162
+ "u_audioBrilliance": {
163
+ "type": "float",
164
+ "category": "Audio"
165
+ },
166
+ "u_audioFFT": {
167
+ "type": "sampler2D",
168
+ "category": "Audio"
169
+ },
170
+ "u_video": {
171
+ "type": "sampler2D",
172
+ "category": "Video"
173
+ },
174
+ "u_videoResolution": {
175
+ "type": "vec2",
176
+ "category": "Video"
177
+ },
178
+ "u_videoFrameRate": {
179
+ "type": "float",
180
+ "category": "Video"
181
+ },
182
+ "u_faceCount": {
183
+ "type": "int",
184
+ "category": "CV"
185
+ },
186
+ "u_face0Bounds": {
187
+ "type": "vec4",
188
+ "category": "CV"
189
+ },
190
+ "u_face0HeadPose": {
191
+ "type": "vec3",
192
+ "category": "CV"
193
+ },
194
+ "u_face0Confidence": {
195
+ "type": "float",
196
+ "category": "CV"
197
+ },
198
+ "u_face0Happy": {
199
+ "type": "float",
200
+ "category": "CV"
201
+ },
202
+ "u_face0Sad": {
203
+ "type": "float",
204
+ "category": "CV"
205
+ },
206
+ "u_face0Angry": {
207
+ "type": "float",
208
+ "category": "CV"
209
+ },
210
+ "u_face0Surprised": {
211
+ "type": "float",
212
+ "category": "CV"
213
+ },
214
+ "u_handCount": {
215
+ "type": "int",
216
+ "category": "CV"
217
+ },
218
+ "u_leftHandPalm": {
219
+ "type": "vec3",
220
+ "category": "CV"
221
+ },
222
+ "u_rightHandPalm": {
223
+ "type": "vec3",
224
+ "category": "CV"
225
+ },
226
+ "u_leftHandFist": {
227
+ "type": "float",
228
+ "category": "CV"
229
+ },
230
+ "u_leftHandOpen": {
231
+ "type": "float",
232
+ "category": "CV"
233
+ },
234
+ "u_rightHandFist": {
235
+ "type": "float",
236
+ "category": "CV"
237
+ },
238
+ "u_rightHandOpen": {
239
+ "type": "float",
240
+ "category": "CV"
241
+ },
242
+ "u_poseDetected": {
243
+ "type": "bool",
244
+ "category": "CV"
245
+ },
246
+ "u_nosePosition": {
247
+ "type": "vec2",
248
+ "category": "CV"
249
+ },
250
+ "u_leftWristPosition": {
251
+ "type": "vec2",
252
+ "category": "CV"
253
+ },
254
+ "u_rightWristPosition": {
255
+ "type": "vec2",
256
+ "category": "CV"
257
+ },
258
+ "u_leftAnklePosition": {
259
+ "type": "vec2",
260
+ "category": "CV"
261
+ },
262
+ "u_rightAnklePosition": {
263
+ "type": "vec2",
264
+ "category": "CV"
265
+ },
266
+ "u_segmentationMask": {
267
+ "type": "sampler2D",
268
+ "category": "CV"
269
+ },
270
+ "u_segmentationRes": {
271
+ "type": "vec2",
272
+ "category": "CV"
273
+ },
274
+ "backbuffer": {
275
+ "type": "sampler2D",
276
+ "category": "Backbuffer"
277
+ }
278
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viji-dev/core",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,6 +23,14 @@
23
23
  },
24
24
  "./artist-js-ambient": {
25
25
  "types": "./dist/artist-js-ambient.d.ts"
26
+ },
27
+ "./artist-dts-p5": {
28
+ "import": "./dist/artist-dts-p5.js",
29
+ "types": "./dist/artist-dts-p5.d.ts"
30
+ },
31
+ "./shader-uniforms": {
32
+ "import": "./dist/shader-uniforms.js",
33
+ "types": "./dist/shader-uniforms.d.ts"
26
34
  }
27
35
  },
28
36
  "files": [