mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Render the stars, when enabled, before the atmosphere.
This commit is contained in:
parent
4ed7176ff6
commit
8a21823469
1 changed files with 5 additions and 5 deletions
|
@ -683,11 +683,6 @@ void renderViewFrustum(ViewFrustum& viewFrustum) {
|
|||
void displaySide(Camera& whichCamera) {
|
||||
glPushMatrix();
|
||||
|
||||
// draw the sky dome
|
||||
if (::atmosphereOn) {
|
||||
environment.renderAtmosphere(whichCamera);
|
||||
}
|
||||
|
||||
if (::starsOn) {
|
||||
// should be the first rendering pass - w/o depth buffer / lighting
|
||||
|
||||
|
@ -695,6 +690,11 @@ void displaySide(Camera& whichCamera) {
|
|||
stars.render(whichCamera.getFieldOfView(), aspectRatio, whichCamera.getNearClip());
|
||||
}
|
||||
|
||||
// draw the sky dome
|
||||
if (::atmosphereOn) {
|
||||
environment.renderAtmosphere(whichCamera);
|
||||
}
|
||||
|
||||
glEnable(GL_LIGHTING);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
||||
|
|
Loading…
Reference in a new issue