eleVR-Web-Player
eleVR-Web-Player copied to clipboard
Not Side bye Side view
Hi Is it possible to turn off Side by Side view in Computer and turn it on in Mobile ?
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); }