Does anyone know how to rotate VUs coords
i create my geometry in code below is a simplified version of it.
i would like to know how i can rotate the UV map by -90, 180, 90 without rotating the mesh this is for uv tiling
any help would be appreciated links etc
thanks.
var geomerty:Geometry = new Geometry();
var subGeo:SubGeometry = new SubGeometry();
var verts:Vector.<Number> = new Vector.<Number>;
verts.push(-32,0,-32);
verts.push(-32,0,32);
verts.push(32,0,-32);
verts.push(32,0,32);
var uvs:Vector.<Number> = new Vector.<Number>;
uvs.push(0,0);
uvs.push(0,0.5);
uvs.push(0.5,0);
uvs.push(0.5,0.5);
var indices:Vector.<uint> = new Vector.<uint>;
indices.push(0,2,1);
indices.push(1,2,3);
subGeo.updateVertexData(verts);
subGeo.updateUVData(uvs);
subGeo.updateIndexData(indices);
geometry.addSubGeometry(subGeo);