include/terraingen/pipeline/materials_fields.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-License-Identifier: BSD-3-Clause | ||
| 2 | |||
| 3 | /// @file | ||
| 4 | /// @brief The field list of material options. | ||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "terraingen/layers/layer_fields.h" | ||
| 8 | #include "terraingen/pipeline/materials.h" | ||
| 9 | #include "terraingen/util/option_fields.h" | ||
| 10 | |||
| 11 | namespace terraingen { | ||
| 12 | |||
| 13 | 13598 | template <typename IO> void Fields(IO& io, MaterialOptions& options) { | |
| 14 | 13598 | io("exposure", options.exposure, | |
| 15 | "Thresholds marking bare ground as bedrock, read on the ground beneath the first layer that " | ||
| 16 | "lays a material; unset for no bedrock."); | ||
| 17 | 13597 | io("dust_cover", options.dustCover, "About the share of the surface under bright dust patches.", | |
| 18 | 13597 | "", FromBelow(0.0, 1.0)); | |
| 19 | 13595 | io("dust_patch_m", options.dustPatch, "Typical width of a dust patch, in meters.", "m", | |
| 20 | 13595 | Above(0.0)); | |
| 21 | 13594 | io("seed", options.seed, "Seed of the dust patches."); | |
| 22 | 13594 | } | |
| 23 | |||
| 24 | } // namespace terraingen | ||
| 25 |