mirror of
https://git.allpurposem.at/mat/WiggleWobble.git
synced 2025-12-23 13:01:28 +01:00
fix: attempt to preserve window alpha a bit better, tho it has artifacts
This commit is contained in:
parent
e22c5db68a
commit
0a0161ee62
@ -174,7 +174,7 @@ void hkRenderWindow(
|
||||
pWindow->m_floatingOffset -= Vector2D {windowBox.x, windowBox.y};
|
||||
|
||||
// HACK: otherwise renderWindow will set an opaque region at top-left
|
||||
pWindow->m_activeInactiveAlpha->setValueAndWarp(0.999f);
|
||||
pWindow->m_alpha->setValueAndWarp(pWindow->m_alpha->goal() - 0.001f);
|
||||
|
||||
pRenderer->m_renderPass.add(makeUnique<CBindOwnFramebufferPassElement>(&windowFB));
|
||||
}
|
||||
@ -194,8 +194,8 @@ void hkRenderWindow(
|
||||
if (shouldWobble) {
|
||||
pWindow->m_floatingOffset += Vector2D {windowBox.x, windowBox.y};
|
||||
|
||||
// FIXME: restore full opacity, which is uh wrong
|
||||
pWindow->m_activeInactiveAlpha->setValueAndWarp(1.f);
|
||||
// HACK: this might interfere with anims, but it's all I got
|
||||
pWindow->m_alpha->setValueAndWarp(pWindow->m_alpha->goal() + 0.001f);
|
||||
|
||||
pRenderer->m_renderPass.add(
|
||||
makeUnique<CRenderWobblyWindowPassElement>(pOldFramebuffer, pWindow)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user