AR application sample using Metal without SceneKit.
- Render only by Metal
- Filter camera frame
- Draw objects in 3D space
- Take a picture on background
ShaderTypes.h
- Define types used from shaders and swift.
ViewController.swift
- Main view controller.
Context.swift
- Context to store device, library, commandQueue, textureCache.
Display.swift
- Class to draw texture on display.
ShadersDisplay.metal
- Declears shader functions to draw texture on display.
Shutter.swift
ShutterButton.swift
Shaders.metal
- Declears shader functions for off-screen rendering.
Renderer.swift
- Class to manage objects and process GPU commands.
MatrixOperations.swift
- Support operations of transform matrix.