Skip to content

Commit 0d45b4f

Browse files
authored
Changed the protection level for Texture2D variable defined in TransferFunction.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)
1 parent 602bddb commit 0d45b4f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Assets/Scripts/TransferFunction/TransferFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class TransferFunction : ScriptableObject
1212
[SerializeField]
1313
public List<TFAlphaControlPoint> alphaControlPoints = new List<TFAlphaControlPoint>();
1414

15-
private Texture2D texture = null;
15+
protected Texture2D texture = null;
1616
private Color[] tfCols;
1717

1818
private const int TEXTURE_WIDTH = 1024;

CREDITS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ Async loading
2020
Modified shader to handle stereo rendering.
2121
- [Juan Pablo Montoya](https://github.com/JuanPabloMontoya271)
2222
Overlay Segmentations - initial implementation
23+
- [Vijay Kalivarapu](https://github.com/kvijaykiran)
24+
Texture2D variable in TransferFunction changed to protected - to allow for custom texture creation
2325

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

0 commit comments

Comments
 (0)