import { createVibePortal } from 'https://portal.thevibemetaverse.com/embed.js'; // Registers this page (origin + document title as game name) const portal = createVibePortal({ scene, camera }); portal.position.set(0, 0, -10); scene.add(portal); function animate() { requestAnimationFrame(animate); portal.update(player.position); renderer.render(scene, camera); }
Once you add a portal in your game, the metaverse will have a portal to your game.