From 8c3dd0f0716e63ec4a391d75c65cc8f0f79d1935 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Thu, 17 Oct 2024 22:15:46 -0500 Subject: [PATCH] [demo] Fix stage alpha transitions in story view. Release Build 11576. --- Adventures in Lestoria/VisualNovel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adventures in Lestoria/VisualNovel.cpp b/Adventures in Lestoria/VisualNovel.cpp index 343aad00..5ef53f41 100644 --- a/Adventures in Lestoria/VisualNovel.cpp +++ b/Adventures in Lestoria/VisualNovel.cpp @@ -257,7 +257,7 @@ void VisualNovel::Draw(const uint8_t backgroundAlpha){ if(backgroundFilename!=""){ float alpha=backgroundAlpha/255.f; if(transitionTime>0){ - alpha=alpha*util::lerp(0,1,1-(transitionTime/maxTransitionTime)); + alpha=alpha*util::lerp(0.f,1.f,1.f-(transitionTime/maxTransitionTime)); } if(prevBackgroundFilename!=""){ game->DrawDecal({0,-prevBackgroundScrollAmt},GFX["story_background_image_location"_S+prevBackgroundFilename].Decal(),{1.f,1.f},{255,255,255,backgroundAlpha});