glsl-view
module reference
glsl-view
module reference
glsl-view integration via OSC.
index
- draw a GLSL shader via OSC.
- compile a GLSL shader with uniforms.
- load a texture-share-vk texture source.
- load a video texture source.
details
- draw a GLSL shader via OSC.
(draw [socket] shader)
Syncs code and parameters with glsl-view via OSC.
socket
must be anosc/out~
or read from*oscout*
shader
is a struct~ withshader
(str
): GLSL sourceuniforms
: struct mapping uniform names to values
- compile a GLSL shader with uniforms.
#shader"code…"
Syncs code and parameters with glsl-view via OSC.
code…
is a template string that can contain~-stream
template substitutions that are used as follows:str
: substituted directly as GLSL{type: str val: …}
: reference to uniform of typetype
(instead of infered as follows)num
,bool
: reference touniform float/bool
num[I]
,bool[I]
: reference touniform vecI/bvecI
num[I][J]
: reference touniform matIxJ
- load a texture-share-vk texture source.
(texture [socket] name [type])
- load a video texture source.
(video [socket] name filename [type])