I am trying to get my UV co-ords working. Below is a snippit of code I am using to generate a triangles on a mesh, however the texture appears to be sheared instead of square.
--
/ /
--
Please help.. Sniff Sniff
--
/ /
--
v0=AddVertex(s_g1,(tempx*4)-((width/2)*4) ,plasma(tempx,tempy)*10 ,(tempy*4)-((width/2)*4) , 0,0) v1=AddVertex(s_g1,(tempx*4)-((width/2)*4) ,plasma(tempx,tempy+1)*10 ,(tempy*4)-((width/2)*4)+4 , 0,1) v2=AddVertex(s_g1,(tempx*4)-((width/2)*4)+4 ,plasma(tempx+1,tempy+1)*10 ,(tempy*4)-((width/2)*4)+4 , 1,0) v3=AddVertex(s_g1,(tempx*4)-((width/2)*4)+4 ,plasma(tempx+1,tempy)*10 ,(tempy*4)-((width/2)*4) , 1,1) AddTriangle(s_g1,v0,v1,v2) AddTriangle(s_g1,v0,v2,v3)
Please help.. Sniff Sniff