Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2325,10 +2325,15 @@ void Application::updateShadowMap() { · 2324 unmodified lines | ||
| 2325 | 2325 | // store view matrix without translation, which we'll use for precision-sensitive objects |
| 2326 | 2326 | updateUntranslatedViewMatrix(); |
| 2327 | 2327 | |
| 2328 | + glEnable(GL_POLYGON_OFFSET_FILL); | |
| 2329 | + glPolygonOffset(1.1f, 4.0f); | |
| 2330 | + | |
| 2328 | 2331 | _avatarManager.renderAvatars(Avatar::SHADOW_RENDER_MODE); |
| 2329 | 2332 | _particles.render(OctreeRenderer::SHADOW_RENDER_MODE); |
| 2330 | 2333 | _models.render(OctreeRenderer::SHADOW_RENDER_MODE); |
| 2331 | 2334 | |
| 2335 | + glDisable(GL_POLYGON_OFFSET_FILL); | |
| 2336 | + | |
| 2332 | 2337 | glPopMatrix(); |
| 2333 | 2338 | |
| 2334 | 2339 | glMatrixMode(GL_PROJECTION); |