Showing the changes to interface/src/Application.cpp (1 of 10 files). Show all
Unified · Split
| @@ -2744,32 +2744,6 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) { · 2743 unmodified lines | ||
| 2744 | 2744 | // disable specular lighting for ground and voxels |
| 2745 | 2745 | glMaterialfv(GL_FRONT, GL_SPECULAR, NO_SPECULAR_COLOR); |
| 2746 | 2746 | |
| 2747 | − //draw a grid ground plane.... | |
| 2748 | − if (Menu::getInstance()->isOptionChecked(MenuOption::GroundPlane)) { | |
| 2749 | − PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), | |
| 2750 | − "Application::displaySide() ... ground plane..."); | |
| 2751 | − | |
| 2752 | − // draw grass plane with fog | |
| 2753 | − glEnable(GL_FOG); | |
| 2754 | − glEnable(GL_NORMALIZE); | |
| 2755 | − const float FOG_COLOR[] = { 1.0f, 1.0f, 1.0f, 1.0f }; | |
| 2756 | − glFogfv(GL_FOG_COLOR, FOG_COLOR); | |
| 2757 | − glFogi(GL_FOG_MODE, GL_EXP2); | |
| 2758 | − glFogf(GL_FOG_DENSITY, 0.025f); | |
| 2759 | − glPushMatrix(); | |
| 2760 | − const float GRASS_PLANE_SIZE = 256.0f; | |
| 2761 | − glTranslatef(-GRASS_PLANE_SIZE * 0.5f, -0.01f, GRASS_PLANE_SIZE * 0.5f); | |
| 2762 | − glScalef(GRASS_PLANE_SIZE, 1.0f, GRASS_PLANE_SIZE); | |
| 2763 | − glRotatef(-90.0f, 1.0f, 0.0f, 0.0f); | |
| 2764 | − glColor3ub(70, 134, 74); | |
| 2765 | − const int GRASS_DIVISIONS = 40; | |
| 2766 | − _geometryCache.renderSquare(GRASS_DIVISIONS, GRASS_DIVISIONS); | |
| 2767 | − glPopMatrix(); | |
| 2768 | − glDisable(GL_FOG); | |
| 2769 | − glDisable(GL_NORMALIZE); | |
| 2770 | − | |
| 2771 | − //renderGroundPlaneGrid(EDGE_SIZE_GROUND_PLANE, _audio.getCollisionSoundMagnitude()); | |
| 2772 | − } | |
| 2773 | 2747 | // Draw Cloud Particles |
| 2774 | 2748 | if (Menu::getInstance()->isOptionChecked(MenuOption::ParticleCloud)) { |
| 2775 | 2749 | _cloud.render(); |