mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
make all textures clamp by default instead of wrap
This commit is contained in:
parent
81b5a6b27d
commit
35b7810592
@ -36,6 +36,7 @@ namespace NewHorizons.Utility
|
||||
var data = File.ReadAllBytes(path);
|
||||
var texture = new Texture2D(2, 2, TextureFormat.RGBA32, useMipmaps);
|
||||
texture.name = Path.GetFileNameWithoutExtension(path);
|
||||
texture.wrapMode = TextureWrapMode.Clamp; // this is apparently repeat by default
|
||||
texture.LoadImage(data);
|
||||
_loadedTextures.Add(path, texture);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user