|visits||member for||2 years, 5 months|
|seen||Nov 24 '12 at 17:25|
HLSL Pixel Shader that does palette swap
pastebin.com/TBWvjrqE Ok, I have created a 4x1 png and inserted 4 different coloured pixels. I have changed index from 0 to 3 (or any value for that fact) but it always display the colour of the first pixel. If i change index with the var coords in the tex1D method, and move my sprite, it cycles through the colours when I move, but displays the colour of the first pixel when stationary. Do you have any idea why this is happening?