mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Reduce damage flash vignette opacity for subtler combat feedback
Peak alpha reduced from 180 to 100 (71% → 39%) so the red edge flash is noticeable but less intrusive during combat.
This commit is contained in:
parent
6cf511aa7f
commit
d70db7fa0b
1 changed files with 1 additions and 1 deletions
|
|
@ -723,7 +723,7 @@ void GameScreen::render(game::GameHandler& gameHandler) {
|
|||
ImGuiIO& io = ImGui::GetIO();
|
||||
const float W = io.DisplaySize.x;
|
||||
const float H = io.DisplaySize.y;
|
||||
const int alpha = static_cast<int>(damageFlashAlpha_ * 180.0f);
|
||||
const int alpha = static_cast<int>(damageFlashAlpha_ * 100.0f);
|
||||
const ImU32 edgeCol = IM_COL32(200, 0, 0, alpha);
|
||||
const ImU32 fadeCol = IM_COL32(200, 0, 0, 0);
|
||||
const float thickness = std::min(W, H) * 0.12f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue