修改配置

This commit is contained in:
xf
2018-05-28 09:49:45 +08:00
parent 1e40bb624f
commit 0f41ff6562
64 changed files with 3454 additions and 6902 deletions

20
dist/RotateUV.js vendored Normal file
View File

@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Matrix2_1 = require("./Matrix2");
const THREE = require("three");
function RotateUVs(geo) {
let roMat = new Matrix2_1.Matrix2();
roMat.set(0, -1, 1, 0);
let addV = new THREE.Vector2(1, 0);
for (let uvs of geo.faceVertexUvs) {
for (let uv of uvs) {
for (let v of uv) {
roMat.applyVector(v);
v.add(addV);
}
}
}
geo.uvsNeedUpdate = true;
}
exports.RotateUVs = RotateUVs;
//# sourceMappingURL=RotateUV.js.map