Helper for sampling spatial scaling maps over a 2D bounding box with blending.
More...
#include <forest_growth.hpp>
Helper for sampling spatial scaling maps over a 2D bounding box with blending.
◆ ForestScaleSampler()
| hmap::ForestScaleSampler::ForestScaleSampler |
( |
const Array & | array, |
|
|
float | strength_factor, |
|
|
const BBox2D & | bounds ) |
◆ sample()
| float hmap::ForestScaleSampler::sample |
( |
float | x, |
|
|
float | y ) const |
◆ scale_array
| const Array* hmap::ForestScaleSampler::scale_array = nullptr |
◆ bbox
◆ strength
| float hmap::ForestScaleSampler::strength = 1.0f |
◆ bbox_dx
| float hmap::ForestScaleSampler::bbox_dx = 1.0f |
◆ bbox_dy
| float hmap::ForestScaleSampler::bbox_dy = 1.0f |
◆ active
| bool hmap::ForestScaleSampler::active = false |
The documentation for this struct was generated from the following files: