createSilhouetteStage
fun createSilhouetteStage(edgeDetectionStages: ReadonlyArray<PostProcessStage>? = definedExternally): PostProcessStageComposite(source)
Creates a post-process stage that applies a silhouette effect.
A silhouette effect composites the color from the edge detection pass with input color texture.
This stage has the following uniforms when edgeDetectionStages
is undefined
: color
and length
color
is the color of the highlighted edge. The default is Color.BLACK. length
is the length of the edges in pixels. The default is 0.5
.
Return
A post-process stage that applies a silhouette effect.
Parameters
edgeDetectionStages
An array of edge detection post process stages.