-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/size and controls #6
Conversation
@@ -1,51 +0,0 @@ | |||
export default { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This was never used
- Most of the comments are out of date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did WebVR Boilerplayer not look for it globally? Or is it because the config was being set too late? (See my comment about import ordering)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't possible to set because of the file we were using before (webvr-polyfill/build/webvr-polyfill
)
src/plugin.js
Outdated
|
||
// this is used to configure webvr-polyfill | ||
// see https://github.com/googlevr/webvr-polyfill#configuration | ||
const WebVRConfig = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all import statements are hoisted to the top. We should also write our code that way.
@@ -1,51 +0,0 @@ | |||
export default { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did WebVR Boilerplayer not look for it globally? Or is it because the config was being set too late? (See my comment about import ordering)
@@ -239,7 +258,7 @@ const vr = function(options) { | |||
return; | |||
} | |||
|
|||
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 1000); | |||
const camera = new THREE.PerspectiveCamera(75, player.currentWidth() / player.currentHeight(), 1, 1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hopefully, these are the last of them, haha
chore: Swap webvr ro webxr polyfill packages (continue to use webvr p…
webvr-polyfill
controls and implement our own #5