Gui: Add 3 point lighting

This commit is contained in:
Kacper Donat
2025-01-25 20:14:04 +01:00
parent 4e5bd67291
commit 8dbc4042b3
13 changed files with 856 additions and 999 deletions

View File

@@ -1253,7 +1253,7 @@ bool InventorLoader::isValid() const
namespace Base
{
BaseExport Vector3f to_vector(std::string str)
BaseExport Vector3f stringToVector(std::string str)
{
std::string_view view = str;
if (!boost::starts_with(view, "(") || !boost::ends_with(str, ")")) {
@@ -1282,4 +1282,9 @@ BaseExport Vector3f to_vector(std::string str)
return vec;
}
BaseExport std::string vectorToString(Vector3f vec)
{
return fmt::format("({},{},{})", vec.x, vec.y, vec.z);
}
} // namespace Base