Test screenshots through ViewportCapture: sRGB instead of the dark linear HDR frame

This commit is contained in:
cthangover committed 2026-10-23 09:03:56 +02:00
1 parent 9ea7cd65e2
commit a090f74d07
2 files changed
+4 -2

No files matched your search

@@ -9,6 +9,7 @@ using Cthangover.Core.Games;
using Cthangover.Core.Mods;
using Cthangover.Core.Settings;
using Cthangover.Core.Utils;
using Cthangover.Mods.Interface.View;
using Godot;
namespace Mods.MenuFlowTest
@@ -191,7 +192,7 @@ namespace Mods.MenuFlowTest
return;
dir = ProjectSettings.GlobalizePath(dir);
Directory.CreateDirectory(dir);
GetViewport().GetTexture().GetImage().SavePng(Path.Combine(dir, name + ".png"));
ViewportCapture.SavePng(GetViewport(), Path.Combine(dir, name + ".png"));
}
private Button DeleteButton()