diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-04-27 17:55:31 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-04-28 10:36:29 -0700 |
commit | 51318d1808cb8e1212b24c5971ce9187b2e5e8ba (patch) | |
tree | 2291932ea3432e396e107c1e3504600bac9c400a /indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl | |
parent | 6b83fabf729fd9d866fb150166cbd0af50f7f99d (diff) |
SL-19644: Bind the shader on every shadow alpha blend call
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl index 72a07fa3d0..ddb2881766 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskV.glsl @@ -32,8 +32,10 @@ mat4 getObjectSkinnedTransform(); uniform mat4 modelview_projection_matrix; #endif +#if defined(GLTF) uniform vec4[2] texture_base_color_transform; vec2 texture_transform(vec2 vertex_texcoord, vec4[2] khr_gltf_transform, mat4 sl_animation_transform); +#endif uniform float shadow_target_width; @@ -70,6 +72,10 @@ void main() passTextureIndex(); +#if defined(GLTF) vary_texcoord0 = texture_transform(texcoord0, texture_base_color_transform, texture_matrix0); +#else + vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy; +#endif vertex_color = diffuse_color; } |