Emulating palette based graphics in WebGL v.s. Canvas 2D
You can use a texture as your palette and a different texture as your image. You then get a value from the image texture and use it too look up a color from the palette texture. The palette texture is 256×1 RGBA pixels. Your image texture is any size you want but just a single … Read more