added debug multiply to macs, added eot support to .htaccess, improved projection performance by removing some unnecessary calculations
This commit is contained in:
@@ -151,8 +151,9 @@ Matrix.prototype.translate = function(dX, dY, dZ) {
|
||||
|
||||
Matrix.prototype.project = function(v) {
|
||||
var pj = this.multiplyVector(v);
|
||||
pj.x /= pj.z / (width / 2);
|
||||
pj.y /= pj.z / (width / 2);
|
||||
var distancePerHalfScreen = (pj.z / pj.w) / (width / 2);
|
||||
pj.x /= distancePerHalfScreen;
|
||||
pj.y /= distancePerHalfScreen;
|
||||
return pj;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user