Skip to content
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

Not Side bye Side view #53

Open
Powershell-coder opened this issue Nov 9, 2017 · 1 comment
Open

Not Side bye Side view #53

Powershell-coder opened this issue Nov 9, 2017 · 1 comment

Comments

@Powershell-coder
Copy link

Hi
Is it possible to turn off Side by Side view in Computer and turn it on in Mobile ?

@linhtomtam
Copy link

linhtomtam commented May 19, 2021

find player-webgl.js and edit this line:

if (eye === 0) {
// left eye
webGL.gl.viewport(0, 0, canvas.width/2, canvas.height);
} else {
// right eye
webGL.gl.viewport(canvas.width/2, 0, canvas.width/2, canvas.height);
}

to

if (eye === 0) {
// left eye
webGL.gl.viewport(0, 0, canvas.width, canvas.height);
} else {
// right eye
//webGL.gl.viewport(canvas.width/2, 0, canvas.width/2, canvas.height);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants