MAINT-3964 FIXED Textures with Alpha won't Animate on Rigged Mesh when worn : fix in shader (mul texcoord to tex matrix), array's optimization
parent
87a2cccb3e
commit
d47efdfe03
|
|
@ -1168,7 +1168,7 @@ void LLRender::syncMatrices()
|
|||
{
|
||||
stop_glerror();
|
||||
|
||||
U32 name[] =
|
||||
static const U32 name[] =
|
||||
{
|
||||
LLShaderMgr::MODELVIEW_MATRIX,
|
||||
LLShaderMgr::PROJECTION_MATRIX,
|
||||
|
|
|
|||
|
|
@ -111,10 +111,9 @@ void main()
|
|||
|
||||
#ifdef USE_INDEXED_TEX
|
||||
passTextureIndex();
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
#else
|
||||
vary_texcoord0 = texcoord0;
|
||||
#endif
|
||||
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
|
||||
vary_norm = norm;
|
||||
vary_position = pos.xyz;
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ void LLDrawPoolAvatar::endPostDeferredAlpha()
|
|||
|
||||
void LLDrawPoolAvatar::renderPostDeferred(S32 pass)
|
||||
{
|
||||
const S32 actual_pass[] =
|
||||
static const S32 actual_pass[] =
|
||||
{ //map post deferred pass numbers to what render() expects
|
||||
2, //skinned
|
||||
4, // rigged fullbright
|
||||
|
|
|
|||
Loading…
Reference in New Issue