bugfix: enable stencil [required since aframe 1.6.0] + better audio cleanup

This commit is contained in:
Leon van Kammen 2024-12-10 12:54:26 +00:00
parent 4bc3d1c520
commit ab69dac0ec
14 changed files with 16064 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,38 @@
/*
* v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:55 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:17 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:50:49 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:40:03 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:39:34 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:38:48 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024
* https://xrfragment.org * https://xrfragment.org
@ -2943,7 +2978,7 @@ xrf.frag.href = function(v, opts){
let click = mesh.userData.XRF.href.exec = (e) => { let click = mesh.userData.XRF.href.exec = (e) => {
if( !mesh.material || !mesh.material.visible ) return // ignore invisible nodes if( !mesh.material || !(mesh.material && mesh.material.visible) ) return // ignore invisible nodes
// update our values to the latest value (might be edited) // update our values to the latest value (might be edited)
let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object ) let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object )
@ -4367,6 +4402,7 @@ xrf.addEventListener('reset', () => {
if( n.media && n.media.audio ){ if( n.media && n.media.audio ){
if( n.media.audio.stop ) n.media.audio.stop() if( n.media.audio.stop ) n.media.audio.stop()
if( n.media.audio.remove ) n.media.audio.remove() if( n.media.audio.remove ) n.media.audio.remove()
n.remove()
} }
}) })
}) })

35
dist/xrfragment.js vendored
View File

@ -1,3 +1,38 @@
/*
* v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:55 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:17 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:50:49 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:40:03 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:39:34 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:38:48 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024
* https://xrfragment.org * https://xrfragment.org

File diff suppressed because one or more lines are too long

15834
dist/xrfragment.module.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View File

@ -1,3 +1,38 @@
/*
* v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:55 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:17 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:50:49 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:40:03 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:39:34 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:38:48 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024
* https://xrfragment.org * https://xrfragment.org
@ -2943,7 +2978,7 @@ xrf.frag.href = function(v, opts){
let click = mesh.userData.XRF.href.exec = (e) => { let click = mesh.userData.XRF.href.exec = (e) => {
if( !mesh.material || !mesh.material.visible ) return // ignore invisible nodes if( !mesh.material || !(mesh.material && mesh.material.visible) ) return // ignore invisible nodes
// update our values to the latest value (might be edited) // update our values to the latest value (might be edited)
let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object ) let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object )
@ -4367,6 +4402,7 @@ xrf.addEventListener('reset', () => {
if( n.media && n.media.audio ){ if( n.media && n.media.audio ){
if( n.media.audio.stop ) n.media.audio.stop() if( n.media.audio.stop ) n.media.audio.stop()
if( n.media.audio.remove ) n.media.audio.remove() if( n.media.audio.remove ) n.media.audio.remove()
n.remove()
} }
}) })
}) })

View File

@ -1,3 +1,38 @@
/*
* v0.5.1 generated at Tue Dec 10 12:53:25 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:55 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:52:17 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:50:49 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:40:03 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:39:34 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* v0.5.1 generated at Tue Dec 10 12:38:48 UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/* /*
* v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024 * v0.5.1 generated at Mon Dec 9 15:41:10 UTC 2024
* https://xrfragment.org * https://xrfragment.org
@ -2943,7 +2978,7 @@ xrf.frag.href = function(v, opts){
let click = mesh.userData.XRF.href.exec = (e) => { let click = mesh.userData.XRF.href.exec = (e) => {
if( !mesh.material || !mesh.material.visible ) return // ignore invisible nodes if( !mesh.material || !(mesh.material && mesh.material.visible) ) return // ignore invisible nodes
// update our values to the latest value (might be edited) // update our values to the latest value (might be edited)
let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object ) let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object )
@ -4367,6 +4402,7 @@ xrf.addEventListener('reset', () => {
if( n.media && n.media.audio ){ if( n.media && n.media.audio ){
if( n.media.audio.stop ) n.media.audio.stop() if( n.media.audio.stop ) n.media.audio.stop()
if( n.media.audio.remove ) n.media.audio.remove() if( n.media.audio.remove ) n.media.audio.remove()
n.remove()
} }
}) })
}) })

View File

@ -17,8 +17,9 @@
</head> </head>
<body> <body>
<a-scene xr-mode-ui="XRMode: xr" <a-scene xr-mode-ui="XRMode: xr"
renderer="colorManagement: false; antialias:true; highRefreshRate:true; foveationLevel: 0.5; toneMapping: ACESFilmic; exposure: 3.0" renderer="colorManagement: false; stencil: true; antialias:true; highRefreshRate:true; foveationLevel: 0.5; toneMapping: ACESFilmic; exposure: 3.0"
device-orientation-permission-ui device-orientation-permission-ui
xrf-gaze-always=""
light="defaultLightsEnabled: false"> light="defaultLightsEnabled: false">
<a-entity id="player" movement-controls touch-controls wasd-controls="fly:false" look-controls="magicWindowTrackingEnabled:true"> <a-entity id="player" movement-controls touch-controls wasd-controls="fly:false" look-controls="magicWindowTrackingEnabled:true">
<a-entity camera="fov:90" position="0 1.6 0" id="camera"></a-entity> <a-entity camera="fov:90" position="0 1.6 0" id="camera"></a-entity>