Start of gamma correction

This commit is contained in:
Simon Lübeß
2022-01-15 17:50:52 +01:00
parent 6a55108a37
commit 44fe2c3281
7 changed files with 176 additions and 3 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ namespace GlitchyEngine.Renderer
Debug.Assert(errorCode == 0, "Failed to load png File");
Texture2DDesc desc = .(width, height, .R8G8B8A8_UNorm_SRGB, 1, 1, .Immutable);
// TODO: load as SRGB because PNGs are usually not stored as linear
//Texture2DDesc desc = .(width, height, .R8G8B8A8_UNorm_SRGB, 1, 1, .Immutable);
Texture2DDesc desc = .(width, height, .R8G8B8A8_UNorm, 1, 1, .Immutable);
PrepareTexturePlatform(desc, false);