Skip to content

Commit

Permalink
fix: rotate degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJPinto committed May 20, 2024
1 parent cae49a0 commit 8c9cd9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion engine/src/group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void Group::scale(float x, float y, float z) {

void Group::rotate(float angle, float x, float y, float z) {
glm::mat4 matrix = glm::mat4(1.0f);
matrix = glm::rotate(matrix, angle, glm::vec3(x, y, z));
matrix = glm::rotate(matrix, glm::radians(angle), glm::vec3(x, y, z));

this->transformations = this->transformations * matrix;
}
Expand Down
1 change: 0 additions & 1 deletion engine/src/light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ void setupMaterial(Material m) {
glMaterialfv(GL_FRONT, GL_SPECULAR, glm::value_ptr(m.specular));
glMaterialfv(GL_FRONT, GL_EMISSION, glm::value_ptr(m.emission));
glMaterialf(GL_FRONT, GL_SHININESS, m.shininess);
std::cout << "Shininess: " << m.shininess << std::endl;
}

void setupLights(std::vector<Light> lights) {
Expand Down

0 comments on commit 8c9cd9c

Please sign in to comment.