//modified version of [this shader](https://github.com/wessles/GLSL-CRT/blob/master/shader.frag) #version 300 es precision mediump float; in vec2 v_texcoord; uniform sampler2D tex; out vec4 FragColor; // [0,1] void main() { vec4 cta = texture(tex, v_texcoord); FragColor = vec4(cta.z, cta.y, cta.x, cta.a); }