aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets/skyhanni/shaders/chroma.vsh
diff options
context:
space:
mode:
authorVixid <52578495+VixidDev@users.noreply.github.com>2023-10-14 10:05:48 +0100
committerGitHub <noreply@github.com>2023-10-14 11:05:48 +0200
commit16ef943b3c2ce8db2331332261143a12bdba61cf (patch)
tree52c764205ef2464c62b05e3585390b61c69bcdda /src/main/resources/assets/skyhanni/shaders/chroma.vsh
parentbfae99cb54988568b2752c7d6a8d3d5babed1bbc (diff)
downloadskyhanni-16ef943b3c2ce8db2331332261143a12bdba61cf.tar.gz
skyhanni-16ef943b3c2ce8db2331332261143a12bdba61cf.tar.bz2
skyhanni-16ef943b3c2ce8db2331332261143a12bdba61cf.zip
Feature: SBA Chroma but in SH (#487)
Porting SBA's chroma into SkyHanni with many more options and chroma everything. #487
Diffstat (limited to 'src/main/resources/assets/skyhanni/shaders/chroma.vsh')
-rw-r--r--src/main/resources/assets/skyhanni/shaders/chroma.vsh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/resources/assets/skyhanni/shaders/chroma.vsh b/src/main/resources/assets/skyhanni/shaders/chroma.vsh
new file mode 100644
index 000000000..5f5030d07
--- /dev/null
+++ b/src/main/resources/assets/skyhanni/shaders/chroma.vsh
@@ -0,0 +1,15 @@
+// Chroma Vertex Shader
+// Credit: https://github.com/BiscuitDevelopment/SkyblockAddons/blob/main/src/main/resources/assets/skyblockaddons/shaders/program/chroma_screen_textured.vsh
+
+#version 120
+
+varying vec2 outTextureCoords;
+varying vec4 outColor;
+
+void main() {
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
+
+ // Pass the color & texture coords to the fragment shader
+ outColor = gl_Color;
+ outTextureCoords = gl_MultiTexCoord0.st;
+}