diff options
| author | Ptolemy <ptolemy@lindenlab.com> | 2022-06-27 16:39:14 -0700 | 
|---|---|---|
| committer | Ptolemy <ptolemy@lindenlab.com> | 2022-06-27 16:39:14 -0700 | 
| commit | 780bed6c2b012473791e01d72527d1324749bf32 (patch) | |
| tree | 79b59ae680b72182cdb823852a131085ea07b73a /indra | |
| parent | 46c817d8511428662f4e325976887e1b4f669f75 (diff) | |
SL-17274: Cleanup position
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/pbropaqueV.glsl | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueV.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueV.glsl index a2606ed771..82338069a8 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueV.glsl @@ -78,23 +78,24 @@ VARYING vec2 vary_texcoord0;  void main()  { +	vec4 pos4 = vec4(position,1.0);  #ifdef HAS_SKIN  	mat4 mat = getObjectSkinnedTransform();  	mat = modelview_matrix * mat; -	vec3 pos = (mat*vec4(position.xyz,1.0)).xyz; +	vec3 pos = (mat*pos4).xyz;  #if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND)  	vary_position = pos;  #endif -	gl_Position = projection_matrix*vec4(pos,1.0); +	gl_Position = projection_matrix*pos4;  #else  	//transform vertex -	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  +	gl_Position = modelview_projection_matrix * pos4;  #endif  	vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy; | 
