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 | if (::starsOn) { | 762 | if (::starsOn) { |
| 763 | // should be the first rendering pass - w/o depth buffer / lighting | 763 | // should be the first rendering pass - w/o depth buffer / lighting |
| 764 | 764 | ||
| 765 | glm::mat4 view; | 765 | |
| 766 | glGetFloatv(GL_MODELVIEW_MATRIX, glm::value_ptr(view)); | 766 | // finally render the starfield |
| 767 | stars.render(angleConvert<Degrees,Radians>(whichCamera.getFieldOfView()), aspectRatio, view); | 767 | stars.render(whichCamera.getFieldOfView(), aspectRatio, whichCamera.getNearClip()); |
| 768 | |||
| 768 | } | 769 | } |
| 769 | 770 | ||
| 770 | glEnable(GL_LIGHTING); | 771 | glEnable(GL_LIGHTING); |