diff options
author | Dave Parks <davep@lindenlab.com> | 2023-01-11 11:28:45 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-01-11 11:28:45 -0600 |
commit | b4f53334141b179bdb1762636ce313f14d9e2b10 (patch) | |
tree | e03a3ec75618c9039f85771fc17ca36bcc453e8c /indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl | |
parent | cd1e7da099b66cbeb510d169a5415e57b617cd37 (diff) |
SL-18869 Touch up -- Prune "post_pos" from shadow shaders that don't need it and fix non-standard gl_Position z values
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl b/indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl index e472a75304..3102c870fc 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/treeShadowV.glsl @@ -26,20 +26,15 @@ uniform mat4 texture_matrix0; uniform mat4 modelview_projection_matrix; -ATTRIBUTE vec3 position; -ATTRIBUTE vec2 texcoord0; +in vec3 position; +in vec2 texcoord0; -VARYING vec4 post_pos; -VARYING vec2 vary_texcoord0; +out vec2 vary_texcoord0; void main() { //transform vertex - vec4 pos = modelview_projection_matrix*vec4(position.xyz, 1.0); - - post_pos = pos; - - gl_Position = vec4(pos.x, pos.y, pos.w*0.5, pos.w); + gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0); vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy; } |