lol, its a sphere now
This commit is contained in:
parent
cfbcc73549
commit
b9de341ed9
|
@ -50,7 +50,7 @@ void PlanetFaceNode::draw(Camera* camera, Shader* shader)
|
||||||
shader->use();
|
shader->use();
|
||||||
|
|
||||||
camera->shaderViewProjection(*shader);
|
camera->shaderViewProjection(*shader);
|
||||||
shader->setUniform("modelMatrix", glm::translate(glm::mat4(1.0f), this->getAbsolutePosition()));
|
shader->setUniform("modelMatrix", glm::translate(glm::mat4(1.0f), m_planet->getPosition()));
|
||||||
|
|
||||||
glDrawElements(GL_TRIANGLES, m_indices, GL_UNSIGNED_INT, nullptr);
|
glDrawElements(GL_TRIANGLES, m_indices, GL_UNSIGNED_INT, nullptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue