Type Method

program

Creates a new program object.

Declaration

+ (instancetype)program;

Return Value

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

Discussion

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.