Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: laurentl on April 02, 2013, 11:28:30 PM

Title: Lines where the texture repeats
Post by: laurentl on April 02, 2013, 11:28:30 PM
Can you see these orizontal lines on the yellow and black stripes? That's where the stripe repeats.
I looked at the original texture and there is no such line. The line appears on everything that repeats.
How do eliminate ?
Title: Re: Lines where the texture repeats
Post by: ArenMook on April 03, 2013, 02:50:53 PM
Give your tiled texture a 1 pixel border.
Title: Re: Lines where the texture repeats
Post by: laurentl on April 03, 2013, 03:34:44 PM
Perfect! What's the reason ?
Title: Re: Lines where the texture repeats
Post by: ArenMook on April 03, 2013, 05:17:54 PM
Tiled sprite always tiles the inner rectangle, never the outer. No border means inner rectangle equals the outer, and pixels bleed over.