A deferred shading pipeline – a few questions

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
sparkprime
Ogre Magi
Posts: 1137
Joined: Mon May 07, 2007 3:43 am
Location: Ossining, New York
x 13

Re: A deferred shading pipeline – a few questions

Post by sparkprime »

If you're in the volume, change the depth function AND invert the triangle winding. I think the Ogre demo actually does this anyway. I use 2 passes -- one a batch of all 'internal' lights and one for all 'external' lights.