A pixel shader can be used to convert a palette index and brightness into a colour via a colour map texture.