Hi all,
I am trying to calculate the uvs for a mesh i generate in code. Its a very simple circle (2d)
[31423-circle.png*_|31423]
and I want to texture it such that a texture like this
[31431-stop.png*_|31431]
i am trying to work out the uv like this
uvs <em>= new Vector2((verts_.x+radius)/(2*radius) ,_</em>
(verts_.y+radius)/(2*radius));_
but this just ends in a very distorted image.
Can anyone see the flaw?
*
*