Table of Contents

Class BiomeData

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

Container for all generated outputs produced by a biome request or biome-blending pass.

public class BiomeData : IDisposable
Inheritance
BiomeData
Implements
Inherited Members

Remarks

A BiomeData instance owns the textures and buffers assigned to it. The generation pipeline passes this object between graph execution, biome blending, bounds remapping, and tile population. Call Dispose() when the data is no longer needed to release GPU resources.

Constructors

BiomeData()

Initializes an empty biome data container with collectors for every supported output category.

Properties

albedoMap

Gets or sets the generated albedo map.

biomeMaskMap

Gets or sets the biome mask map associated with this data set.

heightMap

Gets or sets the generated height map.

holeMap

Gets or sets the generated hole map.

meshDensityMap

Gets or sets the generated mesh density map.

metallicMap

Gets or sets the generated metallic or smoothness-related map.

Methods

AddDetailDensity(DetailTemplate, RenderTexture)

Adds one detail template and its corresponding density map.

AddDetailInstance(DetailTemplate, ComputeBuffer)

Adds one detail template and its corresponding instance buffer.

AddGenericBuffer(string, ComputeBuffer)

Adds one labeled generic buffer output.

AddGenericTexture(string, RenderTexture)

Adds one labeled generic texture output.

AddObject(ObjectTemplate, ComputeBuffer)

Adds one object template and its corresponding instance buffer.

AddTextureLayer(TerrainLayer, RenderTexture)

Adds one terrain layer and its corresponding weight texture.

AddTree(TreeTemplate, ComputeBuffer)

Adds one tree template and its corresponding instance buffer.

Dispose()

Releases all textures and compute buffers owned by this data set and clears every internal collection.

GetDensityMaps(List<DetailTemplate>, List<RenderTexture>)

Copies the stored detail templates and density maps into caller-provided lists.

GetDetailInstances(List<DetailTemplate>, List<ComputeBuffer>)

Copies the stored detail templates and detail instance buffers into caller-provided lists.

GetGenericBuffers(List<string>, List<ComputeBuffer>)

Copies the stored generic buffer labels and buffers into caller-provided lists.

GetGenericTextures(List<string>, List<RenderTexture>)

Copies the stored generic texture labels and textures into caller-provided lists.

GetLayerCount()

Gets the number of stored terrain-layer weight pairs.

GetLayerWeights(List<TerrainLayer>, List<RenderTexture>)

Copies the stored terrain layers and weight textures into caller-provided lists.

GetObjects(List<ObjectTemplate>, List<ComputeBuffer>)

Copies the stored object templates and object instance buffers into caller-provided lists.

GetTrees(List<TreeTemplate>, List<ComputeBuffer>)

Copies the stored tree templates and tree instance buffers into caller-provided lists.