Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 835 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 835 Bytes

Shadows

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.

  1. Open your terminal and run yarn start and yarn tunnel from the arkit-web/Demos directory
  2. Copy the ngrok https url from terminal
  3. Open arkit-web/ARKitWeb.xcodeproj in Xcode
  4. Click the Build Settings tab
  5. Scroll down and locate the DEV_URL flag
  6. Paste the ngrok https url into the DEV_URL field
  7. Set let DEBUG = true in ARKitWeb/ViewController.swift for live reloading
  8. Set let DEFAULT_DEMO = "shadows" in ARKitWeb/ViewController.swift
  9. Click Build and run

Notes

ARKit takes a few seconds to locate the floor plane, so objects might appear in mid air when the demo starts.