Commit 54319755 authored by Håkon Berg Borhaug's avatar Håkon Berg Borhaug
Browse files

Misc.

parent 91538da4
......@@ -32,7 +32,7 @@ private:
// texture coord array
std::vector< glm::vec3 > textureArray_;
unsigned int positions_[3 * 4 * 3] = {
float positions_[3 * 4 * 4] = {
// Left plane
-100.0f, -50.0f, 50.0f,
0.0f, -50.0f, 50.0f,
......
......@@ -10,29 +10,7 @@ Landscape::~Landscape()
void Landscape::privateInit()
{
// Left plane
vertexArray_.push_back(glm::vec3(-100.0f, -50.0f, 50.0f));
vertexArray_.push_back(glm::vec3(0.0f, -50.0f, 50.0f));
vertexArray_.push_back(glm::vec3(0.0f, -50.0f, -50.0f));
vertexArray_.push_back(glm::vec3(-100.0f, -50.0f, -50.0f));
// Middle plane
vertexArray_.push_back(glm::vec3(0.0f, -50.0f, 50.0f));
vertexArray_.push_back(glm::vec3(100.0f, -50.0f, 50.0f));
vertexArray_.push_back(glm::vec3(100.0f, -50.0f, -50.0f));
vertexArray_.push_back(glm::vec3(0.0f, -50.0f, -50.0f));
// Right plane
vertexArray_.push_back(glm::vec3(100.0f, -50.0f, 50.0f));
vertexArray_.push_back(glm::vec3(200.0f, -50.0f, 50.0f));
vertexArray_.push_back(glm::vec3(200.0f, -50.0f, -50.0f));
vertexArray_.push_back(glm::vec3(100.0f, -50.0f, -50.0f));
// Background
vertexArray_.push_back(glm::vec3(-1000.0f, -1000.0f, -500.0f));
vertexArray_.push_back(glm::vec3(1000.0f, -1000.0f, -500.0f));
vertexArray_.push_back(glm::vec3(1000.0f, 1000.0f, -500.0f));
vertexArray_.push_back(glm::vec3(-1000.0f, 1000.0f, -500.0f));
vbo = VertexBuffer(vertexArray_.data(), vertexArray_.size() * 3 * sizeof(float));
layout.Push<float>(3);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment