Skip to content

Commit

Permalink
Deployed 005702a with MkDocs version: 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Sep 27, 2024
1 parent 52fa38a commit 0376d62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions demos/hello-three/demo.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
/**
* Augmented Reality demo with three.js and encantar.js
* Augmented Reality demo using the three.js plugin for encantar.js
* https://alemart.github.io/encantar-js/
*/

(function() {

// Validate
if(typeof encantar === 'undefined')
throw new Error(`Can't find the three.js plugin for encantar.js`);



/**
* Utilities for the Demo scene
*/
Expand Down Expand Up @@ -229,14 +236,15 @@ class DemoScene extends ARScene


/**
* Enchant the Demo scene
* Enchant the scene
* @returns {void}
*/
window.addEventListener('load', () => {

function main()
{
const scene = new DemoScene();

encantar(scene);
}

});
document.addEventListener('DOMContentLoaded', main);

})();
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 0376d62

Please sign in to comment.