DONT keep it linear

This commit is contained in:
JohnCorby 2024-10-31 01:28:23 -07:00
parent 2ff4d909e6
commit 14ad72eef7

View File

@ -140,8 +140,10 @@ namespace NewHorizons.Utility.Files
} }
} }
// keep this linear. we do our own gamma to linear conversion // normally, you would want to keep this linear because we do our own gamma to linear conversion.
var newTexture = new Texture2D(texture.width, texture.height, texture.format, texture.mipmapCount != 1, true); // however, not doing linear makes it match more closely to the source image, which is more desireable
// change this back to true if someone complains
var newTexture = new Texture2D(texture.width, texture.height, texture.format, texture.mipmapCount != 1, linear: false);
newTexture.name = key; newTexture.name = key;
newTexture.SetPixels(pixels); newTexture.SetPixels(pixels);
newTexture.Apply(); newTexture.Apply();