Skip to content

Commit

Permalink
AlchemyViewer#43: Add support for refreshing PBR textures on objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeStripyDog committed Jun 25, 2024
1 parent d3b9714 commit 50c2014
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions indra/newview/alviewermenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,15 @@ namespace
LLViewerTexture* spec_img = node->getObject()->getTESpecularMap(i);
faces_per_tex[spec_img->getID()].push_back(i);
}

LLPointer<LLGLTFMaterial> mat = node->getObject()->getTE(i)->getGLTFRenderMaterial();
if (mat.notNull())
{
for (U32 j = 0; j < LLGLTFMaterial::GLTF_TEXTURE_INFO_COUNT; ++j)
{
faces_per_tex[mat->mTextureId[j]].push_back(i);
}
}
}

for (auto const& it : faces_per_tex)
Expand Down

0 comments on commit 50c2014

Please # to comment.