summaryrefslogtreecommitdiff
path: root/src/main/resources/assets
diff options
context:
space:
mode:
authorMoulberry <james.jenour@student.scotch.wa.edu.au>2020-11-08 16:42:16 +1100
committerMoulberry <james.jenour@student.scotch.wa.edu.au>2020-11-08 16:42:16 +1100
commitec0660e41145d3d9ed479b3e697afddf8ddc8c4c (patch)
treefba4b3c37b02c42267e03a07453d3941c98fd66d /src/main/resources/assets
parentf89c363dda53046d832089d94f04695ce60d3ae6 (diff)
downloadNotEnoughUpdates-ec0660e41145d3d9ed479b3e697afddf8ddc8c4c.tar.gz
NotEnoughUpdates-ec0660e41145d3d9ed479b3e697afddf8ddc8c4c.tar.bz2
NotEnoughUpdates-ec0660e41145d3d9ed479b3e697afddf8ddc8c4c.zip
asbyth made me do it
Diffstat (limited to 'src/main/resources/assets')
-rw-r--r--src/main/resources/assets/notenoughupdates/capes/lightning.pngbin0 -> 6490 bytes
-rw-r--r--src/main/resources/assets/notenoughupdates/shaders/lightning_cape.frag13
-rw-r--r--src/main/resources/assets/notenoughupdates/shaders/lightning_cape.vert12
3 files changed, 25 insertions, 0 deletions
diff --git a/src/main/resources/assets/notenoughupdates/capes/lightning.png b/src/main/resources/assets/notenoughupdates/capes/lightning.png
new file mode 100644
index 00000000..dc0afce1
--- /dev/null
+++ b/src/main/resources/assets/notenoughupdates/capes/lightning.png
Binary files differ
diff --git a/src/main/resources/assets/notenoughupdates/shaders/lightning_cape.frag b/src/main/resources/assets/notenoughupdates/shaders/lightning_cape.frag
new file mode 100644
index 00000000..c4472679
--- /dev/null
+++ b/src/main/resources/assets/notenoughupdates/shaders/lightning_cape.frag
@@ -0,0 +1,13 @@
+#version 120
+
+varying vec4 passColour;
+varying vec3 passNormal;
+uniform sampler2D textureIn;
+
+uniform int millis;
+
+void main() {
+ vec4 texture = texture2D(textureIn, gl_TexCoord[0].st);
+
+ gl_FragColor = vec4(texture.rgb*shading, gl_FragColor.a);
+}
diff --git a/src/main/resources/assets/notenoughupdates/shaders/lightning_cape.vert b/src/main/resources/assets/notenoughupdates/shaders/lightning_cape.vert
new file mode 100644
index 00000000..2b5c48f8
--- /dev/null
+++ b/src/main/resources/assets/notenoughupdates/shaders/lightning_cape.vert
@@ -0,0 +1,12 @@
+#version 120
+
+varying vec4 passColour;
+varying vec3 passNormal;
+
+void main() {
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
+ gl_TexCoord[0] = gl_MultiTexCoord0;
+
+ passColour = gl_Color;
+ passNormal = normalize(gl_Normal);
+} \ No newline at end of file