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

@@ -6,6 +6,7 @@ using Cthangover.Core.Bootstrap;
using Cthangover.Core.Mods;
using Cthangover.Core.Settings;
using Cthangover.Core.Utils;
using Cthangover.Mods.Interface.View;
using Godot;
namespace Mods.DisplaySettingsTest
@@ -203,7 +204,7 @@ namespace Mods.DisplaySettingsTest
var dir = ProjectSettings.GlobalizePath(shotsDir);
Directory.CreateDirectory(dir);
var path = Path.Combine(dir, name + ".png");
GetViewport().GetTexture().GetImage().SavePng(path);
ViewportCapture.SavePng(GetViewport(), path);
GameLogger.Log("TEST", $"DisplaySettingsTest: screenshot {path}");
}