mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
DONT keep it linear
This commit is contained in:
parent
2ff4d909e6
commit
14ad72eef7
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user