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.
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.