keep it linear

This commit is contained in:
JohnCorby 2024-10-31 00:34:00 -07:00
parent 90b421314b
commit 2b25c6b9f2

View File

@ -135,7 +135,8 @@ namespace NewHorizons.Utility.Files
}
}
var newTexture = new Texture2D(texture.width, texture.height, texture.format, texture.mipmapCount != 1);
// keep this linear. we do our own gamma to linear conversion
var newTexture = new Texture2D(texture.width, texture.height, texture.format, texture.mipmapCount != 1, true);
newTexture.name = key;
newTexture.SetPixels(pixels);
newTexture.Apply();