summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorHoward Stearns <howard.stearns@gmail.com>2022-08-26 09:50:08 -0700
committerHoward Stearns <howard.stearns@gmail.com>2022-08-26 09:50:08 -0700
commit1b5c13fd446dbf9193aca9baa66f62edb1393875 (patch)
tree890beda21760a9be16afe868689c9099fe6202ca /indra/newview
parenta8d122365db280d04552dbc23db9c43dbf1cb400 (diff)
parent509cfcad3167d6ea464c5bb19397daaf537a5594 (diff)
Merge branch 'brad/opengl-core-profile-mac' of bitbucket.org:lindenlab/viewer into SL-17967
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/multiPointLightF.glsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/multiPointLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/multiPointLightF.glsl
index 1175f3e644..91d041cafa 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/multiPointLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/multiPointLightF.glsl
@@ -76,6 +76,10 @@ void main()
vec3 final_color = vec3(0, 0, 0);
vec2 tc = getScreenXY(vary_fragcoord);
vec3 pos = getPosition(tc).xyz;
+ if (pos.z < far_z)
+ {
+ discard;
+ }
float envIntensity; // not used for this shader
vec3 n;
@@ -124,10 +128,6 @@ void main()
}
else
{
- if (pos.z < far_z)
- {
- discard;
- }
float noise = texture2D(noiseMap, tc/128.0).b;