Enumeration

SCNBlendMode

Modes that describe how SceneKit blends source colors rendered using a material with destination colors already in a rendering target, used by the blendMode property.

Declaration

typedef enum SCNBlendMode : NSInteger {
    ...
} SCNBlendMode;

Topics

Constants

SCNBlendModeAlpha

Blend by multiplying source and destination color values by their corresponding alpha values.

SCNBlendModeAdd

Blend by adding the source color to the destination color.

SCNBlendModeSubtract

Blend by subtracting the source color from the destination color.

SCNBlendModeMultiply

Blend by multiplying the source color with the background color.

SCNBlendModeScreen

Blend by multiplying the inverse of the source color with the inverse of the destination color.

SCNBlendModeReplace

Blend by replacing the destination color with the source color, ignoring alpha.

Enumeration Cases

See Also

Managing Opacity and Blending

transparency

The uniform transparency of the material. Animatable.

transparencyMode

The mode SceneKit uses to calculate transparency for the material.

SCNTransparencyMode

The modes SceneKit uses to calculate the opacity of pixels rendered with a material, used by the transparencyMode property.

blendMode

The mode that determines how pixel colors rendered using this material blend with other pixel colors in the rendering target.