diff options
author | BuildTools <james.jenour@protonmail.com> | 2021-02-16 03:08:30 +0800 |
---|---|---|
committer | BuildTools <james.jenour@protonmail.com> | 2021-02-16 03:08:30 +0800 |
commit | a0e7d174472d034142003e58a42d6beefe36a92b (patch) | |
tree | 37fbdf5c5c3af3e85ed05e6e17d64207b2a6d8c9 /src/main/resources/assets/notenoughupdates/shaders/shiny_cape.frag | |
parent | 6024bdf69193ad216e95fca53d7d28746f4269e0 (diff) | |
download | NotEnoughUpdates-a0e7d174472d034142003e58a42d6beefe36a92b.tar.gz NotEnoughUpdates-a0e7d174472d034142003e58a42d6beefe36a92b.tar.bz2 NotEnoughUpdates-a0e7d174472d034142003e58a42d6beefe36a92b.zip |
PRE21
Diffstat (limited to 'src/main/resources/assets/notenoughupdates/shaders/shiny_cape.frag')
-rw-r--r-- | src/main/resources/assets/notenoughupdates/shaders/shiny_cape.frag | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/main/resources/assets/notenoughupdates/shaders/shiny_cape.frag b/src/main/resources/assets/notenoughupdates/shaders/shiny_cape.frag deleted file mode 100644 index 77e2c5eb..00000000 --- a/src/main/resources/assets/notenoughupdates/shaders/shiny_cape.frag +++ /dev/null @@ -1,26 +0,0 @@ -#version 120 - -varying vec4 passColour; -varying vec3 passNormal; -uniform sampler2D textureIn; - -uniform int millis; -uniform int eventMillis; - -void main() { - gl_FragColor = texture2D(textureIn, gl_TexCoord[0].st) * passColour; - - if(eventMillis < 350 && gl_TexCoord[0].s < 512 && gl_TexCoord[0].t < 512) { - float scroll = (gl_TexCoord[0].s*1024.0f+gl_TexCoord[0].t*1024.0f); - float factor = (10 - abs(scroll - eventMillis*2))/40.0f; - if(factor > 0) { - gl_FragColor.rgb += vec3(factor+0.25f, factor+0.25f, factor+0.25f); - } - } - - vec3 fakeSunNormal = normalize(vec3(0.2f,1.0f,-0.2f)); - vec3 normNormal = normalize(passNormal); - float shading = max(0.6f, dot(fakeSunNormal, normNormal)); - - gl_FragColor = vec4(gl_FragColor.rgb*shading, gl_FragColor.a); -}
\ No newline at end of file |