Small optimization for avatar rendering by NiranV Dean
parent
5e4f8c1185
commit
0bcf5a46a4
|
|
@ -2262,6 +2262,14 @@ void LLDrawPoolAvatar::renderRigged(LLVOAvatar* avatar, U32 type, bool glow)
|
|||
continue;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Niran's optimization
|
||||
const LLTextureEntry* tex_entry = face->getTextureEntry();
|
||||
if (tex_entry && tex_entry->getAlpha() == 0.f)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
//stop_glerror();
|
||||
|
||||
//const LLVolumeFace& vol_face = volume->getVolumeFace(te);
|
||||
|
|
@ -2273,7 +2281,8 @@ void LLDrawPoolAvatar::renderRigged(LLVOAvatar* avatar, U32 type, bool glow)
|
|||
|
||||
LLVertexBuffer* buff = face->getVertexBuffer();
|
||||
|
||||
const LLTextureEntry* tex_entry = face->getTextureEntry();
|
||||
// <FS:Ansariel> Niran's optimization
|
||||
//const LLTextureEntry* tex_entry = face->getTextureEntry();
|
||||
LLMaterial* mat = tex_entry ? tex_entry->getMaterialParams().get() : nullptr;
|
||||
|
||||
if (LLDrawPoolAvatar::sShadowPass >= 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue