author | František Kučera <franta-hg@frantovo.cz> |
Thu, 28 Dec 2023 00:37:59 +0100 | |
branch | v_0 |
changeset 35 | dcb2ad86e23c |
parent 28 | 4cbd9c0beb4c |
permissions | -rw-r--r-- |
#version 330 core uniform sampler2D uTexture; uniform float uTextureScale; in vec2 vTextureXY; out vec4 fColor; void main() { fColor = texture(uTexture, vTextureXY).rgba; float lineCount = textureSize(uTexture, 0).y / uTextureScale; fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount))); }