This demonstration presents a 2D Texture used as a transfer function.
2DTexture with intensity and gradient are used as input.
Select a zone with a color in the top left viewer to associate this specified color to voxels.
SoVolumeRendering SoTransferFunction