Hotfix Main.cpp and Weapon.cpp
This commit is contained in:
@@ -160,7 +160,7 @@ void configureOpenGL()
|
|||||||
glEnable(GL_ALPHA_TEST);
|
glEnable(GL_ALPHA_TEST);
|
||||||
glAlphaFunc(GL_GREATER, 0.01f);
|
glAlphaFunc(GL_GREATER, 0.01f);
|
||||||
|
|
||||||
Lighting
|
//Lighting
|
||||||
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||||
GLfloat mat_shininess[] = { 20.0 };
|
GLfloat mat_shininess[] = { 20.0 };
|
||||||
GLfloat light_position[] = { 30.0, 30.0, 30.0, 1.0 };
|
GLfloat light_position[] = { 30.0, 30.0, 30.0, 1.0 };
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ void Weapon::draw_weapon(void)
|
|||||||
if (weaponModel != nullptr)
|
if (weaponModel != nullptr)
|
||||||
{
|
{
|
||||||
glScalef(scale,scale,scale);
|
glScalef(scale,scale,scale);
|
||||||
glRotatef(rotX, 1, 0, 0);
|
glRotatef(135, 1, 0, 0);
|
||||||
weaponModel->draw();
|
weaponModel->draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user