Ssg tweaks.
This commit is contained in:
parent
2414e3b55e
commit
35dc68a0d0
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ $1 = "--full" ]; then
|
if [ "x$1" = "x--full" ]; then
|
||||||
echo "Running full screen ..."
|
echo "Running full screen ..."
|
||||||
shift
|
shift
|
||||||
WINDOW=NO
|
WINDOW=NO
|
||||||
|
|
|
@ -378,7 +378,7 @@ static void fgRenderFrame( void ) {
|
||||||
// xglMaterialfv (GL_FRONT, GL_DIFFUSE, white);
|
// xglMaterialfv (GL_FRONT, GL_DIFFUSE, white);
|
||||||
}
|
}
|
||||||
|
|
||||||
global_tile_mgr.render();
|
// global_tile_mgr.render();
|
||||||
|
|
||||||
// ssg test
|
// ssg test
|
||||||
|
|
||||||
|
@ -425,7 +425,8 @@ static void fgRenderFrame( void ) {
|
||||||
sgMat4 sgVIEW;
|
sgMat4 sgVIEW;
|
||||||
sgMultMat4( sgVIEW, current_view.sgVIEW, sgTRANS );
|
sgMultMat4( sgVIEW, current_view.sgVIEW, sgTRANS );
|
||||||
ssgSetCamera( sgVIEW );
|
ssgSetCamera( sgVIEW );
|
||||||
// ssgSetCamera( current_view.sgVIEW );
|
|
||||||
|
global_tile_mgr.prep_ssg_nodes();
|
||||||
ssgCullAndDraw( scene );
|
ssgCullAndDraw( scene );
|
||||||
|
|
||||||
xglDisable( GL_TEXTURE_2D );
|
xglDisable( GL_TEXTURE_2D );
|
||||||
|
|
Loading…
Reference in a new issue