From 0fed3884c21453eac23a4de714bc87cac9e5377e Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Mon, 10 Oct 2022 10:19:36 -0500 Subject: SL-18190 Use funky distance based error correction only on water surface (revisit for general use later). --- indra/newview/app_settings/shaders/class3/environment/waterF.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/app_settings/shaders/class3/environment/waterF.glsl') diff --git a/indra/newview/app_settings/shaders/class3/environment/waterF.glsl b/indra/newview/app_settings/shaders/class3/environment/waterF.glsl index 4c361884a5..9793a0e786 100644 --- a/indra/newview/app_settings/shaders/class3/environment/waterF.glsl +++ b/indra/newview/app_settings/shaders/class3/environment/waterF.glsl @@ -103,7 +103,7 @@ vec3 transform_normal(vec3 vNt) } void sampleReflectionProbes(inout vec3 ambenv, inout vec3 glossenv, - vec3 pos, vec3 norm, float glossiness); + vec3 pos, vec3 norm, float glossiness, bool errorCorrect); vec3 getPositionWithNDC(vec3 ndc); @@ -215,7 +215,7 @@ void main() vec3 irradiance = vec3(0); vec3 radiance = vec3(0); - sampleReflectionProbes(irradiance, radiance, pos, refnorm, gloss); + sampleReflectionProbes(irradiance, radiance, pos, refnorm, gloss, true); radiance *= 0.5; irradiance = fb.rgb; -- cgit v1.2.3