diff options
author | Graham Linden <graham@lindenlab.com> | 2019-02-04 10:22:55 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-02-04 10:22:55 -0800 |
commit | 1d1fcb451cc99b5ee2efbe1fdf38a0607233a2d8 (patch) | |
tree | d77ac6df6093a1ccfdc328398dc441a8481a0c6f /indra/newview/app_settings/shaders/class1 | |
parent | 6eb180f790c248005bafb8cfb87bb5f575ee129e (diff) |
SL-10459
Use gl_FragDepth on deferred sun disc to fix z-fighting with sky dome and get layering of sky/stars/sun/moon/clouds correct.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/sunDiscF.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/sunDiscF.glsl b/indra/newview/app_settings/shaders/class1/deferred/sunDiscF.glsl index c66f3f62b2..5bb2020971 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/sunDiscF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/sunDiscF.glsl @@ -57,5 +57,7 @@ void main() frag_data[0] = c; frag_data[1] = vec4(0.0f); frag_data[2] = vec4(0.0, 1.0, 0.0, 1.0); + + gl_FragDepth = 0.9997f; } |