Back to shaders

Shader test bench

Fragment

zero-x7444ff-shader-art generative glsl runnable fragment MIT
Source
runnable fragment

Complete GLSL fragment shader. Stronghold runs it directly when the browser can compile it.

Code

precision mediump float;
uniform float uRedShift;
uniform float uGreenShift;
uniform float uBlueShift;
varying vec2 v_texcoord;

void main() {
    gl_FragColor = vec4(v_texcoord.x * uRedShift, v_texcoord.y * uGreenShift, uBlueShift, 1.0);
}