Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegionAttachment.prototype.setRegion = function (region) {
- if (region == undefined)
- return;
- this.region = region;
- var uvs = this.uvs;
- if (region.rotate) {
- uvs[2] = region.u;
- uvs[3] = region.v2;
- uvs[4] = region.u;
- uvs[5] = region.v;
- uvs[6] = region.u2;
- uvs[7] = region.v;
- uvs[0] = region.u2;
- uvs[1] = region.v2;
- }
- else {
- uvs[0] = region.u;
- uvs[1] = region.v2;
- uvs[2] = region.u;
- uvs[3] = region.v;
- uvs[4] = region.u2;
- uvs[5] = region.v;
- uvs[6] = region.u2;
- uvs[7] = region.v2;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement