--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shaders/default.frag Sat Dec 02 23:11:56 2023 +0100
@@ -0,0 +1,17 @@
+#version 330 core
+
+uniform sampler2D uTexture;
+in vec2 vTextureXY;
+out vec3 fColor;
+
+vec3 grayscale(vec3 original) {
+ const vec3 luminanceWeighting = vec3(0.2125, 0.7154, 0.0721);
+ float luminance = dot(original, luminanceWeighting);
+ return vec3(luminance);
+}
+
+void main(){
+ fColor = texture(uTexture, vTextureXY).rgb;
+ // fColor = grayscale(fColor);
+ // fColor *= vec3(0.8, 1., 0.2);
+}