mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 16:39:41 +00:00
Use osg::Fog::compare in NifOsg::Fog::compare
This commit is contained in:
parent
745be2e91b
commit
7f13f6a4e9
1 changed files with 3 additions and 9 deletions
|
@ -17,16 +17,10 @@ namespace NifOsg
|
||||||
|
|
||||||
int compare(const StateAttribute& sa) const override
|
int compare(const StateAttribute& sa) const override
|
||||||
{
|
{
|
||||||
COMPARE_StateAttribute_Types(Fog, sa);
|
if (const int base = osg::Fog::compare(sa); base != 0)
|
||||||
|
return base;
|
||||||
COMPARE_StateAttribute_Parameter(_mode);
|
const Fog& rhs = static_cast<const Fog&>(sa);
|
||||||
COMPARE_StateAttribute_Parameter(_density);
|
|
||||||
// _start and _end are intentionally ignored as they go unused
|
|
||||||
COMPARE_StateAttribute_Parameter(_color);
|
|
||||||
COMPARE_StateAttribute_Parameter(_fogCoordinateSource);
|
|
||||||
COMPARE_StateAttribute_Parameter(_useRadialFog);
|
|
||||||
COMPARE_StateAttribute_Parameter(mDepth);
|
COMPARE_StateAttribute_Parameter(mDepth);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue