Skip to content

A Suite of Metal Examples written in Swift 4.2. Highlights: Model I/O - SceneKit - OpenEXR.

Notifications You must be signed in to change notification settings

turner/HelloMetal

Repository files navigation

HelloMetal

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.

Hello

Render a texture-mapped quad.

HellCameraPlane

Render a texture-mapped quad rendered atop a background quad aligned with the camera far clipping plane

HelloRenderPass

An example of two pass rendering

  1. Render texture-mapped quad to a texture.
  2. Texture-map the results of pass 1 atop a background quad aligned with the camera far clipping plane

HelloModel_IO

Render a variety of Model I/O shapes - cube, sphere, etc.

HelloLight

Similar to HelloModel_IO with a point light source positioned at the eye point

HelloSceneKit

Render a SceneKit asset. Examples include classic Newell Teapot and hi-res head model.

HelloOpenEXR

Render a texture-mapped quad with texture map ingested from OpenEXR format texture.

About

A Suite of Metal Examples written in Swift 4.2. Highlights: Model I/O - SceneKit - OpenEXR.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages