A plane that can optionally display a reflection of the scene above it.
- iOS 8.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 2.0+
By default, a floor extends infinitely in the x- and z-axis dimensions of its local coordinate space, and is located in the plane whose y-coordinate is zero. To position and orient a floor in a scene, attach it to the
geometry property of an
SCNNode object. Often, you use a floor to provide a background for a scene.
If a floor’s
reflectivity property is greater than zero, SceneKit automatically renders reflections for all geometries above it. Optionally, you can add an opacity gradient so that reflections of scene contents closer to the floor appear more clearly than those of scene contents further from it. You control the floor’s reflectivity using the properties listed in Adding Reflections to a Floor.