aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets/skyhanni
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-05-29 23:00:20 +0200
committerGitHub <noreply@github.com>2024-05-29 23:00:20 +0200
commit2af916371b2edf71fb055a3f8de2bcd7b99b2251 (patch)
tree9a0e4f7ce2dca37f1d227ba0d6605f7b44e096e9 /src/main/resources/assets/skyhanni
parent21f92de676710c0c39d37056dada80af8266a9ba (diff)
downloadskyhanni-2af916371b2edf71fb055a3f8de2bcd7b99b2251.tar.gz
skyhanni-2af916371b2edf71fb055a3f8de2bcd7b99b2251.tar.bz2
skyhanni-2af916371b2edf71fb055a3f8de2bcd7b99b2251.zip
Improvement: Added Mining Event Icons (#1305)
Co-authored-by: Cal <cwolfson58@gmail.com>
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;
+}