Skip to content

Instantly share code, notes, and snippets.

@miqmago
miqmago / app-root-threejs.tsx
Created February 14, 2023 20:42
Threejs + AR in stencil
import { Component, h } from '@stencil/core/internal';
import {
Scene,
PerspectiveCamera,
WebGLRenderer,
BoxGeometry,
MeshBasicMaterial,
Mesh,
} from 'three';
import * as THREEx from '@ar-js-org/ar.js/three.js/build/ar-threex-location-only.js';