shaders/scanlines-basic.frag
branchv_0
changeset 21 bcc53967ab3c
parent 18 c4384f43c739
child 28 4cbd9c0beb4c
--- a/shaders/scanlines-basic.frag	Tue Dec 05 22:55:25 2023 +0100
+++ b/shaders/scanlines-basic.frag	Wed Dec 06 22:54:24 2023 +0100
@@ -7,6 +7,6 @@
 void main() {
 	fColor = texture(uTexture, vTextureXY).rgba;
 
-	float lineCount = 200.;
+	float lineCount = textureSize(uTexture, 0).y;
 	fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount)));
 }