mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Initial BGEM file parsing
This commit is contained in:
parent
484a360792
commit
cb77bcc4c8
@ -29,7 +29,7 @@ namespace Bgsm
|
||||
stream.read(mRefractionPower);
|
||||
if (mVersion < 10)
|
||||
{
|
||||
stream.read(mEnvMap);
|
||||
stream.read(mEnvMapEnabled);
|
||||
stream.read(mEnvMapMaskScale);
|
||||
}
|
||||
else
|
||||
@ -50,7 +50,7 @@ namespace Bgsm
|
||||
stream.read(mDiffuseMap);
|
||||
stream.read(mNormalMap);
|
||||
stream.read(mSmoothSpecMap);
|
||||
stream.read(mGreyscaleMap);
|
||||
stream.read(mGrayscaleMap);
|
||||
if (mVersion >= 3)
|
||||
{
|
||||
stream.read(mGlowMap);
|
||||
@ -140,7 +140,7 @@ namespace Bgsm
|
||||
stream.read(mCastShadows);
|
||||
stream.read(mDissolveFade);
|
||||
stream.read(mAssumeShadowmask);
|
||||
stream.read(mHasGlowMap);
|
||||
stream.read(mGlowMapEnabled);
|
||||
if (mVersion < 7)
|
||||
{
|
||||
stream.read(mEnvMapWindow);
|
||||
@ -175,5 +175,50 @@ namespace Bgsm
|
||||
void BGEMFile::read(BGSMStream& stream)
|
||||
{
|
||||
MaterialFile::read(stream);
|
||||
|
||||
stream.read(mBaseMap);
|
||||
stream.read(mGrayscaleMap);
|
||||
stream.read(mEnvMap);
|
||||
stream.read(mNormalMap);
|
||||
stream.read(mEnvMapMask);
|
||||
if (mVersion >= 10)
|
||||
{
|
||||
if (mVersion >= 11)
|
||||
{
|
||||
stream.read(mSpecularMap);
|
||||
stream.read(mLightingMap);
|
||||
stream.read(mGlowMap);
|
||||
}
|
||||
stream.read(mEnvMapEnabled);
|
||||
stream.read(mEnvMapMaskScale);
|
||||
}
|
||||
stream.read(mBlood);
|
||||
stream.read(mEffectLighting);
|
||||
stream.read(mFalloff);
|
||||
stream.read(mFalloffColor);
|
||||
stream.read(mGrayscaleToPaletteAlpha);
|
||||
stream.read(mSoft);
|
||||
stream.read(mBaseColor);
|
||||
stream.read(mBaseColorScale);
|
||||
stream.read(mFalloffParams);
|
||||
stream.read(mLightingInfluence);
|
||||
stream.read(mEnvmapMinLOD);
|
||||
stream.read(mSoftDepth);
|
||||
if (mVersion >= 11)
|
||||
{
|
||||
stream.read(mEmittanceColor);
|
||||
if (mVersion >= 15)
|
||||
{
|
||||
stream.read(mAdaptiveEmissiveExposureParams);
|
||||
if (mVersion >= 16)
|
||||
{
|
||||
stream.read(mGlowMapEnabled);
|
||||
if (mVersion >= 20)
|
||||
{
|
||||
stream.read(mEffectPbrSpecular);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ namespace Bgsm
|
||||
bool mRefraction;
|
||||
bool mRefractionFalloff;
|
||||
float mRefractionPower;
|
||||
bool mEnvMap;
|
||||
bool mEnvMapEnabled;
|
||||
float mEnvMapMaskScale;
|
||||
bool mDepthBias;
|
||||
bool mGrayscaleToPaletteColor;
|
||||
@ -58,7 +58,7 @@ namespace Bgsm
|
||||
std::string mDiffuseMap;
|
||||
std::string mNormalMap;
|
||||
std::string mSmoothSpecMap;
|
||||
std::string mGreyscaleMap;
|
||||
std::string mGrayscaleMap;
|
||||
std::string mGlowMap;
|
||||
std::string mWrinkleMap;
|
||||
std::string mSpecularMap;
|
||||
@ -110,7 +110,7 @@ namespace Bgsm
|
||||
bool mCastShadows;
|
||||
bool mDissolveFade;
|
||||
bool mAssumeShadowmask;
|
||||
bool mHasGlowMap;
|
||||
bool mGlowMapEnabled;
|
||||
bool mEnvMapWindow;
|
||||
bool mEnvMapEye;
|
||||
bool mHair;
|
||||
@ -153,7 +153,7 @@ namespace Bgsm
|
||||
float mSoftDepth;
|
||||
osg::Vec3f mEmittanceColor;
|
||||
osg::Vec3f mAdaptiveEmissiveExposureParams;
|
||||
bool mHasGlowMap;
|
||||
bool mGlowMapEnabled;
|
||||
bool mEffectPbrSpecular;
|
||||
|
||||
void read(BGSMStream& stream) override;
|
||||
|
Loading…
Reference in New Issue
Block a user