summaryrefslogtreecommitdiff
path: root/light.fs
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-05-23 12:36:13 -0500
committersanine-a <sanine.not@pm.me>2020-05-23 12:36:13 -0500
commit86bd56a8983b664e145ddd3b34a2c2fa8bdf21a9 (patch)
tree04b7571e2fc6ef3d7c91ac1fe6c28c4290fd8fff /light.fs
parent018b7ce3f7d94af92fa4fab32ffdde451da7fcb9 (diff)
add normals to primitives
Diffstat (limited to 'light.fs')
-rw-r--r--light.fs9
1 files changed, 9 insertions, 0 deletions
diff --git a/light.fs b/light.fs
new file mode 100644
index 0000000..f2a2431
--- /dev/null
+++ b/light.fs
@@ -0,0 +1,9 @@
+#version 330 core
+
+out vec4 fragment_color;
+
+uniform vec3 light_color;
+
+void main() {
+ fragment_color = vec4(light_color.xyz, 1.0);
+} \ No newline at end of file