summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-09-28 00:15:34 -0500
committerDave Parks <davep@lindenlab.com>2022-09-28 00:15:34 -0500
commita63fcfc9d584075bb263ccf10857852b3327be43 (patch)
tree60d7d5f76bed82086d01a55130dfb4a47c953cc9 /indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl
parent67c7a13647d7b337efc97c7c48386b0b60918915 (diff)
SL-18190 Remove some (likely) superfluous color space conversions
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl b/indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl
index 6dfb2e7cf6..a32a572461 100644
--- a/indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl
+++ b/indra/newview/app_settings/shaders/class2/windlight/gammaF.glsl
@@ -32,16 +32,15 @@ vec3 srgb_to_linear(vec3 col);
vec3 linear_to_srgb(vec3 col);
vec3 scaleSoftClipFragLinear(vec3 light)
-{
+{ // identical to non-linear version and that's probably close enough
if (no_atmo == 1)
{
return light;
}
- light = linear_to_srgb(light);
//soft clip effect:
light = 1. - clamp(light, vec3(0.), vec3(1.));
light = 1. - pow(light, vec3(gamma)); // s/b inverted already CPU-side
- return srgb_to_linear(light);
+ return light;
}
vec3 scaleSoftClipFrag(vec3 light)