1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 16:15:31 +00:00

Add BSShaderLightingProperty abstraction

This commit is contained in:
Alexei Dobrohotov 2020-12-13 04:19:14 +03:00
parent c0b9823372
commit 085ea44af5
2 changed files with 13 additions and 0 deletions

View file

@ -111,6 +111,13 @@ void BSShaderProperty::read(NIFStream *nif)
}
}
void BSShaderLightingProperty::read(NIFStream *nif)
{
BSShaderProperty::read(nif);
if (nif->getBethVersion() <= NIFFile::BethVersion::BETHVER_FO3)
clamp = nif->getUInt();
}
void NiFogProperty::read(NIFStream *nif)
{
Property::read(nif);

View file

@ -125,6 +125,12 @@ struct BSShaderProperty : public NiShadeProperty
void read(NIFStream *nif) override;
};
struct BSShaderLightingProperty : public BSShaderProperty
{
unsigned int clamp{0u};
void read(NIFStream *nif) override;
};
struct NiDitherProperty : public Property
{
unsigned short flags;