The best is probably for you to find in the code some examples that use vtkColorTransferFunction
. You will see how you can do the color mapping (convert a scalar to a color) in the GPU (the colortransferfunction is a mapper property).
The best is probably for you to find in the code some examples that use vtkColorTransferFunction
. You will see how you can do the color mapping (convert a scalar to a color) in the GPU (the colortransferfunction is a mapper property).