mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-23 01:59:39 +08:00
32 lines
750 B
GLSL
32 lines
750 B
GLSL
#version 120
|
|
//#extension GL_ARB_shader_texture_lod : disable
|
|
|
|
#include "/lib/settings.glsl"
|
|
|
|
flat varying int water;
|
|
varying vec2 texcoord;
|
|
|
|
varying float overdrawCull;
|
|
|
|
uniform sampler2D tex;
|
|
//////////////////////////////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] = texture2D(tex, texcoord.xy);
|
|
}
|