From 7946f09eae3143471a956039b2830899f0993707 Mon Sep 17 00:00:00 2001 From: parax0 Date: Tue, 28 Jul 2015 11:25:51 -0400 Subject: [PATCH] Added "support" for loading XRAY material passes --- Resource/factory/CMaterialLoader.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Resource/factory/CMaterialLoader.cpp b/Resource/factory/CMaterialLoader.cpp index 3bece69e..b5e968f4 100644 --- a/Resource/factory/CMaterialLoader.cpp +++ b/Resource/factory/CMaterialLoader.cpp @@ -561,6 +561,15 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat) 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 else if (Type == "TOON") {