Type Method


Creates a new program object.


+ (instancetype)program;

Return Value

The initialized SCNProgram object, or nil if initialization is not successful.


You cannot use the newly created program object for rendering until you provide shader source code for its vertexShader and fragmentShader properties.

To use a shader for rendering, assign it to the program property of a geometry or material.