summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2023-05-22 10:42:06 -0700
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2023-05-22 10:42:06 -0700
commitda72081582c3fd376e228cf0fceaef2ecb1948a9 (patch)
tree2464082b292e064c7a9212a6fd945537684d21b5 /indra
parentad4118f6ceaf1c22b22d58825924aad5575319f9 (diff)
Just a couple of tweaks to settings.
DRTVWR-583
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/settings.xml4
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/screenSpaceReflUtil.glsl4
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 @@
<key>Type</key>
<string>F32</string>
<key>Value</key>
- <real>0.02</real>
+ <real>0.015</real>
</map>
<key>RenderScreenSpaceReflectionDepthRejectBias</key>
<map>
@@ -9206,7 +9206,7 @@
<key>Type</key>
<string>S32</string>
<key>Value</key>
- <integer>4</integer>
+ <integer>8</integer>
</map>
<key>RenderBumpmapMinDistanceSquared</key>
<map>
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;