Skip to content

Commit

Permalink
Changed the protection level for Texture2D variable defined in Transf…
Browse files Browse the repository at this point in the history
…erFunction.cs from private to protected. This change will allow for making 3rd party changes or customizations to transfer function creation as well as texture processing. (#267)
  • Loading branch information
kvijaykiran authored Oct 17, 2024
1 parent 602bddb commit 0d45b4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/TransferFunction/TransferFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TransferFunction : ScriptableObject
[SerializeField]
public List<TFAlphaControlPoint> alphaControlPoints = new List<TFAlphaControlPoint>();

private Texture2D texture = null;
protected Texture2D texture = null;
private Color[] tfCols;

private const int TEXTURE_WIDTH = 1024;
Expand Down
2 changes: 2 additions & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ Async loading
Modified shader to handle stereo rendering.
- [Juan Pablo Montoya](https://github.com/JuanPabloMontoya271)
Overlay Segmentations - initial implementation
- [Vijay Kalivarapu](https://github.com/kvijaykiran)
Texture2D variable in TransferFunction changed to protected - to allow for custom texture creation

Feel free to add yourself to this list when contributing to this project.

0 comments on commit 0d45b4f

Please sign in to comment.