HighMap library (C++)
Loading...
Searching...
No Matches
export_asset.cpp File Reference

Namespaces

namespace  hmap
 

Functions

void hmap::helper_build_mesh_masked (aiMesh *p_mesh, const Array &array, const Array &mask, float elevation_scaling)
 
void hmap::helper_build_mesh (aiMesh *p_mesh, const Array &array, MeshType mesh_type, float elevation_scaling, float max_error)
 
bool hmap::export_asset (const std::string &fname, const Array &array, MeshType mesh_type=MeshType::TRI, AssetExportFormat export_format=AssetExportFormat::GLB2, float elevation_scaling=0.2f, const std::string &texture_fname="", const std::string &normal_map_fname="", float max_error=5e-4f)
 Exports a heightmap to various 3D file formats.
 
bool hmap::export_asset (const std::string &fname, const Array &array, const Array &mask, AssetExportFormat export_format=AssetExportFormat::GLB2, float elevation_scaling=0.2f, const std::string &texture_fname="", const std::string &normal_map_fname="")