From 40fbb328150d853d0d7a83ce447c3f008de38822 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 16 Jun 2024 22:20:07 +0300 Subject: Start integrating pds, fix warnings and add new test build object --- src/shader.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shader.frag') diff --git a/src/shader.frag b/src/shader.frag index 8f46ec0..ca895d2 100644 --- a/src/shader.frag +++ b/src/shader.frag @@ -62,7 +62,8 @@ void main() { if (mod(gl_FragCoord.x, 20) > 19 || mod(gl_FragCoord.y, 20) > 19) { outColor = vec4(0,0,0, 1); } else { - outColor = vec4(0.0, n * .2, n * 0.5, 1.0); + float x = clamp(sin(ubo.time * 0.1), 0.0, 1.0); + outColor = vec4(x, n * .2, n * 0.5, 1.0); } } -- cgit v1.2.3