Table of Contents

Method RequestData

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

RequestData(BiomeDataRequest, BiomeMaskGraph, Bounds, Space, RenderTexture)

Runs a biome mask graph and writes its biome-mask output into a request payload.

public static IEnumerator RequestData(BiomeDataRequest request, BiomeMaskGraph graph, Bounds worldBounds, Space simSpace, RenderTexture baseBiomeMask)

Parameters

request BiomeDataRequest

The request whose data receives the generated Core.BiomeData.biomeMaskMap texture.

graph BiomeMaskGraph

The biome mask graph to execute. Only the output node named Pinwheel.Vista.Graph.GraphConstants.BIOME_MASK_OUTPUT_NAME is evaluated.

worldBounds Bounds

The biome cache bounds that should be exposed to the graph as execution bounds.

simSpace Space

The coordinate space of the source biome. When this is UnityEngine.Space.World, the graph receives the actual world-space minimum coordinates; otherwise the request starts at local origin.

baseBiomeMask RenderTexture

The combined biome mask produced before post-processing. Its width is used as the graph resolution, and the texture is bound as the graph input identified by Pinwheel.Vista.Graph.GraphConstants.BIOME_MASK_INPUT_NAME.

Returns

IEnumerator

An enumerator that executes the graph asynchronously and completes request when the post-process step finishes or short-circuits.

Remarks

If the graph does not contain the dedicated biome-mask output node, the method completes the request immediately and leaves the request data unchanged.

Exceptions

ArgumentException

Thrown when baseBiomeMask does not use a valid graph resolution.