Texture offset issue.

Hey!

So, I’ve got a texture which shows up with black lines along the border, as such:

Imgur

I’ve tried adjusting the image import settings so that it clamps, which resolves the issue of the line on top. But then, when I use the texture offset (to create a scrolling background), the picture obviously won’t wrap correctly–instead it just repeats the last pixel, which doesn’t allow me to scroll the background.

Is there a way to fix this, or do I have to clamp the image and then just write a script that instantiates and destroys new background planes every few seconds, as a workaround?

Many thanks,

Simon

For real, graphics cards clamp on x and y independently, but Unity’s texture widget only allows you to clamp both or none. Maybe you can clamp just y using a custom shader.

You could try not clamping, but scaling y by maybe 1.05 – just enough to hopefully push the line off of the top edge.