Heightmap probing ... done?

This commit is contained in:
2023-05-09 14:30:39 +03:00
parent 368e5621d7
commit abf1b26ba2
9 changed files with 322 additions and 42 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <cstddef>
#include <cmath>
#include <glm/vec3.hpp>
#include <vector>
namespace grbl {
struct heightmap {
static heightmap from_params(float from_x, float from_y, float to_x, float to_y, float resolution);
float from_x, from_y;
float to_x, to_y;
float resolution;
size_t x_segments, y_segments;
std::vector<glm::vec3> vertices;
};
}