Instance Property

shaderModifiers

A dictionary of GLSL source code snippets for customizing the shader programs provided by SceneKit.

Declaration

optional var shaderModifiers: [SCNShaderModifierEntryPoint : String]? { get set }

Discussion

The dictionary’s keys must be from the set of constants described in Shader Modifier Entry Point Keys. Each key represents a possible entry point in SceneKit’s shader programs, whose corresponding value is an NSString object containing a shader source code snippet to be included in the shader program at that entry point.

See Use Shader Modifiers to Extend SceneKit Shading in the protocol overview for a complete discussion of shader modifiers.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software