Showing the changes to interface/src/main.cpp (1 of 6 files). Show all
Unified · Split
| @@ -762,9 +762,10 @@ void display(void) · 761 unmodified lines | ||
| 762 | 762 | if (::starsOn) { |
| 763 | 763 | // should be the first rendering pass - w/o depth buffer / lighting |
| 764 | 764 | |
| 765 | − glm::mat4 view; | |
| 766 | − glGetFloatv(GL_MODELVIEW_MATRIX, glm::value_ptr(view)); | |
| 767 | − stars.render(angleConvert<Degrees,Radians>(whichCamera.getFieldOfView()), aspectRatio, view); | |
| 765 | + | |
| 766 | + // finally render the starfield | |
| 767 | + stars.render(whichCamera.getFieldOfView(), aspectRatio, whichCamera.getNearClip()); | |
| 768 | + | |
| 768 | 769 | } |
| 769 | 770 | |
| 770 | 771 | glEnable(GL_LIGHTING); |