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:
parent
c0b9823372
commit
085ea44af5
2 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue