Implement raytraced lightmap

This commit is contained in:
2019-01-09 23:32:10 +01:00
parent 3dde1e1083
commit 9787175b13
12 changed files with 240 additions and 28 deletions

View File

@@ -125,6 +125,8 @@ public:
class HeightmapPlane : public Shape
{
public:
std::vector<GLuint> idx;
std::vector<vertex_t> vertices;
bool create(float w, float h, const Image& img, float scale, float height);
bool create(float w, float h, int div);
};