2024-02-05 16:04:37 -05:00
|
|
|
#version 120
|
|
|
|
//#extension GL_ARB_shader_texture_lod : disable
|
|
|
|
|
|
|
|
#include "/lib/settings.glsl"
|
|
|
|
|
|
|
|
flat varying int water;
|
|
|
|
varying vec2 texcoord;
|
2024-03-01 22:48:09 -05:00
|
|
|
|
|
|
|
varying float overdrawCull;
|
|
|
|
|
2024-02-05 16:04:37 -05:00
|
|
|
uniform sampler2D tex;
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
|
|
|
|
void main() {
|
2024-03-01 22:48:09 -05:00
|
|
|
|
|
|
|
if(water > 0){
|
|
|
|
discard;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(overdrawCull < 1.0){
|
|
|
|
discard;
|
|
|
|
return;
|
|
|
|
}
|
2024-02-05 16:04:37 -05:00
|
|
|
|
|
|
|
gl_FragData[0] = texture2D(tex, texcoord.xy);
|
|
|
|
}
|