Difference between revisions of "TouchDesigner learning"
Jump to navigation
Jump to search
| Line 17: | Line 17: | ||
op('render1').height | op('render1').height | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | =GLSL= | ||
| + | === Get working Shadertoy shaders === | ||
| + | <pre> | ||
| + | // Replace void mainImage( bla bla ) by void main() | ||
| + | // Then add at top of code: | ||
| + | |||
| + | layout(location = 0) out vec4 fragColor; | ||
| + | |||
| + | uniform vec3 iResolution; | ||
| + | uniform float iTime; | ||
| + | uniform float iFrame; | ||
</pre> | </pre> | ||
Revision as of 23:45, 19 January 2021
Contents
Making custom interface
Making buttons
// Name of the parent node parent().name
Rendering
Get resolution from another node
// Get width and height from render1 node
op('render1').width
op('render1').height
GLSL
Get working Shadertoy shaders
// Replace void mainImage( bla bla ) by void main() // Then add at top of code: layout(location = 0) out vec4 fragColor; uniform vec3 iResolution; uniform float iTime; uniform float iFrame;