Skip to content

Commit

Permalink
KJSL: v2.1.2 Android can use native cardboard support instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Staunton-Lambert committed Aug 19, 2024
1 parent cea8a83 commit f1fe316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ void main() {

this.camera = new THREE.PerspectiveCamera(70, this.player_.currentWidth() / this.player_.currentHeight(), 1, 2000);

if (!this.isAndroidNativeCardboardSupport) {
if (!this.isAndroidNativeCardboardSupport()) {
this.orbitcontrols = new DeviceOrientationControls(this.camera);
}
this.camera.layers.enable(1);
Expand Down

0 comments on commit f1fe316

Please sign in to comment.