diff options
author | Dave Parks <davep@lindenlab.com> | 2023-01-10 19:49:18 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-01-10 19:49:18 -0600 |
commit | 493d501cde13abf1ac4164cd77286f068da3a62c (patch) | |
tree | d325c3e445edd197a5afb777c138f5265355d6ec /indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl | |
parent | 28c245b071e0dfdbacce6f287eb80f57f850d857 (diff) |
SL-18869 Optimizations -- Revive "Frame Profile" and GL_DEPTH_CLAMP. Remove usage of gl_FragDepth from shadow shaders.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl index 72bd0f0f34..e83cda89ef 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl @@ -25,21 +25,9 @@ uniform mat4 modelview_projection_matrix; -ATTRIBUTE vec3 position; - -VARYING vec4 post_pos; +in vec3 position; void main() { - //transform vertex - vec4 pos = modelview_projection_matrix*vec4(position.xyz, 1.0); - - post_pos = pos; - -#if !defined(DEPTH_CLAMP) - gl_Position = vec4(pos.x, pos.y, pos.w*0.5, pos.w); -#else - gl_Position = pos; -#endif - + gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0); } |