History

numerous starfield fixes

tosh committed 13 years ago

Commit 71553411 parent 1e58f6f6 files · +164 −144Browse files

Showing the changes to interface/src/main.cpp (1 of 6 files). Show all

Unified · Split

interface/src/main.cpp+4−3
@@ -762,9 +762,10 @@ void display(void) · 761 unmodified lines
762762 if (::starsOn) {
763763 // should be the first rendering pass - w/o depth buffer / lighting
764764
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+
768769 }
769770
770771 glEnable(GL_LIGHTING);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t