Contents

transparency

The uniform transparency of the material. Animatable.

Declaration

var transparency: CGFloat { get set }

Discussion

SceneKit determines the total opacity of each rendered pixel in a surface by multiplying the color from the material’s transparent property by the value of this property. Then, the material’s transparencyMode property determines how pixels from the material are blended into the scene.

You can also uniformly adjust the opacity of all content attached to a node using its opacity property.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Managing Opacity and Blending