Bladeren bron

Hotfix Main.cpp and Weapon.cpp

Kenneth van Ewijk 9 jaren geleden
bovenliggende
commit
5df4a1d8d0
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      Main.cpp
  2. 1 1
      Weapon.cpp

+ 1 - 1
Main.cpp

@@ -160,7 +160,7 @@ void configureOpenGL()
 	glEnable(GL_ALPHA_TEST);
 	glAlphaFunc(GL_GREATER, 0.01f);
 
-	Lighting
+	//Lighting
 	GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
 	GLfloat mat_shininess[] = { 20.0 };
 	GLfloat light_position[] = { 30.0, 30.0, 30.0, 1.0 };

+ 1 - 1
Weapon.cpp

@@ -20,7 +20,7 @@ void Weapon::draw_weapon(void)
 	if (weaponModel != nullptr)
 	{				
 		glScalef(scale,scale,scale);
-		glRotatef(rotX, 1, 0, 0);
+		glRotatef(135, 1, 0, 0);
 		weaponModel->draw();		
 	}		
 }