Skip to content

Commit

Permalink
MP1 material fix after MP3 refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Nov 17, 2019
1 parent dfc9d1d commit 8ad13ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Resource/CMaterialPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/Core/Resource/Factory/CMaterialLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/Core/Resource/Factory/CMaterialLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <Common/FileIO.h>
#include <assimp/scene.h>

#include <optional>

enum class EMP3RenderConfig
{
NoBloomTransparent,
Expand Down

0 comments on commit 8ad13ff

Please sign in to comment.