Hi,
I am working on a simple web-editor for shaders used in recur, which is open hardware, based around a fork of glslviewer. It has video textures & some analog inputs that it provides as uniforms, so i need to do same on web.
In this screenshot, the controls on the right are for these:
I can work out things like "set sampler2D uniform from video" and "turn this knob into float value", main thing I need to understand is how to hook into the actual uniforms (u_x0 for example.)
Hi, I am working on a simple web-editor for shaders used in recur, which is open hardware, based around a fork of glslviewer. It has video textures & some analog inputs that it provides as uniforms, so i need to do same on web.
In this screenshot, the controls on the right are for these:
I can work out things like "set sampler2D uniform from video" and "turn this knob into float value", main thing I need to understand is how to hook into the actual uniforms (
u_x0
for example.)My code looks like this:
I tried:
and both error that
setUniform
is not defined.How do I set a uniform-value of the current-running shader? I assume it's something off
glslEditor
object, but I don't see anything that looks right.