Sflp | Shaders
// sflp: stupid-fast lightweight fragment // dimensions: 640x360 | fps: 999+ | mem: 4 registers // license: unlicense | author: shader.elf precision mediump float; uniform vec2 resolution; uniform float time;
// scanline grit (fake low-res) col *= 0.9 + 0.2 * sin(gl_FragCoord.y * 2.0); sflp shaders
gl_FragColor = vec4(col, 1.0); // sflp vertex: no camera, no matrix, just NDC quad attribute vec2 position; varying vec2 uv; void main() uv = position * 0.5 + 0.5; // (0..1) if position is -1..1 gl_Position = vec4(position, 0.0, 1.0); uniform vec2 resolution
