Method RequestData
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
requestBiomeDataRequestThe request whose data receives the generated Core.BiomeData.biomeMaskMap texture.
graphBiomeMaskGraphThe biome mask graph to execute. Only the output node named Pinwheel.Vista.Graph.GraphConstants.BIOME_MASK_OUTPUT_NAME is evaluated.
worldBoundsBoundsThe biome cache bounds that should be exposed to the graph as execution bounds.
simSpaceSpaceThe 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.
baseBiomeMaskRenderTextureThe 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
requestwhen 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
baseBiomeMaskdoes not use a valid graph resolution.