exokitxr / exokit-web

Exokit WebXR engine for the browser
70 stars 18 forks source link

Fix A-Frame cyclops mode #45

Closed avaer closed 5 years ago

avaer commented 5 years ago

This patches over a major A-Frame bug where A-Frame assumes stereo rendering in WebVR, breaking canvas sizing during monocular rendering.

We use a regex to replace the errant code loaded from various versions of A-Frame.

avaer commented 5 years ago

This should also fix the double-sizing of all of the examples mentioned in https://github.com/exokitxr/exokit-web/pull/31#issue-314712074.