summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/windlight/gammaF.glsl
blob: 7aed1fd3b5cd52c82194cc5b751d832e9259bb99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** 
 * @file gammaF.glsl
 *
 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 * $/LicenseInfo$
 */
 
#version 120

uniform vec4 gamma;

/// Soft clips the light with a gamma correction
vec3 scaleSoftClip(vec3 light) {
	// For compatibility with lower cards. Do nothing.
	return light;
}

vec3 fullbrightScaleSoftClip(vec3 light) {
	return scaleSoftClip(light);
}