MP1 material fix after MP3 refactor
This commit is contained in:
parent
dfc9d1ddb0
commit
8ad13ff4c9
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include <Common/FileIO.h>
|
||||
#include <assimp/scene.h>
|
||||
|
||||
#include <optional>
|
||||
|
||||
enum class EMP3RenderConfig
|
||||
{
|
||||
NoBloomTransparent,
|
||||
|
|
Loading…
Reference in New Issue