From b4c8226e15a9ca2ea06a21e46a9434fb3e75b822 Mon Sep 17 00:00:00 2001 From: parax0 Date: Sat, 30 Jan 2016 00:17:19 -0700 Subject: [PATCH] Pass through LURD and LRLD material passes with no effect --- src/Core/Resource/Factory/CMaterialLoader.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Core/Resource/Factory/CMaterialLoader.cpp b/src/Core/Resource/Factory/CMaterialLoader.cpp index 4d977d09..7200a328 100644 --- a/src/Core/Resource/Factory/CMaterialLoader.cpp +++ b/src/Core/Resource/Factory/CMaterialLoader.cpp @@ -556,7 +556,16 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat) pPass->SetColorInputs(eZeroRGB, ePrevRGB, eTextureRGB, eZeroRGB); pPass->SetAlphaInputs(eZeroAlpha, eZeroAlpha, eZeroAlpha, eTextureAlpha); pPass->SetColorOutput(ePrevReg); + pPass->SetAlphaOutput(ePrevReg); + } + + // LURD and LRLD are unknown and don't seem to do anything + else if ((Type == "LURD") || (Type == "LRLD")) + { + pPass->SetColorInputs(eZeroRGB, eZeroRGB, eZeroRGB, ePrevRGB); + pPass->SetAlphaInputs(eZeroAlpha, eZeroAlpha, eZeroAlpha, ePrevAlpha); pPass->SetColorOutput(ePrevReg); + pPass->SetAlphaOutput(ePrevReg); } else if (Type == "CUST") {}