xrhtml
v1.0.0
Published
WebXR compatible HTML-objects for THREE/AFRAME which auto-switch between CSS3D / WebGL
Downloads
1
Maintainers
Readme
Usage
window.XRHTMLRenderer = renderer
window.XRHTMLRefreshInterval = 100 // lower is more cpu
let html = new XRHTML({
name: "foo",
size: [500,200],
html: `<div style="overflow:scroll">
<a id="link" href="#" style="display:block;padding:10px;background:#FF0">foo</a>
<a id="link2" href="https://aframe.io" target="_blank" style="display:block;padding:10px;background:#FF0">foo</a>
<br>
<h1>Hello world</h1>
<button>foo</button>
</div>`,
scene
})
scene.add(html)
WebXR compatible HTML-objects for THREE/AFRAME which auto-switch between CSS3D / WebGL based on xr-session events.
Development
$ yarn add rollup
$ watch rollup -c rollup.config.js