A Suite of 7 minimal Metal apps written in Swift 4.2. Highlights include:
- Multi-pass rendering
- Model I/O
- SceneKit
- OpenEXR
- Arcball (Gestural rotation widget based on Quaternions)
- A simple API layer that abstracts to
HelloMetal is my attempt to write Metal apps in idomatic Swift. My goal is a suite of clear and approachable apps each illustrating a different aspect of Metal. Each app is a single view app. A model is rendered that can be rotated using a finger gesture.
Render a texture-mapped quad.
Render a texture-mapped quad rendered atop a background quad aligned with the camera far clipping plane
An example of two pass rendering
- Render texture-mapped quad to a texture.
- Texture-map the results of pass 1 atop a background quad aligned with the camera far clipping plane
Render a variety of Model I/O shapes - cube, sphere, etc.
Similar to HelloModel_IO with a point light source positioned at the eye point
Render a SceneKit asset. Examples include classic Newell Teapot and hi-res head model.
Render a texture-mapped quad with texture map ingested from OpenEXR format texture.