multiply
An object that provides color values that are multiplied with pixels in a material after all other shading is complete.
Declaration
var multiply: SCNMaterialProperty { get }Discussion
After combining a material’s other visual properties with lighting and other information about a scene, Scene kit multiplies the color of each rendered pixel by the color this property provides. You can use this property to darken or tint a surface independent of the effects of lighting and other properties, or to add precomputed lighting to a scene via a shadow map.
By default, the multiply property’s contents object is a white color, causing the property to have no visible effect.
The figure below shows a material (with textures for its diffuse and emission properties) before and after setting the multiply property’s contents to a solid color. Notice that the multiply color modulates even the bright areas added by the emissive map.
[Image]