Skip fur pipelines.

This commit is contained in:
Skyth 2024-11-27 14:37:36 +03:00
parent 8b6f2de67f
commit 8cbccf4b6e

View file

@ -4396,6 +4396,9 @@ static void CompileMeshPipeline(Hedgehog::Mirage::CMeshData* mesh, MeshLayer lay
auto& material = mesh->m_spMaterial;
auto& shaderList = material->m_spShaderListData;
if (strstr(shaderList->m_TypeAndName.c_str(), "Fur") != nullptr) // Skip fur, these do instancing and should not be compiled here.
return;
bool isSky = strstr(shaderList->m_TypeAndName.c_str(), "Sky") != nullptr;
bool constTexCoord = true;