From da72081582c3fd376e228cf0fceaef2ecb1948a9 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Geenz\" Goodman" Date: Mon, 22 May 2023 10:42:06 -0700 Subject: Just a couple of tweaks to settings. DRTVWR-583 --- indra/newview/app_settings/settings.xml | 4 ++-- .../app_settings/shaders/class3/deferred/screenSpaceReflUtil.glsl | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index df36c51f55..234a48639b 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9184,7 +9184,7 @@ Type F32 Value - 0.02 + 0.015 RenderScreenSpaceReflectionDepthRejectBias @@ -9206,7 +9206,7 @@ Type S32 Value - 4 + 8 RenderBumpmapMinDistanceSquared diff --git a/indra/newview/app_settings/shaders/class3/deferred/screenSpaceReflUtil.glsl b/indra/newview/app_settings/shaders/class3/deferred/screenSpaceReflUtil.glsl index 0f1b33f711..f75c69e262 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/screenSpaceReflUtil.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/screenSpaceReflUtil.glsl @@ -320,6 +320,10 @@ float tapScreenSpaceReflection(int totalSamples, vec2 tc, vec3 viewPos, vec3 n, float vignette = clamp((abs(screenpos.x) * abs(screenpos.y)) * 64,0, 1); vignette *= clamp((dot(normalize(viewPos), n) * 0.5 + 0.5) * 16, 0, 1); + float zFar = 32.0; + vignette *= clamp(1.0+(viewPos.z/zFar), 0.0, 1.0); + + vec4 hitpoint; glossiness = 1 - glossiness; -- cgit v1.2.3