···2233Proof of concept for a live VR code editor using svelte, three.js, threlte and peer.js.
4455+## demo
66+77+88+99+https://github.com/flo-bit/threlte-vr-code-editor/assets/45694132/9ddfb1be-ed27-4b0d-a64c-80178aedecef
1010+1111+1212+513## How to use in your own project:
6147151. Make sure you have a threlte project set up (including the extras and xr packages), or create a new one by running:
···293730388. You should now see your pc screen in the vr scene. Edit the scene with using your computers mouse and keyboard and see the changes in vr.
31393232-Note: some threlte components don't work in vr. Specificially when installing a fresh threlte project, the `<ContactShadow>` component will cause the scene to not render in vr. You can remove it from your main scene file to fix this.4040+Note: some threlte components don't work in vr. Specificially when installing a fresh threlte project, the `<ContactShadow>` component will cause the scene to not render in vr. You can remove it from your main scene file to fix this.