MP1 material fix after MP3 refactor

This commit is contained in:
Jack Andersen 2019-11-16 15:42:36 -10:00
parent dfc9d1ddb0
commit 8ad13ff4c9
3 changed files with 5 additions and 2 deletions

View File

@ -79,8 +79,8 @@ void CMaterialPass::HashParameters(CFNV1A& rHash)
rHash.HashLong(mKColorSel);
rHash.HashLong(mKAlphaSel);
rHash.HashLong(mRasSel);
rHash.HashLong(mTevColorScale);
rHash.HashLong(mTevAlphaScale);
rHash.HashFloat(mTevColorScale);
rHash.HashFloat(mTevAlphaScale);
rHash.HashLong(mTexCoordSource);
rHash.HashLong((uint) mAnimMode);
rHash.HashData(mAnimParams, sizeof(float) * 8);

View File

@ -75,6 +75,7 @@ CMaterial* CMaterialLoader::ReadPrimeMaterial()
// Flags
pMat->mOptions = (mpFile->ReadLong() & (uint) EMaterialOption::AllMP1Settings);
pMat->mOptions.SetFlag(EMaterialOption::ColorWrite);
// Textures
uint32 NumTextures = mpFile->ReadLong();

View File

@ -8,6 +8,8 @@
#include <Common/FileIO.h>
#include <assimp/scene.h>
#include <optional>
enum class EMP3RenderConfig
{
NoBloomTransparent,