Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Blair MacIntyre 982a061122 need to explicitly track the size of the framebuffer
since three.js will reset canvas height, and if pixelRation is not 1, it will scale it, which we will return here, and scale again, over and over
2017-12-08 16:08:14 -05:00
Blair MacIntyre 5cdafa48fe bug fixes
- Added _stop method to HeadMountedDisplay to stop exception on leaving VR
- set webgl canvas to 100% width height so it doesn't go out of flow
- added a resize event to flatDisplay and reset the canvas width to the DOM element width when resized
- changed frameBufferWidth and height in XRWebGLLayer to to just returning the actual canvas size
2017-12-08 10:00:30 -05:00
Blair MacIntyre 7e912cb012 fixed canvas size and resolution 2017-12-06 15:01:29 -05:00
Trevor F. Smith 112905af7a Pull the example code from the webxr-api repository. 2017-09-04 18:59:34 -07:00