Skip to content

Commit

Permalink
Implement NifOsg::Fog::compare()
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Apr 23, 2024
1 parent a513049 commit 745be2e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/nifosg/fog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ namespace NifOsg

META_StateAttribute(NifOsg, Fog, FOG)

int compare(const StateAttribute& sa) const override
{
COMPARE_StateAttribute_Types(Fog, sa);

COMPARE_StateAttribute_Parameter(_mode);
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);

return 0;
}

void setDepth(float depth) { mDepth = depth; }
float getDepth() const { return mDepth; }

Expand Down

0 comments on commit 745be2e

Please sign in to comment.