Table of Contents

Method RenderSegment

Namespace
Pinwheel.Vista.Strokes
Assembly
Pinwheel.Vista.Runtime.dll

RenderSegment(RenderTexture, Bounds, BrushTip, Vector3, Vector3)

Adds one capsule-shaped segment to an existing mask without clearing its current content.

public static void RenderSegment(RenderTexture targetRT, Bounds worldBounds, BrushTip brushTip, Vector3 segmentStartWS, Vector3 segmentEndWS)

Parameters

targetRT RenderTexture

Caller-owned render texture that receives the segment.

worldBounds Bounds

World-space XZ region represented by the complete target texture.

brushTip BrushTip

Brush-tip shape used to render the segment.

segmentStartWS Vector3

World-space start of the segment.

segmentEndWS Vector3

World-space end of the segment.