summaryrefslogtreecommitdiff
path: root/src/main/resources/assets/notenoughupdates/shaders/program/setrgbtoalpha.fsh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/assets/notenoughupdates/shaders/program/setrgbtoalpha.fsh')
-rw-r--r--src/main/resources/assets/notenoughupdates/shaders/program/setrgbtoalpha.fsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/resources/assets/notenoughupdates/shaders/program/setrgbtoalpha.fsh b/src/main/resources/assets/notenoughupdates/shaders/program/setrgbtoalpha.fsh
new file mode 100644
index 00000000..324602fd
--- /dev/null
+++ b/src/main/resources/assets/notenoughupdates/shaders/program/setrgbtoalpha.fsh
@@ -0,0 +1,11 @@
+#version 120
+
+uniform sampler2D DiffuseSampler;
+
+varying vec2 texCoord;
+
+void main(){
+ vec4 diffuseColor = texture2D(DiffuseSampler, texCoord);
+
+ gl_FragColor = vec4(diffuseColor.a);
+}