Open cyberboy666 opened 6 years ago
I'm curious where you'd want to set up the shader deving environment. Add an option in recur to start glslviewer mode on the pi so you could connect a USB keyboard and develop from there?
@sebiik , yeah - i was thinking basically some instructions on how to edit a shader on the pi, (probably dont need a option to start glslviewer from within recur at first although that would be cool!), something like:
.
to exit recurglslViewer ~/Shaders/my_new_shader.frag -l
do you have any ideas on how to ease the entry for people customising there own video-effects etc ?
If using ssh #110 works well;
One thing about just using glslViewer is that you have to supply something for the (midi) param values or else a lot of the shaders won't really work.
By being connected to the pi, I can use my own editing environment on a different machine (and even use glslViewer there as a single-shader preview, though there is still the param values problem) and get good live feedback for learning, especially helpful with the 2-input shaders which I don't even know how to create with glslViewer or anything else.
I will make a special effort to document my learning and if it works out I can put together some documentation about editing environment, ssh setup, glsl, whatever.
There is already a bit of documentation and templating here: https://github.com/langolierz/r_e_c_u_r/blob/9935f1a98bf308b1563e54ca8551ac16854bda9e/Shaders/2-input/mix_lumaKey.frag
On this angle, I added these (discussed in #152 )
While working on these I also:
u_x*
instead of fparams
(which follows glslviewer and others)Feel free to use these here (let me know, and I will make a PR for shaders.)
this is partially already documented in conjur repo , but might be a bit highlevel for someone interested in writing their first shader, it should include: