GLSL source code for the program’s fragment shader.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
A program’s fragment shader (sometimes called a pixel shader) executes at least once for each pixel in rendered output. The fragment shader takes as input the values output by the vertex shader (after those values have been interpolated by the GPU), and uses them to compute a final color for each pixel.
SceneKit compiles and links your shader program only when it is needed for rendering. To be notified of program compilation errors, provide a
delegate object for the program.