![]() |
ezEngine Release 26.9
|
#include <TerrainSystem.h>
Public Attributes | |
| bool | m_bInUse = false |
| bool | m_bAffectHeightfields = true |
| bool | m_bAffectVoxels = true |
| ezInt8 | m_iPriority = 0 |
| Sort order. Higher = applied later = wins over lower-priority brushes. Equal priorities use mode-based ordering. | |
| ezUInt8 | m_uiMaterialIndex = 0 |
| Material (layer) index to paint: 0-3. | |
| ezEnum< ezTerrainModifyMode > | m_ModifyMode |
| ezVec3 | m_vPosition = ezVec3::MakeZero() |
| ezQuat | m_qRotation = ezQuat::MakeIdentity() |
| World-space rotation of the brush. | |
| ezVec2 | m_vHalfExtents = ezVec2::MakeZero() |
| Half-size of the straight rectangular region along each brush axis. | |
| float | m_fHalfExtentZ = 0.0f |
| Half-size along the brush Z axis. Used only by Carve/Add mode for a 3D rounded-box volume. | |
| float | m_fHalfExtentYTop = 0.0f |
| Upper Y half-size for asymmetric Carve/Add volumes (e.g. flat-floor tunnels). 0 = same as m_vHalfExtents.y (symmetric). | |
| float | m_fInnerRadius = 0.0f |
| Corner rounding radius of the inner (full-weight) region. | |
| float | m_fOuterRadius = 5.0f |
| Corner rounding radius; also the outer edge of the falloff zone. | |
| float | m_fFalloff = 1.0f |
| Exponent applied after smoothstep in the transition zone. | |
| float | m_fMaterialStrength = 0.0f |
| Blend weight for material painting in [0, 1]. 0 = disabled (no material write). | |
| float | m_fNoiseStrength = 0.0f |
| float | m_fNoiseFrequency = 1.0f |
| ezTagSet | m_Tags |
| If non-empty, the brush only affects terrain objects that have at least one matching tag. | |
CPU-side description of one terrain modification brush.
Components write to this each frame; the terrain system uploads the data to GPU before each bake.