On the picture gray areas have NaN value, i need them to be transparent.
I used lookupTable.setNanColor(1.0, 1.0, 1.0, 0), but alpha value doesn’t work.
const lookupTable = vtkColorTransferFunction.newInstance();
const preset = vtkColorMaps.getPresetByName('Cool to Warm');
lookupTable.applyColorMap(preset);
lookupTable.updateRange();
// lookupTable.addRGBPoint(0, 1.0, 0.0, 0.0);
// lookupTable.addRGBPoint(1, 0.0, 0.0, 1.0);
lookupTable.setNanColor(1.0, 1.0, 1.0, 0);
lookupTable.build();
mapper.setLookupTable(lookupTable);