So what you see here is a TerrainQuad on the ground… no issues with the lighting. The wall you see is a set of batches of quads, all with the exact same material. The lighting in the scene are two point lights.
[java]pl.setColor(new ColorRGBA(.5f, .3f, 0f, .1f));
pl.setRadius(8f);
pl.setPosition(Vector3f.ZERO);
rootNode.addLight(pl);
pl2.setColor(new ColorRGBA(1f, 1f, 1f, .5f));
pl2.setRadius(5f);
pl2.setPosition(Vector3f.ZERO);
rootNode.addLight(pl2);[/java]
Both point lights are updated to follow the camera, with “pl” being offset +1 on the Y axis.
In the image you can see that wall looks two different colors… it’s not. Like I said all of the quads in the batch are the same exact material, and in fact if I turn the camera slightly to the right, this artifact will go away.
Has anyone encountered this? Know a way to fix it?
By the way, this is how they’re attached. I am assuming here that they are two different batches, though all of the batches are still using the same material.
[java]for(BatchNode b : wallBatches) {
Walls.add(b);
rootNode.attachChild(b);
}[/java]