dungeon_crawler

diff prototype/src/renderer.cc @ 51:d57df51f6b50

- fixed audio panning (listener direction) - particles had no fog - sound sources were not destroyed properly
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 18 Sep 2012 09:40:56 +0300
parents f3030df27110
children f71381c9e245
line diff
     1.1 --- a/prototype/src/renderer.cc	Tue Sep 18 04:45:46 2012 +0300
     1.2 +++ b/prototype/src/renderer.cc	Tue Sep 18 09:40:56 2012 +0300
     1.3 @@ -85,9 +85,14 @@
     1.4  void FwdRenderer::render(const Level *level) const
     1.5  {
     1.6  	glPushAttrib(GL_ENABLE_BIT);
     1.7 +	glEnable(GL_LIGHTING);
     1.8 +	glEnable(GL_FOG);
     1.9 +	glFogi(GL_FOG_MODE, GL_LINEAR);
    1.10 +	glFogf(GL_FOG_START, 3.0f);
    1.11 +	glFogf(GL_FOG_END, 6.0f);
    1.12 +
    1.13  	glUseProgram(sdrprog);
    1.14  
    1.15 -	glEnable(GL_LIGHTING);
    1.16  	level->draw();
    1.17  
    1.18  	glUseProgram(0);