silhouetteCoverage
A soft copy of the child's alpha silhouette: a number per pixel from 0 to 1.
silhouetteCoverage(opts: {at: (params: RttFilterParams) => Expr; blur: ArgSpec}): (params: RttFilterParams) => Expr
Import effects from shaders/std and use effects.blurs.silhouetteCoverage.
at is where to read the silhouette from, usually shadowOffset. blur is the softness as a radius in pixels (0–20). Feed it to shadowComposite as the coverage.
Parameters
| Name | Type | Notes |
|---|---|---|
opts | {at: (params: RttFilterParams) => Expr; blur: ArgSpec} |
Example
silhouetteCoverage({at: shadowOffset({angle: 135, distance: 0.1}), blur: p('blur')})
See also
shadowOffset— The coordinate a shadow reads the child's silhouette from:distanceaway in the compass directionangle.shadowComposite— A tinted shadow behind the child.