A Boolean value that determines whether SceneKit performs lighting calculations per vertex or per pixel. Animatable.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
When this property’s value is
YES (the default), SceneKit performs lighting calculations independently for each rendered pixel. This approach provides better rendering quality, but can adversely impact rendering performance.
If you change this property’s value to
NO, SceneKit performs lighting calculations for each vertex in a geometry, and allows the GPU to interpolate lighting results across the pixels in between vertices. Depending on the shape and vertex count of a geometry’s surface and the material properties being rendered, this approach may improve rendering performance without much noticeable impact on visual quality.
You can animate changes to this property’s value. See Animating SceneKit Content. Animating this property fades between the results of rendering with each state.