Table of Contents

Method RenderBoolMask

Namespace
Pinwheel.Griffin.SplineTool
Assembly
Pinwheel.Polaris.Runtime.dll

RenderBoolMask(RenderTexture, ComputeBuffer, int, Vector4)

Render the spline bool mask on a texture. The mask contains 1 where the spline pass through, otherwise 0.

public static void RenderBoolMask(RenderTexture targetRt, ComputeBuffer worldTrianglesBuffer, int vertexCount, Vector4 worldBounds)

Parameters

targetRt RenderTexture

The texture to render on.

worldTrianglesBuffer ComputeBuffer

The buffer containing all vertices in world space.

vertexCount int

Number of vertex.

worldBounds Vector4

The world region to extract from, usually the terrain's bounds.

See Also