# HG changeset patch # User František Kučera # Date 1701627745 -3600 # Node ID f53a040bdc894e8fa2be628a940432159f8a7d5a # Parent 0883358bc11dcb0712bf40e7b98c3d14c4cfb7d6 new shader: scanlines-basic.frag diff -r 0883358bc11d -r f53a040bdc89 shaders/scanlines-basic.frag --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shaders/scanlines-basic.frag Sun Dec 03 19:22:25 2023 +0100 @@ -0,0 +1,12 @@ +#version 330 core + +uniform sampler2D uTexture; +in vec2 vTextureXY; +out vec4 fColor; + +void main(){ + fColor = texture(uTexture, vTextureXY).rgba; + + float lineCount = 260.; + fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount))); +}