File: shadow.frag

package info (click to toggle)
gource 0.55-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,392 kB
  • sloc: cpp: 19,637; sh: 4,241; makefile: 102
file content (9 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
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);
}