Reputation
Top tag
Next privilege 15 Rep.
Flag posts
Badges
1
Newest
 Teacher
Impact
~676 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Nov
23
awarded  Teacher
Nov
22
comment 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?
Nov
22
answered HLSL Pixel Shader that does palette swap