Files
SingularityViewer/indra/newview/app_settings/shaders/class1/windlight/gammaF.glsl

22 lines
370 B
GLSL

/**
* @file gammaF.glsl
*
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#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);
}