mirror of https://github.com/AxioDL/metaforce.git
shader tag update
This commit is contained in:
parent
58c85d8c30
commit
4ab2312d06
|
@ -675,14 +675,12 @@ bool TXTR::CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outP
|
|||
mipmap = false;
|
||||
|
||||
/* Compute mipmap levels */
|
||||
size_t numMips = 0;
|
||||
size_t numMips = 1;
|
||||
if (mipmap && CountBits(width) == 1 && CountBits(height) == 1)
|
||||
{
|
||||
size_t index = std::min(width, height);
|
||||
while (index >>= 1) ++numMips;
|
||||
}
|
||||
else
|
||||
numMips = 1;
|
||||
|
||||
if (bitDepth != 8)
|
||||
{
|
||||
|
|
|
@ -376,7 +376,7 @@ CModel::CModel(std::unique_ptr<u8[]>&& in, u32 dataLen, IObjectStore* store)
|
|||
{
|
||||
hecl::Runtime::ShaderTag tag(mat.heclIr,
|
||||
hmdlMeta.colorCount, hmdlMeta.uvCount, hmdlMeta.weightCount,
|
||||
0, mat.uvAnims.size(), true, true, true);
|
||||
0, mat.uvAnims.size(), boo::Primitive(hmdlMeta.topology), true, true, true);
|
||||
matSet.m_shaders.push_back(CGraphics::g_ShaderCacheMgr->buildShader(tag, mat.heclIr, "CMDL", ctx));
|
||||
}
|
||||
}
|
||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
|||
Subproject commit 35db2400e471e01014808e51730c091562055035
|
||||
Subproject commit e959430ebda4f94eb421fb9bbf4f5304c08be84e
|
Loading…
Reference in New Issue