summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl
blob: 980def6443aba0136bd876eac59877c4acd288a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** 
 * @file luminanceF.glsl
 *
 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 * $/LicenseInfo$
 */
 


#extension GL_ARB_texture_rectangle : enable

uniform sampler2DRect lightMap;
uniform sampler2DRect diffuseRect;

varying vec2 vary_fragcoord;
void main() 
{
	float i = texture2DRect(lightMap, vary_fragcoord.xy).r;
	gl_FragColor.rgb = vec3(i);
	gl_FragColor.a = 1.0;
}