summaryrefslogtreecommitdiffstats
path: root/src/shader.frag
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2024-06-16 22:20:07 +0300
committergrm <grm@eyesin.space>2024-06-16 22:20:07 +0300
commitbf19cf357ef64ef727f3687329dd5aa3e66d2752 (patch)
tree2a41218d92e94c360692ef39162ff2d5348c0e3a /src/shader.frag
parent92bee705c1533a7e06c8aefd1221618b31d0fd6f (diff)
downloadcgame-bf19cf357ef64ef727f3687329dd5aa3e66d2752.tar.gz
cgame-bf19cf357ef64ef727f3687329dd5aa3e66d2752.tar.bz2
cgame-bf19cf357ef64ef727f3687329dd5aa3e66d2752.zip
Start integrating pds, fix warnings and add new test build object
Diffstat (limited to 'src/shader.frag')
-rw-r--r--src/shader.frag3
1 files changed, 2 insertions, 1 deletions
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);
}
}