|
| ScatterField | hmap::merge_scatter_fields (const std::vector< ScatterField > &fields, bool merge_by_class=true) |
| | Merges multiple ScatterField instances into a single instance.
|
| ScatterField | hmap::merge_scatter_fields (const std::vector< ScatterField > &fields, const std::vector< BBox2D > &bboxs, bool merge_by_class=true) |
| | Merges multiple ScatterField instances with associated bounding boxes into a single instance, resolving overlaps by keeping items from earlier fields in the input order.
|
| Array | hmap::scatter_field_to_heightmap (const ScatterField &field, glm::ivec2 shape, ScatterShape shape_type=SCATTER_SHAPE_DISK, float height_radius_ratio=1.0f, std::optional< uint32_t > class_id=std::nullopt, Array *p_rock_map=nullptr, uint32_t seed=0, const UvRect &uv_rect=UvRect::unit()) |
| | Converts a ScatterField into a heightmap by representing each scattered object as a local elevation increase on GPU.
|