Patches from Norm Vine to get clouds working (and add some debugging
information).
This commit is contained in:
@@ -964,6 +964,9 @@ SKYRESULT SkyArchive::Load(const char* pFileName)
|
||||
|
||||
FILE* pSrcFile = NULL;
|
||||
|
||||
char buf[512];
|
||||
sprintf(buf,"SkyArchive::Load(%s)",pFileName);
|
||||
SkyTrace(buf);
|
||||
if (NULL == (pSrcFile = fopen(pFileName, "rb"))) // file opened successfully
|
||||
{
|
||||
SkyTrace("Error: SkyArchive::Load(): failed to open file for reading.");
|
||||
|
||||
@@ -222,11 +222,12 @@ void SkySceneLoader::Draw()
|
||||
|
||||
//_ssgCurrentContext->cull(r) ;
|
||||
//_ssgDrawDList () ;
|
||||
|
||||
|
||||
SceneManager::InstancePtr()->Update(*pCam);
|
||||
SceneManager::InstancePtr()->Display(*pCam);
|
||||
|
||||
|
||||
//pLight->Display(); // draw the light position to debug with sun position
|
||||
|
||||
glMatrixMode ( GL_MODELVIEW ) ;
|
||||
glLoadIdentity () ;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user