diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-12-04 16:50:06 -0600 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2023-12-04 16:50:06 -0600 |
commit | 6472b75bcd70470fe5775d1cf6eb70a75b3d76e5 (patch) | |
tree | 4fae5abd39b9af7bad0f6ed55b651d87fa3bfc3b /indra/newview/app_settings/shaders/class2 | |
parent | c573d27e5baf23adbc14153c4d65a581f55febb4 (diff) |
SL-20611 Followup -- fix edge cases with transparent objects around eye/object above/below water.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl index 07fa5cd01c..acd32a81b3 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl @@ -65,14 +65,11 @@ uniform vec3 light_diffuse[8]; void waterClip(vec3 pos); -vec4 applyWaterFogViewLinear(vec3 pos, vec4 color); - vec3 srgb_to_linear(vec3 c); vec3 linear_to_srgb(vec3 c); vec2 encode_normal (vec3 n); -vec3 atmosFragLightingLinear(vec3 light, vec3 additive, vec3 atten); - +vec4 applySkyAndWaterFog(vec3 pos, vec3 additive, vec3 atten, vec4 color); void calcAtmosphericVarsLinear(vec3 inPositionEye, vec3 norm, vec3 light_dir, out vec3 sunlit, out vec3 amblit, out vec3 atten, out vec3 additive); #ifdef HAS_SUN_SHADOW @@ -283,9 +280,7 @@ void main() // sum local light contrib in linear colorspace color.rgb += light.rgb; - color.rgb = atmosFragLightingLinear(color.rgb, additive, atten); - - color = applyWaterFogViewLinear(pos.xyz, color); + color.rgb = applySkyAndWaterFog(pos.xyz, additive, atten, color).rgb; #endif // #else // FOR_IMPOSTOR |