hanayik / niivue

a WebGL2 based NIFTI volume viewer.
https://hanayik.github.io/niivue
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Blends multiple overlays #107

Closed neurolabusc closed 3 years ago

neurolabusc commented 3 years ago

The colormap is now a 2D texture instead of 1D, and stores all the color lookup tables for all layers (background image and all overlays). One change that might need to be discussed is the use of gl.NEAREST which means that each layer only uses one of 256 colors, rather than using gl.LINEAR that would interpolate between colors.

blend

hanayik commented 3 years ago

@neurolabusc, Thanks for all these changes! looks amazing. I will merge this in tonight (Oxford time).