A fragment shader using keyboard inputs is running in this page.
Hit any key and see what's happening!
VEDA supports keyboard input.
When you add
"keyboard": true to Settings, VEDA enables this uniform variable:
The size of
sampler2D key is
The state of key input is stored in x corresponding to the keycode.
texture2D(key, vec2(65. / 256.)).r is
1.0 while key
a (code: 65) is pressed.
See examples for more detail.