summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAF.glsl
blob: 6639f88047dd0332df50ee6c967046e1939dc4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** 
 * @file glowcombineFXAAF.glsl
 *
 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 * $/LicenseInfo$
 */
 
#extension GL_ARB_texture_rectangle : enable

uniform sampler2D glowMap;
uniform sampler2DRect screenMap;

uniform vec2 screen_res;
varying vec2 vary_tc;

void main() 
{
	vec3 col = texture2D(glowMap, vary_tc).rgb +
					texture2DRect(screenMap, vary_tc*screen_res).rgb;

	
	gl_FragColor = vec4(col.rgb, dot(col.rgb, vec3(0.299, 0.587, 0.144)));
}