mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-11 17:58:20 +08:00
32 lines
757 B
GLSL
32 lines
757 B
GLSL
#version 430 compatibility
|
|
//#extension GL_ARB_shader_texture_lod : disable
|
|
|
|
#include "/lib/settings.glsl"
|
|
|
|
in flat int water;
|
|
in vec2 texcoord;
|
|
|
|
in float overdrawCull;
|
|
|
|
uniform sampler2D gtexture;
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
//////////////////////////////VOID MAIN//////////////////////////////
|
|
|
|
void main() {
|
|
|
|
if(water > 0){
|
|
discard;
|
|
return;
|
|
}
|
|
|
|
if(overdrawCull < 1.0){
|
|
discard;
|
|
return;
|
|
}
|
|
|
|
gl_FragData[0] = texture(gtexture, texcoord.xy);
|
|
}
|