webvr-polyfill
Advanced tools
Comparing version 0.9.19 to 0.9.20
{ | ||
"name": "webvr-polyfill", | ||
"version": "0.9.19", | ||
"version": "0.9.20", | ||
"homepage": "https://github.com/borismus/webvr-polyfill", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -16,5 +16,2 @@ /* | ||
/** | ||
* TODO: Fix up all "new THREE" instantiations to improve performance. | ||
*/ | ||
var SensorSample = require('./sensor-sample.js'); | ||
@@ -48,5 +45,10 @@ var MathUtil = require('../math-util.js'); | ||
// Set the quaternion to be looking in the -z direction by default. | ||
this.filterQ = new MathUtil.Quaternion(1, 0, 0, 1); | ||
// Set default look direction to be in the correct direction. | ||
if (Util.isIOS()) { | ||
this.filterQ = new MathUtil.Quaternion(-1, 0, 0, 1); | ||
} else { | ||
this.filterQ = new MathUtil.Quaternion(1, 0, 0, 1); | ||
} | ||
this.previousFilterQ = new MathUtil.Quaternion(); | ||
this.previousFilterQ.copy(this.filterQ); | ||
@@ -53,0 +55,0 @@ // Orientation based on the accelerometer. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
779938
12863