Table of Contents

Method SetHeightMap

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

SetHeightMap(float[], Vector2Int)

Replaces the stored height-map buffer and invalidates the lazily built runtime texture.

protected void SetHeightMap(float[] data, Vector2Int size)

Parameters

data float[]

Float height samples to store.

size Vector2Int

Texture dimensions corresponding to data.

Exceptions

ArgumentException

Thrown when the buffer length does not match the supplied dimensions.