Monday, August 20, 2018

Touch Designer Tips - importing Shadertoy GLSL shaders

replace iChannel0 with     sTD2DInputs[0]
replace fragCoord with     gl_FragCoord.xy

Add 2 Vector variables:
iResolution [1280, 720]
iTime [absTime.seconds]

uniform vec2 iResolution;
uniform float iTime;

============================================
Dual Buffer

replace iChannel0 with   sTD2DInputs[0]
replace void mainImage(out vec4 fragColor,etc) with     void main()

layout (location = 0) out vec4 fragColor;
uniform vec3 iResolution;
uniform float iFrame;
uniform vec3 iMouse;




https://www.youtube.com/watch?v=2JDR5l5UjRU

No comments:

Post a Comment