@viji-dev/core 0.2.14 → 0.2.16
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/artist-dts-p5.js +1 -1
- package/dist/artist-dts.js +1 -1
- package/dist/artist-global.d.ts +1 -1
- package/dist/assets/{viji.worker-DHpeQQ14.js → viji.worker-CEptQVjd.js} +70 -70
- package/dist/assets/viji.worker-CEptQVjd.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/shader-uniforms.d.ts +1 -0
- package/dist/shader-uniforms.js +138 -69
- package/package.json +1 -1
- package/dist/assets/viji.worker-DHpeQQ14.js.map +0 -1
package/dist/shader-uniforms.js
CHANGED
|
@@ -1,278 +1,347 @@
|
|
|
1
1
|
export const shaderUniforms = {
|
|
2
2
|
"u_resolution": {
|
|
3
3
|
"type": "vec2",
|
|
4
|
-
"category": "Core"
|
|
4
|
+
"category": "Core",
|
|
5
|
+
"description": "Canvas width and height in pixels"
|
|
5
6
|
},
|
|
6
7
|
"u_time": {
|
|
7
8
|
"type": "float",
|
|
8
|
-
"category": "Core"
|
|
9
|
+
"category": "Core",
|
|
10
|
+
"description": "Elapsed time in seconds since scene start"
|
|
9
11
|
},
|
|
10
12
|
"u_deltaTime": {
|
|
11
13
|
"type": "float",
|
|
12
|
-
"category": "Core"
|
|
14
|
+
"category": "Core",
|
|
15
|
+
"description": "Time elapsed since last frame in seconds"
|
|
13
16
|
},
|
|
14
17
|
"u_frame": {
|
|
15
18
|
"type": "int",
|
|
16
|
-
"category": "Core"
|
|
19
|
+
"category": "Core",
|
|
20
|
+
"description": "Current frame number"
|
|
17
21
|
},
|
|
18
22
|
"u_pixelRatio": {
|
|
19
23
|
"type": "float",
|
|
20
|
-
"category": "Core"
|
|
24
|
+
"category": "Core",
|
|
25
|
+
"description": "Device pixel ratio for high-DPI displays"
|
|
21
26
|
},
|
|
22
27
|
"u_fps": {
|
|
23
28
|
"type": "float",
|
|
24
|
-
"category": "Core"
|
|
29
|
+
"category": "Core",
|
|
30
|
+
"description": "Current frames per second"
|
|
25
31
|
},
|
|
26
32
|
"u_mouse": {
|
|
27
33
|
"type": "vec2",
|
|
28
|
-
"category": "Mouse API"
|
|
34
|
+
"category": "Mouse API",
|
|
35
|
+
"description": "Mouse position in pixels (WebGL coords: bottom-left origin)"
|
|
29
36
|
},
|
|
30
37
|
"u_mouseInCanvas": {
|
|
31
38
|
"type": "bool",
|
|
32
|
-
"category": "Mouse API"
|
|
39
|
+
"category": "Mouse API",
|
|
40
|
+
"description": "True if mouse is inside canvas bounds"
|
|
33
41
|
},
|
|
34
42
|
"u_mousePressed": {
|
|
35
43
|
"type": "bool",
|
|
36
|
-
"category": "Mouse API"
|
|
44
|
+
"category": "Mouse API",
|
|
45
|
+
"description": "True if any mouse button is pressed"
|
|
37
46
|
},
|
|
38
47
|
"u_mouseLeft": {
|
|
39
48
|
"type": "bool",
|
|
40
|
-
"category": "Mouse API"
|
|
49
|
+
"category": "Mouse API",
|
|
50
|
+
"description": "True if left mouse button is pressed"
|
|
41
51
|
},
|
|
42
52
|
"u_mouseRight": {
|
|
43
53
|
"type": "bool",
|
|
44
|
-
"category": "Mouse API"
|
|
54
|
+
"category": "Mouse API",
|
|
55
|
+
"description": "True if right mouse button is pressed"
|
|
45
56
|
},
|
|
46
57
|
"u_mouseMiddle": {
|
|
47
58
|
"type": "bool",
|
|
48
|
-
"category": "Mouse API"
|
|
59
|
+
"category": "Mouse API",
|
|
60
|
+
"description": "True if middle mouse button is pressed"
|
|
49
61
|
},
|
|
50
62
|
"u_mouseVelocity": {
|
|
51
63
|
"type": "vec2",
|
|
52
|
-
"category": "Mouse API"
|
|
64
|
+
"category": "Mouse API",
|
|
65
|
+
"description": "Mouse movement velocity in pixels per second"
|
|
53
66
|
},
|
|
54
67
|
"u_keySpace": {
|
|
55
68
|
"type": "bool",
|
|
56
|
-
"category": "Keyboard API"
|
|
69
|
+
"category": "Keyboard API",
|
|
70
|
+
"description": "True if spacebar is pressed"
|
|
57
71
|
},
|
|
58
72
|
"u_keyShift": {
|
|
59
73
|
"type": "bool",
|
|
60
|
-
"category": "Keyboard API"
|
|
74
|
+
"category": "Keyboard API",
|
|
75
|
+
"description": "True if Shift key is pressed"
|
|
61
76
|
},
|
|
62
77
|
"u_keyCtrl": {
|
|
63
78
|
"type": "bool",
|
|
64
|
-
"category": "Keyboard API"
|
|
79
|
+
"category": "Keyboard API",
|
|
80
|
+
"description": "True if Ctrl/Cmd key is pressed"
|
|
65
81
|
},
|
|
66
82
|
"u_keyAlt": {
|
|
67
83
|
"type": "bool",
|
|
68
|
-
"category": "Keyboard API"
|
|
84
|
+
"category": "Keyboard API",
|
|
85
|
+
"description": "True if Alt/Option key is pressed"
|
|
69
86
|
},
|
|
70
87
|
"u_keyW": {
|
|
71
88
|
"type": "bool",
|
|
72
|
-
"category": "Keyboard API"
|
|
89
|
+
"category": "Keyboard API",
|
|
90
|
+
"description": "True if W key is pressed"
|
|
73
91
|
},
|
|
74
92
|
"u_keyA": {
|
|
75
93
|
"type": "bool",
|
|
76
|
-
"category": "Keyboard API"
|
|
94
|
+
"category": "Keyboard API",
|
|
95
|
+
"description": "True if A key is pressed"
|
|
77
96
|
},
|
|
78
97
|
"u_keyS": {
|
|
79
98
|
"type": "bool",
|
|
80
|
-
"category": "Keyboard API"
|
|
99
|
+
"category": "Keyboard API",
|
|
100
|
+
"description": "True if S key is pressed"
|
|
81
101
|
},
|
|
82
102
|
"u_keyD": {
|
|
83
103
|
"type": "bool",
|
|
84
|
-
"category": "Keyboard API"
|
|
104
|
+
"category": "Keyboard API",
|
|
105
|
+
"description": "True if D key is pressed"
|
|
85
106
|
},
|
|
86
107
|
"u_keyUp": {
|
|
87
108
|
"type": "bool",
|
|
88
|
-
"category": "Keyboard API"
|
|
109
|
+
"category": "Keyboard API",
|
|
110
|
+
"description": "True if Up arrow key is pressed"
|
|
89
111
|
},
|
|
90
112
|
"u_keyDown": {
|
|
91
113
|
"type": "bool",
|
|
92
|
-
"category": "Keyboard API"
|
|
114
|
+
"category": "Keyboard API",
|
|
115
|
+
"description": "True if Down arrow key is pressed"
|
|
93
116
|
},
|
|
94
117
|
"u_keyLeft": {
|
|
95
118
|
"type": "bool",
|
|
96
|
-
"category": "Keyboard API"
|
|
119
|
+
"category": "Keyboard API",
|
|
120
|
+
"description": "True if Left arrow key is pressed"
|
|
97
121
|
},
|
|
98
122
|
"u_keyRight": {
|
|
99
123
|
"type": "bool",
|
|
100
|
-
"category": "Keyboard API"
|
|
124
|
+
"category": "Keyboard API",
|
|
125
|
+
"description": "True if Right arrow key is pressed"
|
|
101
126
|
},
|
|
102
127
|
"u_touchCount": {
|
|
103
128
|
"type": "int",
|
|
104
|
-
"category": "Touch API"
|
|
129
|
+
"category": "Touch API",
|
|
130
|
+
"description": "Number of active touch points (0-5)"
|
|
105
131
|
},
|
|
106
132
|
"u_touch0": {
|
|
107
133
|
"type": "vec2",
|
|
108
|
-
"category": "Touch API"
|
|
134
|
+
"category": "Touch API",
|
|
135
|
+
"description": "First touch point position in pixels"
|
|
109
136
|
},
|
|
110
137
|
"u_touch1": {
|
|
111
138
|
"type": "vec2",
|
|
112
|
-
"category": "Touch API"
|
|
139
|
+
"category": "Touch API",
|
|
140
|
+
"description": "Second touch point position in pixels"
|
|
113
141
|
},
|
|
114
142
|
"u_touch2": {
|
|
115
143
|
"type": "vec2",
|
|
116
|
-
"category": "Touch API"
|
|
144
|
+
"category": "Touch API",
|
|
145
|
+
"description": "Third touch point position in pixels"
|
|
117
146
|
},
|
|
118
147
|
"u_touch3": {
|
|
119
148
|
"type": "vec2",
|
|
120
|
-
"category": "Touch API"
|
|
149
|
+
"category": "Touch API",
|
|
150
|
+
"description": "Fourth touch point position in pixels"
|
|
121
151
|
},
|
|
122
152
|
"u_touch4": {
|
|
123
153
|
"type": "vec2",
|
|
124
|
-
"category": "Touch API"
|
|
154
|
+
"category": "Touch API",
|
|
155
|
+
"description": "Fifth touch point position in pixels"
|
|
125
156
|
},
|
|
126
157
|
"u_audioVolume": {
|
|
127
158
|
"type": "float",
|
|
128
|
-
"category": "Audio"
|
|
159
|
+
"category": "Audio",
|
|
160
|
+
"description": "RMS volume level (0-1)"
|
|
129
161
|
},
|
|
130
162
|
"u_audioPeak": {
|
|
131
163
|
"type": "float",
|
|
132
|
-
"category": "Audio"
|
|
164
|
+
"category": "Audio",
|
|
165
|
+
"description": "Peak volume level (0-1)"
|
|
133
166
|
},
|
|
134
167
|
"u_audioBass": {
|
|
135
168
|
"type": "float",
|
|
136
|
-
"category": "Audio"
|
|
169
|
+
"category": "Audio",
|
|
170
|
+
"description": "Bass frequency band level (0-1)"
|
|
137
171
|
},
|
|
138
172
|
"u_audioMid": {
|
|
139
173
|
"type": "float",
|
|
140
|
-
"category": "Audio"
|
|
174
|
+
"category": "Audio",
|
|
175
|
+
"description": "Mid frequency band level (0-1)"
|
|
141
176
|
},
|
|
142
177
|
"u_audioTreble": {
|
|
143
178
|
"type": "float",
|
|
144
|
-
"category": "Audio"
|
|
179
|
+
"category": "Audio",
|
|
180
|
+
"description": "Treble frequency band level (0-1)"
|
|
145
181
|
},
|
|
146
182
|
"u_audioSubBass": {
|
|
147
183
|
"type": "float",
|
|
148
|
-
"category": "Audio"
|
|
184
|
+
"category": "Audio",
|
|
185
|
+
"description": "Sub-bass frequency band 20-60 Hz (0-1)"
|
|
149
186
|
},
|
|
150
187
|
"u_audioLowMid": {
|
|
151
188
|
"type": "float",
|
|
152
|
-
"category": "Audio"
|
|
189
|
+
"category": "Audio",
|
|
190
|
+
"description": "Low-mid frequency band 250-500 Hz (0-1)"
|
|
153
191
|
},
|
|
154
192
|
"u_audioHighMid": {
|
|
155
193
|
"type": "float",
|
|
156
|
-
"category": "Audio"
|
|
194
|
+
"category": "Audio",
|
|
195
|
+
"description": "High-mid frequency band 2-4 kHz (0-1)"
|
|
157
196
|
},
|
|
158
197
|
"u_audioPresence": {
|
|
159
198
|
"type": "float",
|
|
160
|
-
"category": "Audio"
|
|
199
|
+
"category": "Audio",
|
|
200
|
+
"description": "Presence frequency band 4-6 kHz (0-1)"
|
|
161
201
|
},
|
|
162
202
|
"u_audioBrilliance": {
|
|
163
203
|
"type": "float",
|
|
164
|
-
"category": "Audio"
|
|
204
|
+
"category": "Audio",
|
|
205
|
+
"description": "Brilliance frequency band 6-20 kHz (0-1)"
|
|
165
206
|
},
|
|
166
207
|
"u_audioFFT": {
|
|
167
208
|
"type": "sampler2D",
|
|
168
|
-
"category": "Audio"
|
|
209
|
+
"category": "Audio",
|
|
210
|
+
"description": "FFT texture containing 512 frequency bins"
|
|
169
211
|
},
|
|
170
212
|
"u_video": {
|
|
171
213
|
"type": "sampler2D",
|
|
172
|
-
"category": "Video"
|
|
214
|
+
"category": "Video",
|
|
215
|
+
"description": "Current video frame as texture"
|
|
173
216
|
},
|
|
174
217
|
"u_videoResolution": {
|
|
175
218
|
"type": "vec2",
|
|
176
|
-
"category": "Video"
|
|
219
|
+
"category": "Video",
|
|
220
|
+
"description": "Video frame width and height in pixels"
|
|
177
221
|
},
|
|
178
222
|
"u_videoFrameRate": {
|
|
179
223
|
"type": "float",
|
|
180
|
-
"category": "Video"
|
|
224
|
+
"category": "Video",
|
|
225
|
+
"description": "Video frame rate in frames per second"
|
|
181
226
|
},
|
|
182
227
|
"u_faceCount": {
|
|
183
228
|
"type": "int",
|
|
184
|
-
"category": "CV"
|
|
229
|
+
"category": "CV",
|
|
230
|
+
"description": "Number of detected faces (0-1)"
|
|
185
231
|
},
|
|
186
232
|
"u_face0Bounds": {
|
|
187
233
|
"type": "vec4",
|
|
188
|
-
"category": "CV"
|
|
234
|
+
"category": "CV",
|
|
235
|
+
"description": "First face bounding box (x, y, width, height)"
|
|
189
236
|
},
|
|
190
237
|
"u_face0HeadPose": {
|
|
191
238
|
"type": "vec3",
|
|
192
|
-
"category": "CV"
|
|
239
|
+
"category": "CV",
|
|
240
|
+
"description": "First face head rotation (pitch, yaw, roll) in radians"
|
|
193
241
|
},
|
|
194
242
|
"u_face0Confidence": {
|
|
195
243
|
"type": "float",
|
|
196
|
-
"category": "CV"
|
|
244
|
+
"category": "CV",
|
|
245
|
+
"description": "First face detection confidence (0-1)"
|
|
197
246
|
},
|
|
198
247
|
"u_face0Happy": {
|
|
199
248
|
"type": "float",
|
|
200
|
-
"category": "CV"
|
|
249
|
+
"category": "CV",
|
|
250
|
+
"description": "First face happy expression confidence (0-1)"
|
|
201
251
|
},
|
|
202
252
|
"u_face0Sad": {
|
|
203
253
|
"type": "float",
|
|
204
|
-
"category": "CV"
|
|
254
|
+
"category": "CV",
|
|
255
|
+
"description": "First face sad expression confidence (0-1)"
|
|
205
256
|
},
|
|
206
257
|
"u_face0Angry": {
|
|
207
258
|
"type": "float",
|
|
208
|
-
"category": "CV"
|
|
259
|
+
"category": "CV",
|
|
260
|
+
"description": "First face angry expression confidence (0-1)"
|
|
209
261
|
},
|
|
210
262
|
"u_face0Surprised": {
|
|
211
263
|
"type": "float",
|
|
212
|
-
"category": "CV"
|
|
264
|
+
"category": "CV",
|
|
265
|
+
"description": "First face surprised expression confidence (0-1)"
|
|
213
266
|
},
|
|
214
267
|
"u_handCount": {
|
|
215
268
|
"type": "int",
|
|
216
|
-
"category": "CV"
|
|
269
|
+
"category": "CV",
|
|
270
|
+
"description": "Number of detected hands (0-2)"
|
|
217
271
|
},
|
|
218
272
|
"u_leftHandPalm": {
|
|
219
273
|
"type": "vec3",
|
|
220
|
-
"category": "CV"
|
|
274
|
+
"category": "CV",
|
|
275
|
+
"description": "Left hand palm position (x, y, z)"
|
|
221
276
|
},
|
|
222
277
|
"u_rightHandPalm": {
|
|
223
278
|
"type": "vec3",
|
|
224
|
-
"category": "CV"
|
|
279
|
+
"category": "CV",
|
|
280
|
+
"description": "Right hand palm position (x, y, z)"
|
|
225
281
|
},
|
|
226
282
|
"u_leftHandFist": {
|
|
227
283
|
"type": "float",
|
|
228
|
-
"category": "CV"
|
|
284
|
+
"category": "CV",
|
|
285
|
+
"description": "Left hand fist gesture confidence (0-1)"
|
|
229
286
|
},
|
|
230
287
|
"u_leftHandOpen": {
|
|
231
288
|
"type": "float",
|
|
232
|
-
"category": "CV"
|
|
289
|
+
"category": "CV",
|
|
290
|
+
"description": "Left hand open palm gesture confidence (0-1)"
|
|
233
291
|
},
|
|
234
292
|
"u_rightHandFist": {
|
|
235
293
|
"type": "float",
|
|
236
|
-
"category": "CV"
|
|
294
|
+
"category": "CV",
|
|
295
|
+
"description": "Right hand fist gesture confidence (0-1)"
|
|
237
296
|
},
|
|
238
297
|
"u_rightHandOpen": {
|
|
239
298
|
"type": "float",
|
|
240
|
-
"category": "CV"
|
|
299
|
+
"category": "CV",
|
|
300
|
+
"description": "Right hand open palm gesture confidence (0-1)"
|
|
241
301
|
},
|
|
242
302
|
"u_poseDetected": {
|
|
243
303
|
"type": "bool",
|
|
244
|
-
"category": "CV"
|
|
304
|
+
"category": "CV",
|
|
305
|
+
"description": "True if a pose is currently detected"
|
|
245
306
|
},
|
|
246
307
|
"u_nosePosition": {
|
|
247
308
|
"type": "vec2",
|
|
248
|
-
"category": "CV"
|
|
309
|
+
"category": "CV",
|
|
310
|
+
"description": "Nose landmark position in pixels"
|
|
249
311
|
},
|
|
250
312
|
"u_leftWristPosition": {
|
|
251
313
|
"type": "vec2",
|
|
252
|
-
"category": "CV"
|
|
314
|
+
"category": "CV",
|
|
315
|
+
"description": "Left wrist landmark position in pixels"
|
|
253
316
|
},
|
|
254
317
|
"u_rightWristPosition": {
|
|
255
318
|
"type": "vec2",
|
|
256
|
-
"category": "CV"
|
|
319
|
+
"category": "CV",
|
|
320
|
+
"description": "Right wrist landmark position in pixels"
|
|
257
321
|
},
|
|
258
322
|
"u_leftAnklePosition": {
|
|
259
323
|
"type": "vec2",
|
|
260
|
-
"category": "CV"
|
|
324
|
+
"category": "CV",
|
|
325
|
+
"description": "Left ankle landmark position in pixels"
|
|
261
326
|
},
|
|
262
327
|
"u_rightAnklePosition": {
|
|
263
328
|
"type": "vec2",
|
|
264
|
-
"category": "CV"
|
|
329
|
+
"category": "CV",
|
|
330
|
+
"description": "Right ankle landmark position in pixels"
|
|
265
331
|
},
|
|
266
332
|
"u_segmentationMask": {
|
|
267
333
|
"type": "sampler2D",
|
|
268
|
-
"category": "CV"
|
|
334
|
+
"category": "CV",
|
|
335
|
+
"description": "Body segmentation mask texture (0=background, 1=person)"
|
|
269
336
|
},
|
|
270
337
|
"u_segmentationRes": {
|
|
271
338
|
"type": "vec2",
|
|
272
|
-
"category": "CV"
|
|
339
|
+
"category": "CV",
|
|
340
|
+
"description": "Segmentation mask resolution in pixels"
|
|
273
341
|
},
|
|
274
342
|
"backbuffer": {
|
|
275
343
|
"type": "sampler2D",
|
|
276
|
-
"category": "Backbuffer"
|
|
344
|
+
"category": "Backbuffer",
|
|
345
|
+
"description": "Previous frame texture for feedback effects"
|
|
277
346
|
}
|
|
278
347
|
};
|