fix slide textures

This commit is contained in:
Mister_Nebula 2022-04-26 19:39:21 +01:00
parent e743e42537
commit b35970c471
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ internal class QSBPrisonCellElevator : WorldObject<PrisonCellElevator>, IQSBDrop
var lightComponent = Light.AddComponent<Light>();
lightComponent.type = LightType.Spot;
lightComponent.range = 10;
lightComponent.spotAngle = 60;
lightComponent.spotAngle = 50;
lightComponent.shadows = LightShadows.Soft;
lightComponent.shadowStrength = 1f;
lightComponent.shadowResolution = UnityEngine.Rendering.LightShadowResolution.Low;

View File

@ -20,7 +20,7 @@ public static class TextureHelper
}
var data = File.ReadAllBytes(path);
var tex = new Texture2D(1, 1);
var tex = new Texture2D(1, 1, TextureFormat.RGB24, false);
tex.LoadImage(data);
tex.wrapMode = wrapMode;
return tex;