![]() At image scale of 34x34 or 46x46, the line is gone. The other thing I noticed is that if I vary the linkSize, the artifact line is visible from only 35 to 45 pixels. I have used 200, 25 coordinates here even though the position is actually calculated at runtime to center it in its parent, but it is simplified here for brevity. The linkTexture is set as a public field from Inspector. Rect position = new Rect(200, 25, linkSize, linkSize) The code used to render this: float linkSize = 40 This image is zoomed to 300% to make the line more visible. The texture file itself does not contain such line. The texture rendered has some kind of a frame border along the bottom side of the texture. Take a look at what the shape looks like in Inkscape and in PS.īut when I draw this texture inside Unity, I get this runtime artifact: When I open the image in Photoshop, it looks the same (black background added as a PS layer below to show that the shape does not contain artifacts). The shape is then exported to PNG format in 64圆4 resolution. ![]() I have a simple shape created with Inkscape.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |