diff options
author | Oz Linden <oz@lindenlab.com> | 2013-11-26 16:09:43 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-11-26 16:09:43 -0500 |
commit | fe3a9306233d8fddbbb7d961c398e51d49c29b42 (patch) | |
tree | 1875aa113b8b356b26eada5bb64cbf5b0d15824d /indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl | |
parent | 335810246253c04ac3c2ab4f5db556991ed717d6 (diff) | |
parent | 52ec6f9af029797615a80e5a889572c18914d56e (diff) |
merge fix for STORM-1984
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl b/indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl index 12996cf0d6..39632d0cef 100755 --- a/indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl +++ b/indra/newview/app_settings/shaders/class1/avatar/objectSkinV.glsl @@ -34,17 +34,17 @@ mat4 getObjectSkinnedTransform() vec4 w = fract(weight4); vec4 index = floor(weight4); - + index = min(index, vec4(31.0)); index = max(index, vec4( 0.0)); float scale = 1.0/(w.x+w.y+w.z+w.w); w *= scale; - - mat4 mat = matrixPalette[int(index.x)]*w.x; - mat += matrixPalette[int(index.y)]*w.y; - mat += matrixPalette[int(index.z)]*w.z; - mat += matrixPalette[int(index.w)]*w.w; + + mat4 mat = matrixPalette[int(index.x)]*w.x; + mat += matrixPalette[int(index.y)]*w.y; + mat += matrixPalette[int(index.z)]*w.z; + mat += matrixPalette[int(index.w)]*w.w; return mat; } |