mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 15:09:39 +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)
|
void NiFogProperty::read(NIFStream *nif)
|
||||||
{
|
{
|
||||||
Property::read(nif);
|
Property::read(nif);
|
||||||
|
|
|
@ -125,6 +125,12 @@ struct BSShaderProperty : public NiShadeProperty
|
||||||
void read(NIFStream *nif) override;
|
void read(NIFStream *nif) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct BSShaderLightingProperty : public BSShaderProperty
|
||||||
|
{
|
||||||
|
unsigned int clamp{0u};
|
||||||
|
void read(NIFStream *nif) override;
|
||||||
|
};
|
||||||
|
|
||||||
struct NiDitherProperty : public Property
|
struct NiDitherProperty : public Property
|
||||||
{
|
{
|
||||||
unsigned short flags;
|
unsigned short flags;
|
||||||
|
|
Loading…
Reference in a new issue