Skip to content

Commit

Permalink
Exposed the local gradient for realtime gradient changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyTheunissen committed Jul 19, 2024
1 parent 039a1a2 commit b8e7bd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Runtime/Gradients/GradientTexture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public enum Modes
alphaKeys = new[] { new GradientAlphaKey(1, 0), new GradientAlphaKey(1, 1) },
colorKeys = new[] { new GradientColorKey(Color.black, 0), new GradientColorKey(Color.white, 1) },
};

public Gradient GradientLocal => gradientLocal;

[SerializeField] private int resolution = DefaultResolution;
[SerializeField] private TextureWrapMode wrapMode = DefaultWrapMode;
Expand Down

0 comments on commit b8e7bd5

Please sign in to comment.