Skip to content

Instantly share code, notes, and snippets.

@andrewzimmer906
andrewzimmer906 / commonprofile.metal
Last active August 29, 2023 20:11 — forked from j-j-m/commonprofile.metal
Can't access GL Uniforms in Metal shader modifier? Apple docs for SCNShadable written in terms of GL? Pulling your hair out?... this will help.
////////////////////////////////////////////////
// CommonProfile Shader v2
#import <metal_stdlib>
using namespace metal;
#ifndef __SCNMetalDefines__
#define __SCNMetalDefines__