This demo features realtime shadows. Touch and drag on the screen to change the light position.
Refer to the installation instructions before running this demo.
- Open your terminal and run
yarn start
andyarn tunnel
from thearkit-web/Demos
directory - Copy the ngrok https url from terminal
- Open
arkit-web/ARKitWeb.xcodeproj
in Xcode - Click the
Build Settings
tab - Scroll down and locate the
DEV_URL
flag - Paste the ngrok https url into the
DEV_URL
field - Set
let DEBUG = true
inARKitWeb/ViewController.swift
for live reloading - Set
let DEFAULT_DEMO = "shadows"
inARKitWeb/ViewController.swift
- Click
Build and run
ARKit takes a few seconds to locate the floor plane, so objects might appear in mid air when the demo starts.