Silhouette Outline Shader Modifier via Metal in SceneKit

725 views Asked by At

Shader modifiers have multiple entry points. Following this: http://wiki.unity3d.com/index.php?title=Silhouette-Outlined_Diffuse I should have two entry points, one after the Vertex shader (SCNShaderModifierEntryPointSurface) and the frag shader (SCNShaderModifierEntryPointFragment). Are these the correct entry points?

Also, if anyone has any tips on writing Metal shader code, that'd be greatly appreciated. Some general notes on how to translate it from the glsl shader would be amazing. Honestly, I've never had a problem reading code before, but this stuff is like Japanese to me.

0

There are 0 answers