Instance Property

doubleSided

A Boolean value that determines whether SceneKit should render both front and back faces of a surface. Animatable.

Declaration

@property(nonatomic, getter=isDoubleSided) BOOL doubleSided;

Discussion

When this property’s value is NO (the default), SceneKit renders a surface using the material from one side. The vertex data and normal vectors in a geometry designate which side of each polygon is to be considered its front face, and the geometry’s orientation with respect to the camera determines which front surfaces are currently visible.

If you change this property’s value to YES, SceneKit renders both the front and back surfaces of every polygon. SceneKit assumes the surface normals a back face to be the negative of the front face’s normal vector.

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

See Also

Customizing Rendered Appearance

litPerPixel

A Boolean value that determines whether SceneKit performs lighting calculations per vertex or per pixel. Animatable.

cullMode

The mode determining which faces of a surface SceneKit renders. Animatable.

SCNCullMode

The modes SceneKit uses to determine which polygons to render in a surface, used by the cullMode property.