diff options
author | Dave Parks <davep@lindenlab.com> | 2022-05-16 16:02:38 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-05-16 16:02:38 -0500 |
commit | c7ddba7eb4b4e47b0a9371fef41339f7941eefdb (patch) | |
tree | ca1d7d1be44c04fd676f151e8a62f066f3862ec5 /indra/newview/app_settings/shaders/class1/deferred | |
parent | 63095005578007345d9916ebc6855246cdb08c7c (diff) |
SL-17417 Fix for incorrect reflection orientation on some moving child prims.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyV.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyV.glsl b/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyV.glsl index 2c139430e7..3bd6b693fa 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyV.glsl @@ -25,6 +25,7 @@ uniform mat3 normal_matrix; uniform mat4 texture_matrix0; +uniform mat4 texture_matrix1; uniform mat4 modelview_matrix; uniform mat4 modelview_projection_matrix; @@ -71,7 +72,7 @@ void main() vec3 ref = reflect(pos.xyz, -norm); vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy; - vary_texcoord1 = transpose(normal_matrix) * ref.xyz; + vary_texcoord1 = (texture_matrix1 * vec4(ref,1.0)).xyz; calcAtmospherics(pos.xyz); |