Skip to content

Commit 266b139

Browse files
committed
WebVR: XR to VR. Handle white scenes.
1 parent 6b0a67c commit 266b139

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/js/vr/WebVR.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var WEBVR = {
4444
session.addEventListener( 'end', onSessionEnded );
4545

4646
renderer.vr.setSession( session, options );
47-
button.textContent = 'EXIT XR';
47+
button.textContent = 'EXIT VR';
4848

4949
currentSession = session;
5050

@@ -55,7 +55,7 @@ var WEBVR = {
5555
currentSession.removeEventListener( 'end', onSessionEnded );
5656

5757
renderer.vr.setSession( null );
58-
button.textContent = 'ENTER XR';
58+
button.textContent = 'ENTER VR';
5959

6060
currentSession = null;
6161

@@ -69,7 +69,7 @@ var WEBVR = {
6969
button.style.left = 'calc(50% - 50px)';
7070
button.style.width = '100px';
7171

72-
button.textContent = 'ENTER XR';
72+
button.textContent = 'ENTER VR';
7373

7474
button.onmouseenter = function () { button.style.opacity = '1.0'; };
7575
button.onmouseleave = function () { button.style.opacity = '0.5'; };
@@ -118,7 +118,7 @@ var WEBVR = {
118118
element.style.padding = '12px 6px';
119119
element.style.border = '1px solid #fff';
120120
element.style.borderRadius = '4px';
121-
element.style.background = 'transparent';
121+
element.style.background = 'rgba(0,0,0,0.1)';
122122
element.style.color = '#fff';
123123
element.style.font = 'normal 13px sans-serif';
124124
element.style.textAlign = 'center';

0 commit comments

Comments
 (0)