Hi,
I've a cube that I transform to a "trapezoid":
cube = new Cube( {ownCanvas:true});
cube.width=5;
cube.height=20;
cube.depth=2;
cube.vertices[0].y*=0.5;
cube.vertices[1].y*=0.5;
cube.vertices[4].y*=0.5;
cube.vertices[5].y*=0.5;
I want to apply this matrix texture:
http://marcosamedida.tecnopixel.com/texture.jpg
When my cube is a cube, the texture remains as a matrix, but when I
modify the vertices, the texture is deformed.
You can see it:
http://marcosamedida.tecnopixel.com/away3d.swf
I've also tried with TransformBitmapMaterial with globalprojections
and projectionvector, but I cannot get it.
Can anyone help me,please?