Method Copy
Copy(BiomeData, Bounds, BiomeData, Bounds, int, int)
Copies all supported biome outputs from one bounds space into another and writes them into a destination data object.
public static void Copy(BiomeData srcData, Bounds srcBounds, BiomeData destData, Bounds destBounds, int heightMapResolution, int textureResolution)
Parameters
srcDataBiomeDataSource biome data to read from.
srcBoundsBoundsWorld-space bounds represented by
srcData.destDataBiomeDataDestination biome data object to overwrite.
destBoundsBoundsWorld-space bounds that the copied outputs should represent.
heightMapResolutionintTarget resolution for height-related outputs such as height, holes, and mesh density.
textureResolutionintTarget resolution for texture-like outputs such as albedo, metallic, layer weights, density maps, generic textures, and biome mask.
Remarks
This method starts by disposing any resources already owned by destData.
It then recreates destination outputs at the requested resolutions and remaps them from srcBounds into destBounds.
Buffers are copied with bounds-aware sample remapping, not by raw byte cloning.