summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-09-28 18:13:58 -0500
committerDave Parks <davep@lindenlab.com>2022-09-28 18:13:58 -0500
commit2f082bb4ee433cba857499559dbfb30886fd0fb4 (patch)
treefac68345c4d76530a7021d268e0052c4ab8ee9c0 /indra/newview/app_settings/shaders
parentd3b77a3fb7a9ad91344e88dc65d0f1c4f2776df5 (diff)
SL-18190 Parity with release viewer when reflections are disabled.
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/reflectionProbeF.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/reflectionProbeF.glsl b/indra/newview/app_settings/shaders/class2/deferred/reflectionProbeF.glsl
index a7cac6c523..878724982f 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/reflectionProbeF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/reflectionProbeF.glsl
@@ -51,7 +51,7 @@ void sampleReflectionProbesLegacy(inout vec3 ambenv, inout vec3 glossenv, inout
vec3 refnormpersp = normalize(reflect(pos.xyz, norm.xyz));
vec3 env_vec = env_mat * refnormpersp;
- legacyenv = textureCube(environmentMap, env_vec).rgb;
+ legacyenv = srgb_to_linear(textureCube(environmentMap, env_vec).rgb);
glossenv = legacyenv;
}
@@ -63,6 +63,6 @@ void applyGlossEnv(inout vec3 color, vec3 glossenv, vec4 spec, vec3 pos, vec3 no
void applyLegacyEnv(inout vec3 color, vec3 legacyenv, vec4 spec, vec3 pos, vec3 norm, float envIntensity)
{
- color = mix(color.rgb, legacyenv, envIntensity);
+ color = mix(color.rgb, legacyenv*0.5, envIntensity);
}