pub fn brush(
mesh: &mut Mesh,
center: [f32; 3],
radius: f32,
amount: f32,
mode: BrushMode,
) -> usizeExpand description
Apply one brush step to a terrain grid mesh in mesh-local space.
center is the local-space brush position (its Y is the flatten target,
distances are measured in XZ). amount is the displacement in meters at
full falloff (raise/lower) or the blend factor 0..1 (smooth/flatten).
Returns the number of vertices touched; normals are recomputed on change.