Added "support" for loading XRAY material passes

This commit is contained in:
parax0 2015-07-28 11:25:51 -04:00
parent 56d132c194
commit 7946f09eae
1 changed files with 9 additions and 0 deletions

View File

@ -561,6 +561,15 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
pPass->SetAlphaOutput(ePrevReg); pPass->SetAlphaOutput(ePrevReg);
} }
// X-Ray - since we don't support X-Ray previews, no effect
else if (Type == "XRAY")
{
pPass->SetColorInputs(eZeroRGB, eZeroRGB, eZeroRGB, ePrevRGB);
pPass->SetAlphaInputs(eZeroAlpha, eZeroAlpha, eZeroAlpha, ePrevAlpha);
pPass->SetColorOutput(ePrevReg);
pPass->SetAlphaOutput(ePrevReg);
}
// Toon? Don't know what it's for but got TEV setup from shader dumps // Toon? Don't know what it's for but got TEV setup from shader dumps
else if (Type == "TOON") else if (Type == "TOON")
{ {