Instance Property


An object that determines the opacity of each point in a material.


@property(nonatomic, readonly) SCNMaterialProperty *transparent;


Use this property to selectively make parts of a material appear transparent. You can uniformly adjust the opacity of a material using its transparency property, or of all the content attached to a node using the node’s opacity property.

By default, the transparent property’s contents object is a fully opaque black color, causing the property to have no visible effect. Setting the transparent property’s contents to any solid color uniformly fades the opacity of the material based on that color’s opacity value. To make parts of a material appear transparent, set the property’s contents to an image or other texture-mapped content whose alpha channel defines areas of full or partial opacity.

The figure below shows a semitransparent material before and after providing a texture image for its transparent property. (To make the transparency effect more visible, a blue sphere is shown behind the transparent material.)

Figure 1

Adding a transparent texture to a material

The transparencyMode property controls how SceneKit interprets color information from the transparent property’s contents.

See Also

Visual Properties for Basic Shading


An object that manages the material’s diffuse response to lighting.


An object that manages the material’s response to ambient lighting.


An object that manages the material’s specular response to lighting.


An object that defines the reflected color for each point on a surface.


An object that provides color values that are multiplied with pixels in a material after all other shading is complete.


The sharpness of specular highlights. Animatable.


A factor affecting the material’s reflectivity. Animatable.


A Boolean value that determines whether the material responds identically to both ambient and diffuse lighting. Animatable.