update documentation

This commit is contained in:
Leon van Kammen 2023-05-04 16:35:13 +02:00
parent c871972a21
commit 28afa6af4a

View file

@ -19,7 +19,7 @@
</template>
</datalist>
</div>
<a id="source" href="https://github.com/coderofsalvation/xrfragment/blob/main/example/threejs/sandbox/index.html#L87-L103">source</a>
<a id="source" target="_blank" href="https://github.com/coderofsalvation/xrfragment/blob/main/example/threejs/sandbox/index.html#L87-L105">source</a>
<textarea style="display:none"></textarea>
<script async src="./../../assets/alpine.min.js"></script>
@ -94,10 +94,12 @@
loaders: [ GLTFLoader ], // which assets to check for fragments?
})
// decorate env fragment
xrfragment.env = (xrf,v,mesh,model,scene,renderer,THREE) => {
xrf(v,mesh,model,scene,renderer,THREE)
}
// decorate non-xrfragment custom property
xrfragment.name = (xrf,v,mesh,model,scene,renderer,THREE) => {
console.log("hello custom property 'name'")
}