new build

This commit is contained in:
Leon van Kammen 2025-01-14 15:36:36 +01:00
parent 9efaeab5b5
commit 94346dbdff
19 changed files with 1888 additions and 442170 deletions

24
.env Normal file
View File

@ -0,0 +1,24 @@
which nix && test -n "$NIX_SHELL_XRF" || {
# automatically mirror main between forgejo<->codeberg
#git(){
# set -x
# test $1 = "push" && test $3 = main && mirror=1
# $(which git) "$@"
# test -n "$mirror" && {
# set -x
# shift ; shift # remove first to args
# $(which git) push codeberg "$@"
# }
# set +x
#}
echo '[i] installing nix-shell' && nix-shell
}
test $(hostname) = 2wa && {
# on the website xrfragment.org copy examples to root-dir
# (so https://xrfragment.org/index.glb can be requested remotely)
# because that really emphasizes a nice WebXR experience-at-website-root paradigm
cp -r examples/assets .
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

888
dist/xrfragment.js vendored

File diff suppressed because it is too large Load Diff

2
dist/xrfragment.lua vendored
View File

@ -1,4 +1,4 @@
-- Generated by Haxe 4.3.3 -- Generated by Haxe 4.3.6
local _hx_hidden = {__id__=true, hx__closures=true, super=true, prototype=true, __fields__=true, __ifields__=true, __class__=true, __properties__=true, __fields__=true, __name__=true} local _hx_hidden = {__id__=true, hx__closures=true, super=true, prototype=true, __fields__=true, __ifields__=true, __class__=true, __properties__=true, __fields__=true, __name__=true}
_hx_array_mt = { _hx_array_mt = {

File diff suppressed because one or more lines are too long

438629
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 16 02:18:40 PM CET 2024 * v0.5.1 generated at Tue Jan 14 03:35:01 PM CET 2025
* 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 16 02:18:40 PM CET 2024 * v0.5.1 generated at Tue Jan 14 03:35:01 PM CET 2025
* 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 16 02:18:40 PM CET 2024 * v0.5.1 generated at Tue Jan 14 03:35:01 PM CET 2025
* 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 16 02:18:40 PM CET 2024 * v0.5.1 generated at Tue Jan 14 03:35:01 PM CET 2025
* 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 16 02:18:40 PM CET 2024 * v0.5.1 generated at Tue Jan 14 03:35:01 PM CET 2025
* 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 16 02:18:40 PM CET 2024 * v0.5.1 generated at Tue Jan 14 03:35:01 PM CET 2025
* https://xrfragment.org * https://xrfragment.org
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

2
dist/xrfragment.py vendored
View File

@ -1,4 +1,4 @@
# Generated by Haxe 4.3.3 # Generated by Haxe 4.3.6
# coding: utf-8 # coding: utf-8
import sys import sys

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
example/assets/index.glb

View File

@ -1 +0,0 @@
example/assets/other.glb

View File

@ -7,7 +7,7 @@ xrf.frag.pos = function(v, opts){
let obj = scene.getObjectByName(v.string) let obj = scene.getObjectByName(v.string)
if( !obj ) return console.warn("#pos="+v.string+" not found") if( !obj ) return console.warn("#pos="+v.string+" not found")
obj.add(camera) // follow animation of targeted position obj.add(camera) // follow animation of targeted position
camera.position.set(0,0,0) camera.position.set(0,1.6,0) // set playerheight
//let c = camera.rotation //let c = camera.rotation
//c.set( c.x, obj.rotation.y, c.z ) //c.set( c.x, obj.rotation.y, c.z )