Scene dosent show on VR mode when using localserver
First I creat a threejs scene and add a VRButton element, running on localsever.
Then I access the project through both PC and MobilePhone web browser.Everything works fine, VRButton(ENTER VR) shows correctly.
However , when I click VRbutton on PC ，or tap VRButton on my phone , things going wrong:
PC browser shows nothing but white screen with an exitVr button;
Phone browser shows black default grid GoogleCardboard stereouput with endless loading for a while;then shows sever no respond…
I tryed threejs.org samples and VR mode woks just fine both pc and mobile web browser.
I only import VRButton into my project.
Does someone else face this problem like me ?