SpacePrincessAda / m3

Playground for Metal shading language in Objective-C and C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This is a testbed for learning the Metal API and for developing a MacOS platform layer from scratch for a game written in C. It's designed to compile from the command line, with Xcode only used for debugging.

Currently the project has no third-party dependencies and will build on MacOS if the Xcode command line tools are installed.

Running

# Build
./m

# Run
./build/app

Run the build script to live-reload the shaders.

Controls

  • Press o to switch between orbit and first person cameras.
  • Press [ or ] to change the rendering resolution.
  • Press f to show the frame time graph.

Orbit Camera

Rotate around the center point with the arrow keys.

First Person

Move and strafe with WASD. Use the arrow keys to look around.

About

Playground for Metal shading language in Objective-C and C.


Languages

Language:C 43.1%Language:Objective-C 33.0%Language:Metal 21.2%Language:Shell 2.2%Language:C++ 0.5%