summaryrefslogtreecommitdiffstats
path: root/balls.frag
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-26 19:14:59 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-26 19:14:59 -0400
commit7c6a1d395492e8e26c0c091e83f69f54477f5d15 (patch)
treedff5d213173ca76fd489ee94dee1839971f530ce /balls.frag
parentda60f356e3c6404672cbc35b85b309d21fca896e (diff)
downloadballs-7c6a1d395492e8e26c0c091e83f69f54477f5d15.zip
shaders
Diffstat (limited to 'balls.frag')
-rw-r--r--balls.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/balls.frag b/balls.frag
new file mode 100644
index 0000000..f1fb57a
--- /dev/null
+++ b/balls.frag
@@ -0,0 +1,10 @@
+#version 130
+
+in vec3 new_color;
+out vec4 out_color;
+
+void
+main(void) {
+ vec3 tmp_color = new_color + vec3(0.25f, 0.25f, 0.25f);
+ out_color = vec4(tmp_color, 1.0);
+}