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