Keys for the
shader dictionary, each corresponding to an entry point in SceneKit’s shader programs where you can attach a custom GPU shader code snippet.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
For details on shader modifiers, see Use Shader Modifiers to Extend SceneKit Shading in the protocol overview.
SceneKit inserts your shader modifiers into its shader program in the order shown here, so you can use the structures defined by earlier entry points in later entry points. For example, a snippet associated with the
fragment entry point can read from the
_surface structure defined by the
surface entry point.