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(mKColorSel);
|
||||||
rHash.HashLong(mKAlphaSel);
|
rHash.HashLong(mKAlphaSel);
|
||||||
rHash.HashLong(mRasSel);
|
rHash.HashLong(mRasSel);
|
||||||
rHash.HashLong(mTevColorScale);
|
rHash.HashFloat(mTevColorScale);
|
||||||
rHash.HashLong(mTevAlphaScale);
|
rHash.HashFloat(mTevAlphaScale);
|
||||||
rHash.HashLong(mTexCoordSource);
|
rHash.HashLong(mTexCoordSource);
|
||||||
rHash.HashLong((uint) mAnimMode);
|
rHash.HashLong((uint) mAnimMode);
|
||||||
rHash.HashData(mAnimParams, sizeof(float) * 8);
|
rHash.HashData(mAnimParams, sizeof(float) * 8);
|
||||||
|
|
|
@ -75,6 +75,7 @@ CMaterial* CMaterialLoader::ReadPrimeMaterial()
|
||||||
|
|
||||||
// Flags
|
// Flags
|
||||||
pMat->mOptions = (mpFile->ReadLong() & (uint) EMaterialOption::AllMP1Settings);
|
pMat->mOptions = (mpFile->ReadLong() & (uint) EMaterialOption::AllMP1Settings);
|
||||||
|
pMat->mOptions.SetFlag(EMaterialOption::ColorWrite);
|
||||||
|
|
||||||
// Textures
|
// Textures
|
||||||
uint32 NumTextures = mpFile->ReadLong();
|
uint32 NumTextures = mpFile->ReadLong();
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#include <Common/FileIO.h>
|
#include <Common/FileIO.h>
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
|
|
||||||
|
#include <optional>
|
||||||
|
|
||||||
enum class EMP3RenderConfig
|
enum class EMP3RenderConfig
|
||||||
{
|
{
|
||||||
NoBloomTransparent,
|
NoBloomTransparent,
|
||||||
|
|
Loading…
Reference in New Issue