shaders/scanlines-basic.frag
author František Kučera <franta-hg@frantovo.cz>
Mon, 04 Dec 2023 21:03:53 +0100
branchv_0
changeset 19 262828ae9682
parent 18 c4384f43c739
child 21 bcc53967ab3c
permissions -rw-r--r--
OOP for Texture

#version 330 core

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

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

	float lineCount = 200.;
	fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount)));
}