Skip to content

AR application sample using Metal without SceneKit.

License

Notifications You must be signed in to change notification settings

naru-jpn/MetalAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetalAR

AR application sample using Metal without SceneKit.

Features

  • Render only by Metal
    • Filter camera frame
    • Draw objects in 3D space
  • Take a picture on background

Files contained project

  • ShaderTypes.h
    • Define types used from shaders and swift.
  • ViewController.swift
    • Main view controller.
  • Context.swift
    • Context to store device, library, commandQueue, textureCache.

UI

  • Display.swift
    • Class to draw texture on display.
  • ShadersDisplay.metal
    • Declears shader functions to draw texture on display.
  • Shutter.swift
  • ShutterButton.swift

Renderer

  • Shaders.metal
    • Declears shader functions for off-screen rendering.
  • Renderer.swift
    • Class to manage objects and process GPU commands.

MatrixOperations

  • MatrixOperations.swift
    • Support operations of transform matrix.

About

AR application sample using Metal without SceneKit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages