Stop spinning quads around like a madman
This commit is contained in:
parent
d3506737f0
commit
cc697b7a7c
|
@ -14,13 +14,6 @@ glm::vec2 Quad::get_position_vector() {
|
|||
}
|
||||
|
||||
void Quad::draw(){
|
||||
float time = glfwGetTime();
|
||||
|
||||
m_rotation = 2*sin(time);
|
||||
|
||||
m_pos_x = 0.25*sin(time);
|
||||
m_pos_y = 0.5*cos(time);
|
||||
|
||||
glUniform2f(m_uniform_data.world_pos, m_pos_x, m_pos_y);
|
||||
glUniform1f(m_uniform_data.rotation, m_rotation);
|
||||
|
||||
|
|
Loading…
Reference in New Issue