File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 532
532
var onSessionEnded = this . onEndSession . bind ( this ) ;
533
533
session . addEventListener ( 'end' , onSessionEnded ) ;
534
534
535
- this . canvas . width = glLayer . framebufferWidth ;
535
+ this . canvas . width = glLayer . framebufferWidth * 2 ;
536
536
this . canvas . height = glLayer . framebufferHeight ;
537
537
538
538
session . addEventListener ( 'select' , this . onInputEvent ) ;
561
561
562
562
let glLayer = session . renderState . baseLayer ;
563
563
564
- if ( this . canvas . width != glLayer . framebufferWidth ||
564
+ if ( this . canvas . width != glLayer . framebufferWidth * 2 ||
565
565
this . canvas . height != glLayer . framebufferHeight )
566
566
{
567
- this . canvas . width = glLayer . framebufferWidth ;
567
+ this . canvas . width = glLayer . framebufferWidth * 2 ;
568
568
this . canvas . height = glLayer . framebufferHeight ;
569
569
}
570
570
629
629
let leftRect = {
630
630
x :0 ,
631
631
y :0 ,
632
- w :1 ,
632
+ w :0.5 ,
633
633
h :1
634
634
}
635
635
let rightRect = {
636
- x :1 ,
636
+ x :0.5 ,
637
637
y :0 ,
638
- w :1 ,
638
+ w :0.5 ,
639
639
h :1
640
640
}
641
641
for ( let view of pose . views ) {
You can’t perform that action at this time.
0 commit comments