Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-09-21 13:34:59 +08:00
parent 7f7324bdb8
commit 4966ba353a
29 changed files with 1528 additions and 1981 deletions

View File

@@ -92,8 +92,9 @@ namespace Ichni.RhythmGame
float endTime = index >= blendTimeList.Count ? finalTime : blendTimeList[index];
if (songTime >= startTime && songTime < endTime && currentSkyboxIndex != index)
{
bool isSmaller = index < currentSkyboxIndex;
currentSkyboxIndex = index;
if (currentSkyboxIndex != 0) skyboxBlender.blendSpeed = blendSpeedList[currentSkyboxIndex - 1];
if (currentSkyboxIndex != 0) skyboxBlender.blendSpeed = isSmaller ? 9999f : blendSpeedList[currentSkyboxIndex - 1];
skyboxBlender.Blend(currentSkyboxIndex, false);
DynamicGI.UpdateEnvironment();
}