An array of Core Image filters to be applied to the rendered contents of the node.
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of
When this array is nonempty, SceneKit renders the node (and its child node hierarchy) into an image buffer and then applies the filters before compositing the filters’ output into the rendered scene. The order of the array determines the order of the Core Image filter chain. For example, the following code applies a pixellate filter to the rendered node and then a blur filter to the output of the pixellate filter:
After you attach filters to a node, you can modify filter parameters only by calling
set on the node the filter is attached to. (Directly modifying the parameters of a filter attached to a node results in undefined behavior.) To refer to a filter by key path, you must set the filter's
name property to a string that uniquely identifies that filter instance, as shown in the code above.
You can also animate filter parameters by their key paths, as in the code below that animates one of the filters from the previous example.