We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
###Uniforms have been renamed
uniform sampler2D texture; // iChannel0 in Shadertoy uniform vec2 sketchSize; // iResolution in Shadertoy
###Main is changed
void mainImage( out vec4 fragColor, in vec2 fragCoord ) // becomes void main( void )
###Other renaming
// fragCoord and fragColor had to be renamed into gl_FragCoord gl_FragColor
###Y axis adjustment not required processing coordinates are inverted comment out or remove adjustment as in example glsl fragment
vec2 uv = coords / sketchSize.xy; // processing is already using inverted y coordinates // uv.y = 1.0-uv.y;