Stream Video Textures into 3D Scene with Metal

Apple Developer demo app (with source) on streaming video textures with Metal:

“This sample demonstrates how to stream captured video textures (from the front facing camera on an iOS device) into a 3D scene rendered with Metal. The video texture is combined with an environment map reflection from a cubemap (which is also rendered seperatly as the starfield skybox) and a 2D mipmap PVRTC texture (copper metal texture).”

This demo app uses AVFoundation to capture video from the camera, where each frame is a Metal texture.