We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e844311 commit a1b7da9Copy full SHA for a1b7da9
examples/webgl_effects_cardboard.html
@@ -67,6 +67,28 @@
67
renderer.shadowMap.enabled = true;
68
document.body.appendChild( renderer.domElement );
69
70
+ renderer.domElement.addEventListener( 'click', function () {
71
+
72
+ if ( this.requestFullscreen ) {
73
74
+ this.requestFullscreen();
75
76
+ } else if ( this.msRequestFullscreen ) {
77
78
+ this.msRequestFullscreen();
79
80
+ } else if ( this.mozRequestFullScreen ) {
81
82
+ this.mozRequestFullScreen();
83
84
+ } else if ( this.webkitRequestFullscreen ) {
85
86
+ this.webkitRequestFullscreen();
87
88
+ }
89
90
+ } );
91
92
//
93
94
effect = new THREE.CardboardEffect( renderer );
0 commit comments