mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 21:32:19 +01:00
Initial commit
This commit is contained in:
commit
86efc669e9
5013 files changed
+237743
No files matched your search
@@ -0,0 +1,32 @@
|
||||
// __multiversion__
|
||||
// This signals the loading code to prepend either #version 100 or #version 300 es as apropriate.
|
||||
|
||||
#include "shaders/fragmentVersionCentroid.h"
|
||||
|
||||
#if __VERSION__ >= 300
|
||||
_centroid in vec2 uv;
|
||||
_centroid in vec2 uv1;
|
||||
#else
|
||||
varying vec2 uv;
|
||||
varying vec2 uv1;
|
||||
#endif
|
||||
|
||||
uniform sampler2D TEXTURE_0;
|
||||
|
||||
#include "shaders/uniformShaderConstants.h"
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 color = texture2D( TEXTURE_0, uv );
|
||||
vec4 color1 = texture2D( TEXTURE_0, uv1 );
|
||||
|
||||
if (color.a < 0.01)
|
||||
{
|
||||
color = color1;
|
||||
}
|
||||
else if (color.b > 0.01) {
|
||||
color = mix(color, color1, CURRENT_COLOR.a);
|
||||
}
|
||||
|
||||
gl_FragColor = color;
|
||||
}
|
||||
Reference in new issue
Block a user