A node that renders its children into a separate buffer, optionally applying an effect, before drawing the final result.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
SKEffect object renders its children into a buffer and optionally applies a Core Image filter to this rendered output. Because effect nodes conform to
SKWarpable, you can also use them to apply distortions to nodes that don't implement the protocol, such as shape and video nodes. Use effect nodes to incorporate sophisticated special effects into a scene or to cache the contents of a static subtree for faster rendering performance.
Each time a new frame is rendered using the effect node, the effect node follows these steps:
It draws its children into a private framebuffer.
It blends the contents of its private framebuffer into its parent’s framebuffer, using one of the standard sprite blend modes.
It discards its private framebuffer. This step is optional; see the