We currently implement [our own GLSL mapping function](https://github.com/neuroscales/ngtools/blob/61c06ff941d669f94660b5a94fd3c9c868e3c934/ngtools/shaders.py#L373) for segmented colormaps. It might be more performant to use the [`transferFunction`](https://github.com/google/neuroglancer/blob/master/src/sliceview/image_layer_rendering.md) control instead. This should be benchmarked and, if more performant, implemented in place of the current method.
We currently implement our own GLSL mapping function for segmented colormaps.
It might be more performant to use the
transferFunctioncontrol instead.This should be benchmarked and, if more performant, implemented in place of the current method.