Table of Contents

Method RenderAlphaMask

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

RenderAlphaMask(RenderTexture, ComputeBuffer, ComputeBuffer, int, Vector4)

Render the spline alpha mask on a texture.

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

Parameters

targetRt RenderTexture

The texture to render on.

worldTrianglesBuffer ComputeBuffer

The buffer containing all vertices in world space.

alphasBuffer ComputeBuffer

The buffer containing all alpha values.

vertexCount int

Number of vertex.

worldBounds Vector4

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

See Also