I've been trying to do some simple directional lighting in OpenGL (directly) and I just can't get it to work. For some reason, although the shading changes on the two rectangles that I'm drawing, they are always the same, despite the shapes being at right angles to eachother. Am I overlooking anything simple, and are there any examples of this working? (I don't want to use the default processing lights() because I am hoping to try to get bump mapping and some other things that need GL directly working eventually).
Here's a stripped down version of my program that highlights the problem:
Here's my test program. It used to work under old versions of Processing and now breaks with:
"The type sketchName.MouseWHeelListnerClass must implement the inherited abstract method MouseWheelListner.mouseWheelMoved(MouseWheelEvent)". I'm pretty sure it does. I've checked for capitalization errors and the like. This code used to work, now it breaks. Does anyone have any ideas on how to make this work?
I just tested it and it works fine in Processing Beta 148. Why not now?