Class StrokeMaskGenerator
Generates two-dimensional masks for stroke segments and finalized strokes.
public static class StrokeMaskGenerator
- Inheritance
-
StrokeMaskGenerator
- Inherited Members
Methods
- CreateRenderTexture(int)
Creates a render texture configured for a stroke mask.
- Render(Stroke, RenderTexture)
Clears the target and renders the stroke's normalized geometric coverage using the stroke's XZ world bounds.
- RenderProximity(Stroke, RenderTexture)
Renders normalized proximity: one on the path, decreasing linearly to zero at the brush radius.
- RenderSegment(RenderTexture, Bounds, BrushTip, Vector3, Vector3)
Adds one capsule-shaped segment to an existing mask without clearing its current content.