Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Texture break when drawing with Mesh — Gideros Forum

Texture break when drawing with Mesh

hnimhnim Member
edited December 2012 in Bugs and issues
i want to implement skew function with Mesh Api. But when i add texture, it isnt smooth as i hope :(
this's my code:
local tx = Texture.new("gfx/image.png", true)
local mesh = Mesh.new() 
mesh:setVertices(1, 10, 30, 2, 100, 10, 3, 100, 100, 4, 10, 80) 
mesh:setIndexArray(1, 2, 3, 1, 3, 4) 
mesh:setTexture(tx)
mesh:setTextureCoordinates(1,0,0,2,119,0,3,119,118,4,0,119)
stage:addChild(mesh)
image

Dislikes: Exylex

ss.png 80.9K
+1 -1 (+0 / -1 )Share on Facebook

Comments

Sign In or Register to comment.