shaders/scanlines-basic.frag
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Dec 2023 12:40:20 +0100
branchv_0
changeset 26 e7ceb915177e
parent 21 bcc53967ab3c
child 28 4cbd9c0beb4c
permissions -rw-r--r--
support both decimal and hexadecimal notations for --root-window

#version 330 core

uniform  sampler2D  uTexture;
in       vec2       vTextureXY;
out      vec4       fColor;

void main() {
	fColor = texture(uTexture, vTextureXY).rgba;

	float lineCount = textureSize(uTexture, 0).y;
	fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount)));
}