aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/assets/skyhanni')
-rw-r--r--src/main/resources/assets/skyhanni/shaders/darken.fsh13
-rw-r--r--src/main/resources/assets/skyhanni/shaders/darken.vsh9
2 files changed, 22 insertions, 0 deletions
diff --git a/src/main/resources/assets/skyhanni/shaders/darken.fsh b/src/main/resources/assets/skyhanni/shaders/darken.fsh
new file mode 100644
index 000000000..cfc118eef
--- /dev/null
+++ b/src/main/resources/assets/skyhanni/shaders/darken.fsh
@@ -0,0 +1,13 @@
+#version 120
+
+// Fragment Shader
+uniform sampler2D texture;
+uniform float darknessLevel;
+
+varying vec4 outColor;
+
+void main() {
+ vec4 color = texture2D(texture, gl_TexCoord[0].st) * outColor;
+ vec3 darkenedColor = color.rgb * darknessLevel;
+ gl_FragColor = vec4(darkenedColor, color.a);
+}
diff --git a/src/main/resources/assets/skyhanni/shaders/darken.vsh b/src/main/resources/assets/skyhanni/shaders/darken.vsh
new file mode 100644
index 000000000..210bee872
--- /dev/null
+++ b/src/main/resources/assets/skyhanni/shaders/darken.vsh
@@ -0,0 +1,9 @@
+#version 120
+
+varying vec4 outColor;
+
+void main() {
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
+ gl_TexCoord[0] = gl_MultiTexCoord0;
+ outColor = gl_Color;
+}