Closed seankmartin closed 1 month ago
@seankmartin could you share a ng link that demonstrates the feature? I tried to get a basic grayscale image out of it but I think I'm missing something
Hey @chrisj, for sure, no worries!
From the link you sent, I've created a transfer function that mimics an invlerp so you can compare here
More generally, you can add points by clicking, change their color by right clicking after selecting a color in the color picker, and remove points by shift double clicking for something like this
At the moment, the transfer function does not show any indication of the underlying data distribution, which can make creating them a little tricky. Let me know if you have questions, happy to help
Adds a new shader widget directive
transferFunction
. Transfer functions can be used to map specific data values to color and opacity values via a set of control points. In between control points, the values are linearly interpolated.A preview of the underlying lookup texture is shown in the UI panel for a transfer function.
Points are added to the panel via a click, their color is changed by setting a new color in the picker, and then right-clicking the point. Points are removed via a modifier and double-click on the point.