Just posted the source on github to a small demo app demonstrating using an SCNProgram for alternate lighting models in SceneKit. GLSL shaders for Phong Point Light, Blinn, Edge Fuzz, EnvMap, Glossy Wet Highlight, Gooch, Hemishpere, Lamb Skin, Thin Film and Velvet lighting models included. Based on a Quartz Composer conversion of NVIDIA Samples from toneburst(machinesdontcare.wordpress.com).
Alternate Lighting Models for SceneKit
Comments are closed.