mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
fix slide textures
This commit is contained in:
parent
e743e42537
commit
b35970c471
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user