diff options
author | Howard Stearns <howard.stearns@gmail.com> | 2022-09-16 16:28:51 -0700 |
---|---|---|
committer | Howard Stearns <howard.stearns@gmail.com> | 2022-09-16 16:28:51 -0700 |
commit | c467d8f02a160a960eec7f71fc015c4f34f9a006 (patch) | |
tree | 27df29ec74e55203f7fc42dc3c3caeacd5d0fa71 /indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl | |
parent | 72e3262532733a7476dc5911085083d5cfde9a8f (diff) |
SL-18128 - fix #if !DEPTH_CLAMP in shaders
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl b/indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl index b8ce54bcb1..f231213ac8 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/avatarAlphaMaskShadowF.glsl @@ -1,5 +1,5 @@ /** - * @file treeShadowF.glsl + * @file avatarAlphaMaskShadowF.glsl * * $LicenseInfo:firstyear=2005&license=viewerlgpl$ * Second Life Viewer Source Code @@ -32,7 +32,7 @@ out vec4 frag_color; uniform float minimum_alpha; uniform sampler2D diffuseMap; -#if !DEPTH_CLAMP +#if !defined(DEPTH_CLAMP) VARYING vec4 post_pos; #endif @@ -59,7 +59,7 @@ void main() frag_color = vec4(1,1,1,1); -#if !DEPTH_CLAMP +#if !defined(DEPTH_CLAMP) gl_FragDepth = max(post_pos.z/post_pos.w*0.5+0.5, 0.0); #endif } |