mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
33 lines
639 B
Plaintext
33 lines
639 B
Plaintext
// __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;
|
|
}
|