An object that determines the opacity of each point in a material.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
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
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.)
transparency property controls how SceneKit interprets color information from the transparent property’s contents.