The other input is a structured buffer contained the palette as uint array.

We then sample the texture to get the palette index and read the packed color from the palette. It is then unpacked into a float4.

Before I used R8_UINT texture and Load() but using UNORM permit more filtering options.
Post image

Comments