Skip to content

Commit

Permalink
NWN: legal billboard fade with shader rendering
Browse files Browse the repository at this point in the history
Properly update fade alpha when rendering legal billboard with
shader render path.
  • Loading branch information
mirv-sillyfish committed Feb 21, 2019
1 parent 74da9bb commit 3e676f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/engines/nwn/gui/legal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ class FadeModel : public Graphics::Aurora::Model_NWN {
hide();
}

for (NodeList::iterator n = _currentState->rootNodes.begin();
n != _currentState->rootNodes.end(); ++n) {
(*n)->setAlpha(_fadeValue);
}
}

public:
Expand Down Expand Up @@ -121,6 +125,11 @@ class FadeModel : public Graphics::Aurora::Model_NWN {

updateFade();
}

void renderImmediate(const glm::mat4 &parentTransform) {
updateFade();
Graphics::Aurora::Model_NWN::renderImmediate(parentTransform);
}
};


Expand Down

0 comments on commit 3e676f3

Please sign in to comment.