webxr-ratk
Installation
SKILL.md
Reality Accelerator Toolkit (RATK)
RATK bridges low-level WebXR APIs to Three.js Object3D instances. It manages detected planes, room meshes, anchors, and hit-test targets, translating XR data into scene objects automatically.
Package: ratk on npm (not reality-accelerator-toolkit)
Quick Start
import * as THREE from 'three';
import { ARButton, RealityAccelerator } from 'ratk';
const renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true });
renderer.xr.enabled = true;
const scene = new THREE.Scene();
scene.background = null; // passthrough