CIFilter_Stylize_HeightFieldFromMask - linhay/Stem GitHub Wiki
CIFilter.Stylize.HeightFieldFromMask
Discussion The white values of the mask define those pixels that are inside the height field while the black values define those pixels that are outside. The field varies smoothly and continuously inside the mask, reaching the value 0 at the edge of the mask. You can use this filter with the CIShadedMaterial filter to produce extremely realistic shaded objects.
public struct HeightFieldFromMask: CIFilterContainerProtocol
and later and in iOS 9 and later.
Inheritance
Initializers
init()
init()
Properties
filter
var filter: CIFilter
image
A CIImage object whose display name is Image.
var image: CIImage?
radius
An NSNumber object whose attribute type is CIAttributeTypeDistance and whose display name is Radius. Default value: 10.00
var radius: NSNumber