mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-24 21:45:31 -04:00
Add BSShaderLightingProperty abstraction
This commit is contained in:
parent
c0b9823372
commit
085ea44af5
@ -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…
x
Reference in New Issue
Block a user