test xr fragments

This commit is contained in:
Leon van Kammen 2024-01-08 13:56:49 +00:00
parent 5caf7644a1
commit e2f801dc47
1 changed files with 7 additions and 5 deletions

View File

@ -4,14 +4,14 @@ AFRAME.registerComponent('manual', {
},
init: function () {
//AFRAME.XRF.navigator.to("https://coderofsalvation.github.io/xrsh-media/assets/background.glb")
},
requires:{
html: "https://unpkg.com/aframe-htmlmesh@2.1.0/build/aframe-html.js", // html to AFRAME
winboxjs: "https://unpkg.com/winbox@0.2.82/dist/winbox.bundle.min.js", // deadsimple windows: https://nextapps-de.github.io/winbox
winboxcss: "https://unpkg.com/winbox@0.2.82/dist/css/winbox.min.css", // deadsimple windows: https://nextapps-de.github.io/winbox
stylis: "https://unpkg.com/stylis@4.3.1/dist/umd/stylis.js", // modern CSS (https://stylis.js.org)
xrfragments: "https://xrfragment.org/dist/xrfragment.aframe.js",
},
dom: {
@ -71,6 +71,8 @@ AFRAME.registerComponent('manual', {
});
}, 500 )
this.el.setAttribute("xrf","https://coderofsalvation.github.io/xrsh-media/assets/background.glb")
// navigate with: AFRAME.XRF.navigator.to("https://xrfragment.org/index.glb")
},
DOMready: function( ){