diff --git a/example/threejs/sandbox/index.html b/example/threejs/sandbox/index.html index 4e0bd6a..77bc405 100644 --- a/example/threejs/sandbox/index.html +++ b/example/threejs/sandbox/index.html @@ -19,7 +19,7 @@ - source + source @@ -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'") }