If I don't swap to 3d at the end of draw(), the light doesn't light the 3d objects in the scene. But if i do swap, it lights the 2d hud stuff as well, so that if i'm facing away from the light, the 2d hud is black. How can I exclude certain objects from being hit by lights?
I'm trying to load some colors from a text file. It seems like I'm loading the color data successfully, but I can only get them to work for background() - not for fill(). This is the code I'm using: