mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
keep it linear
This commit is contained in:
parent
90b421314b
commit
2b25c6b9f2
@ -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.name = key;
|
||||||
newTexture.SetPixels(pixels);
|
newTexture.SetPixels(pixels);
|
||||||
newTexture.Apply();
|
newTexture.Apply();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user