Bug fix in vertex order of inner disk (fan) of the sky dome.
This commit is contained in:
+5
-2
@@ -300,12 +300,12 @@ void fgSkyRender( void ) {
|
|||||||
xglBegin( GL_TRIANGLE_FAN );
|
xglBegin( GL_TRIANGLE_FAN );
|
||||||
xglColor4fv(l->sky_color);
|
xglColor4fv(l->sky_color);
|
||||||
xglVertex3f(0.0, 0.0, CENTER_ELEV);
|
xglVertex3f(0.0, 0.0, CENTER_ELEV);
|
||||||
for ( i = 0; i < 12; i++ ) {
|
for ( i = 11; i >= 0; i++ ) {
|
||||||
xglColor4fv( inner_color );
|
xglColor4fv( inner_color );
|
||||||
xglVertex3fv( inner_vertex[i] );
|
xglVertex3fv( inner_vertex[i] );
|
||||||
}
|
}
|
||||||
xglColor4fv( inner_color );
|
xglColor4fv( inner_color );
|
||||||
xglVertex3fv( inner_vertex[0] );
|
xglVertex3fv( inner_vertex[11] );
|
||||||
xglEnd();
|
xglEnd();
|
||||||
|
|
||||||
// Draw the middle ring
|
// Draw the middle ring
|
||||||
@@ -362,6 +362,9 @@ void fgSkyRender( void ) {
|
|||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.18 1999/02/01 21:09:00 curt
|
||||||
|
// Bug fix in vertex order of inner disk (fan) of the sky dome.
|
||||||
|
//
|
||||||
// Revision 1.17 1998/12/09 18:50:12 curt
|
// Revision 1.17 1998/12/09 18:50:12 curt
|
||||||
// Converted "class fgVIEW" to "class FGView" and updated to make data
|
// Converted "class fgVIEW" to "class FGView" and updated to make data
|
||||||
// members private and make required accessor functions.
|
// members private and make required accessor functions.
|
||||||
|
|||||||
Reference in New Issue
Block a user