| MDiv |
Function
The MDiv function divides the color channels by the alpha channel. When you
color correct a rendered (premultiplied) image, first apply an MDiv node
to the image to make the image a non-premultiplied image, perform the
color correction, and then add an MMult node to return the image to its premultiplied
state.
For
more information on premultiplication, see “About Premultiplication
and Compositing”.
|
Parameters
|
Type
|
Default
|
Function
|
| ignoreZero |
int
|
0
|
Tells Shake to ignore pixels with an alpha value of 0. 0 = Divide entire image. |
Synopsis
image MDiv( image, int ignoreZero);
Script
image = MDiv( image, ignoreZero);
Command Line
shake -mdiv ignorezero