Sample Texture 2D looks wrong

Hello,

For a shader I’m making, I’m using the technique where you have a small image with different colored pixels to pick a single color. In my shader, this image is wrapped onto the object with a different UV map from the main texture, and is multiplied with the main texture to give it a different color.

The texture I’m using look like this (I upscaled the image so you can see it):

The image looks like this when I import it into Unity. However, when I put it into a Sample Texture 2D shader node, it looks like this:

For some reason, all the colors were changed to white and two shades of beige. How do I fix this?

I was able to remedy this by setting the texture’s compression to “None”.