From 7cba9da8a1b1210b5e818b4b4c07b4c7410f56e8 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Thu, 27 Feb 2014 22:49:25 +0000 Subject: [PATCH] Fix black halo around lights by removing depth write --- Effects/surface-lights.eff | 188 +++++++++++++++++++------------------ 1 file changed, 99 insertions(+), 89 deletions(-) diff --git a/Effects/surface-lights.eff b/Effects/surface-lights.eff index 13334448a..b9bb489e4 100644 --- a/Effects/surface-lights.eff +++ b/Effects/surface-lights.eff @@ -1,7 +1,7 @@ - Effects/surface-lights - + Effects/surface-lights + light-sprite @@ -12,9 +12,9 @@ /environment/visibility-m /environment/ground-haze-thickness-m /sim/rendering/eye-altitude-m - + - + @@ -28,7 +28,7 @@ GL_ARB_point_sprite GL_ARB_point_parameters - GL_ARB_shader_objects + GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_vertex_shader GL_ARB_fragment_shader @@ -36,22 +36,22 @@ - - - 8 - DepthSortedBin - - false - - src-alpha - one-minus-src-alpha - - - gequal - 0.1 - - directional - + + + 8 + DepthSortedBin + + false + + src-alpha + one-minus-src-alpha + + + gequal + 0.1 + + directional + point point @@ -73,8 +73,8 @@ Shaders/surface-light-lightfield.frag - size - float + size + float size @@ -102,12 +102,11 @@ sampler-2d 0 - true - + true + - - + @@ -124,22 +123,25 @@ - - - 8 - DepthSortedBin - - false - - src-alpha - one-minus-src-alpha - - - gequal - 0.1 - - directional - + + + 8 + DepthSortedBin + + false + + false + + + src-alpha + one-minus-src-alpha + + + gequal + 0.1 + + directional + point point @@ -156,11 +158,10 @@ texture[0]/wrap-s texture[0]/wrap-t - + - - + @@ -174,18 +175,21 @@ - - - 8 - DepthSortedBin - - false - - src-alpha - one-minus-src-alpha - - directional - + + + 8 + DepthSortedBin + + false + + false + + + src-alpha + one-minus-src-alpha + + directional + point point @@ -196,10 +200,10 @@ texture[0]/wrap-s texture[0]/wrap-t - + - + @@ -212,47 +216,53 @@ - + min-size max-size size attenuation - - 8 - DepthSortedBin - - - src-alpha - one-minus-src-alpha - - false - directional - + + 8 + DepthSortedBin + + + false + + + src-alpha + one-minus-src-alpha + + false + directional + point point - - + + - + - - - 8 - DepthSortedBin - - false - - src-alpha - one-minus-src-alpha - - directional - + + + 8 + DepthSortedBin + + false + + false + + + src-alpha + one-minus-src-alpha + + directional + point point - - + +