Help in lighting

Hi,

I’m new at this, but I’m making a game which includes a maze,so In this maze I am having a light on one wall which makes its texture visible, and darkness on the wall opposite to it rendering me unable to see its texture,this is happening all over the scene. what should I do?



this is the light management code of my game:





private void setUpLight() {



AmbientLight al = new AmbientLight();

al.setColor(ColorRGBA.White.mult(1.3f));

rootNode.addLight(al);

DirectionalLight dl = new DirectionalLight();

dl.setColor(ColorRGBA.White);

dl.setDirection(new Vector3f(-2.8f, -6f, 3f).normalizeLocal());

rootNode.addLight(dl);

}





hope it helps, thank you in advance for your support

Since your ambient light is already more than white I guess the directional light makes the one side “over shine”? Also are you sure the normals of your walls are correctly pointing inside?