I have some quads with solid colors laid out flat in my game. If I disable the lightState like so
lightState.setEnabled(false);
Then you can see them fine with their colors. If however, I enable it and add in some lights (I took these from an example) like so
SpotLight sp1 = new SpotLight();
sp1.setDiffuse(new ColorRGBA(0.0f, 1.0f, 0.0f, 1.0f));
sp1.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));
sp1.setDirection(new Vector3f(60, 0, 100));
sp1.setLocation(new Vector3f(60, 30, 100));
sp1.setAngle(15);
sp1.setEnabled(true);
SpotLight sp2 = new SpotLight();
sp2.setDiffuse(new ColorRGBA(1.0f, 0.0f, 0.0f, 1.0f));
sp2.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));
sp2.setDirection(new Vector3f(1, -0.5f, 0));
sp2.setLocation(new Vector3f(-25, 10, 0));
sp2.setAngle(15);
sp2.setEnabled(true);
DirectionalLight dr = new DirectionalLight();
dr.setDiffuse(new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f));
dr.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));
dr.setSpecular(new ColorRGBA(1.0f, 0.0f, 0.0f, 1.0f));
dr.setDirection(new Vector3f(50, 0 , -100));
dr.setEnabled(true);
lightState.detachAll();
lightState.attach(sp1);
lightState.attach(dr);
lightState.attach(sp2);
Then all my quads become the same color gray. I also have some textured models in the scene and the lights work fine on them. How do I get the quads to work with the lighting? Also, my quads are rotated 90 degrees, I'm not sure if that helps at all.