Issue with weird lines on textures

Hello, I have a problem with weird lines that appear on some textures when filtering in shader is set either to LINEAR or ANISOTROPIC on Android. When I change it to POINT, the lines disappear, but quality takes a large hit, especially when camera is close to the textures. Do you know how to fix this issue?

Relevant lines from shader code:

Texture xTexture;
sampler TextureSampler = sampler_state { texture = <xTexture>; magfilter = POINT; minfilter = POINT; mipfilter=POINT; AddressU = WRAP; AddressV = WRAP;};

I’ve marked these strange lines with arrows on the screen below.

If that’s the edge of a polygon then it’s probably the edges of your texture doing that.
On the edge of a drawn polygon sampling into nothing will produce opaque dark light or grey lines point fixes it because its a one to one mapping.

Try setting clamp to pull them back into valid pixel ranges, then try it with anisotropic.
If that works mirror might work as well and may produce better results.

At least you can see it here i had this problem with a depth cube it was a pain to figure out what was going on.

1 Like

Thanks a lot, that was very helpful :slight_smile: