summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/objects/bumpF.glsl
blob: 587ab93a80e20a25532451268df65485d4b8179c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** 
 * @file bumpF.glsl
 *
 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 * $/LicenseInfo$
 */
 
uniform sampler2D texture0;
uniform sampler2D texture1;

void main() 
{
	float tex0 = texture2D(texture0, gl_TexCoord[0].xy).a;
	float tex1 = texture2D(texture1, gl_TexCoord[1].xy).a;

	gl_FragColor = vec4(tex0+(1.0-tex1)-0.5);
}