=== modified file 'sceneshading.cpp'
@@ -71,15 +71,11 @@
{
case 0:
glDisable(GL_TEXTURE_2D);
- glShadeModel(GL_SMOOTH);
+ mShader[0].use();
break;
case 1:
glDisable(GL_TEXTURE_2D);
- mShader[0].use();
- break;
- case 2:
- glDisable(GL_TEXTURE_2D);
- mShader[1].use();
+ mShader[1].use();
break;
};
@@ -105,12 +101,9 @@
{
case 0:
printf("Shading\n");
- printf(" Smooth shader model FPS: %u\n", mAverageFPS[mCurrentPart]);
+ printf(" GLSL per vertex lighting FPS: %u\n", mAverageFPS[mCurrentPart]);
break;
case 1:
- printf(" GLSL per vertex lighting FPS: %u\n", mAverageFPS[mCurrentPart]);
- break;
- case 2:
printf(" GLSL per pixel lighting FPS: %u\n", mAverageFPS[mCurrentPart]);
break;
}
@@ -135,6 +128,3 @@
mMesh.render_vbo();
}
-
-
-