Table of Contents

Method ProcessPolygonalMask

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

ProcessPolygonalMask(BiomeMaskGraph, Bounds, Space, RenderTexture)

Processes a polygonal mask through a biome mask graph and returns the graph-produced mask.

public static RenderTexture ProcessPolygonalMask(BiomeMaskGraph graph, Bounds worldBounds, Space simSpace, RenderTexture polygonalMask)

Parameters

graph BiomeMaskGraph

Biome mask graph to execute.

worldBounds Bounds

World-space bounds represented by the polygonal mask.

simSpace Space

Coordinate space exposed to the graph.

polygonalMask RenderTexture

Caller-owned mask supplied as the biome-mask graph input.

Returns

RenderTexture

The biome-mask output texture removed from the graph data pool, or null when the graph has no biome-mask output. The caller owns the returned texture.