Iris/gource/data/shaders/shadow.frag
2022-12-11 12:32:05 -05:00

10 lines
209 B
GLSL

uniform sampler2D tex;
uniform float shadow_strength;
void main(void)
{
vec4 colour = texture2D(tex,gl_TexCoord[0].st);
gl_FragColor = vec4(0.0, 0.0, 0.0, gl_Color.w * colour.w * shadow_strength);
}