Skip to content

Instantly share code, notes, and snippets.

View lateshift's full-sized avatar
📡
ヘ( ̄ー ̄ヘ)

Jens C. lateshift

📡
ヘ( ̄ー ̄ヘ)
View GitHub Profile
@lateshift
lateshift / commonprofile.metal
Created July 24, 2023 11:36 — 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__