Base interface for classes that compute coverage masks for brushes.
interface
|
IBrushMask
|
extends
|
IHeightmapLayers
|
||
base of
|
BrushMask
|
The mask of heightmap layers this object uses.
property
|
LayerMask
{
get
}
|
||
type
|
HeightmapLayer
|
||
value
|
Bitwise combination of HeightmapLayer values. | ||
inherited
|
IHeightmapLayers.LayerMask
|
Remarks:
These heightmap layers store actual terrain data:
Missing data is represented with the Coverage layer. It describes how much information is present in a stored heightmap sample. The semantics of coverage with heightmap samples is the same as premultiplied alpha with texture samples. A LayerMask without Coverage means that all samples are fully solid. If a LayerMask contains the Coverage layer but no others, the coverage values are used to represent 'holes' in the terrain (e.g. creating holes for caves, tunnels, etc.).
Computes a coverage mask for applying only parts of a brush.
[ThreadSafe]
|
||||
method
|
ComputeBrushMask
(CoverageBuffer mask,
HeightmapRegion samples,
object userData)
|
|||
params
|
mask
|
[not-null]
|
The output coverage mask. | |
samples
|
[not-null]
|
The original heightmap samples. | ||
userData
|
Optional user data object that has been passed to Apply. |