Test screenshots through ViewportCapture: sRGB instead of the dark linear HDR frame
This commit is contained in:
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}");
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user