Commit 6aa2dd73 authored by Sadman Kazi's avatar Sadman Kazi 🎸

Fix uniform transform's location not being found

parent 4b2dcd51
......@@ -8,5 +8,5 @@ uniform mat4 u_transform;
void main () {
color = vec4(clamp(position, 0.0, 1.0), 1.0);
gl_Position = vec4(1.5*position, 1.0);
gl_Position = u_transform * vec4(1.5*position, 1.0);
}
......@@ -84,7 +84,7 @@ void Game::update() {
float absSinCounter = abs(sinCounter);
//transform->GetPos().x = sinCounter;
//m_transform->getRot().y = sinCounter;
m_transform->getRot().y = sinCounter;
//transform->GetRot().z = sinCounter;
m_shader->setUniformMat4("u_transform", m_transform->getProjectedModel(m_camera));
......
Markdown is supported
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