mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fixes generated star ramps not clamping
This commit is contained in:
parent
5bda739315
commit
862bc1c797
@ -6,6 +6,7 @@ using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace NewHorizons.Utility
|
||||
{
|
||||
@ -260,6 +261,8 @@ namespace NewHorizons.Utility
|
||||
newImage.SetPixels(pixels);
|
||||
newImage.Apply();
|
||||
|
||||
newImage.wrapMode = image.wrapMode;
|
||||
|
||||
_generatedTextures.Add(newImage);
|
||||
|
||||
return newImage;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user