DepthSlice
Function
Similar to DepthKey, this
creates a slice in the alpha channel based on Z, as defined by a center point,
and a drop-off range.
Parameters
|
Type
|
Defaults
|
Function
|
center |
float
|
0 | The center z depth from which the slice is measured. |
lo,hi |
float
|
0 | The distance included in the slice away from the center. lo adds distance towards the camera, hi add thickness away from the camera. |
grad |
int
|
0 |
When this is turned on (1), there is a gradation from hi to lo. Beyond the slice is still black. |
mirror |
int
|
0 |
When this is on, the effect is mirrored in z. |
matteMult |
int
|
0 | When this is on (1), the rgb channels are pre-multiplied by the new mask. |
Synopsis
image DepthSlice( image, float center, float lo, float hi, int grad, int mirror, int matteMult );
Script
image = DepthSlice( image, center, lo, hi, grad, mirror, matteMult );
Command Line
shake -depthkey center lo hi etc...