From 28afa6af4a6eb4e0cae3b1e4c63ae9dd63ae0499 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Thu, 4 May 2023 16:35:13 +0200 Subject: [PATCH] update documentation --- example/threejs/sandbox/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'") }