Creating the shader viewer
This was my example to see if could get audio input into the shader viewer.
Free to use for anything. No credit needed.
void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
vec2 uv = fragCoord / iResolution.xy;
vec3 col = 0.5 + 0.5 * cos(iTime + uv.xyx + vec3(0, 2, 4));
fragColor = vec4(col, 1.0);
}
Paste it in the "Image" tab of a new shader on Shadertoy, or use it in your own project.
Comments
No comments yet.
Log in or create an account to place a comment.