You're right. I have no idea why those are commented out...it looks
like debugging stuff that was left in. I just uncommented them (and
removed the IF statements) in my own copy and am testing. I will
check in if everything seems ok.
Be warned that the fixed function will likely be removed or wrapped in
a slightly different API at some point fairly soon. It slows G3D down
a little to have to track fixed function state.
-m
Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan
On Mon, Feb 6, 2012 at 8:47 PM, David Schroeder
<schroeder.davi
...@gmail.com> wrote:
> I'm trying to render a scene with colored lights and am having
> troubles getting lighting to show up as anything but white. I believe
> I'm using the fixed function pipeline since I'm trying to avoid
> SuperShader for the moment to try to make sure this code works on as
> many machines as possible.
> It seems like in revision 45 ("merged shadowed and unshadowed lights,
> removed tonemap") the calls to glLightfv for the diffuse components of
> GLights were commented out. These calls are on line RenderDevice.cpp:
> 3074 in svn HEAD. I don't understand enough of G3D's internals to
> know why these changes were made, so any insight that you could offer
> would be greatly appreciated.
> Cheers!