I wanted to ask if you can use box2d lights so you can see only objects that are in the lights area. For example i have a flashlight and only want to see game objects in the light. I managed to do something like this but the problem is that the sprites of the game objects lose their color intensity because I render lights on top of sprites and the game itself doesn't look good because of this (even though it is the effect that i want).I used box2d bodies with user data containing sprites. I can't figure any way out. Is there any proper way to use box2d lights library to make these objects visible and with their real color? (I am setting lights to X-rays to do this; also I am using it with libgdx in java).
public void render(float delta) { renderSprites(); renderLights();}and the render lights would be a world with a rayHandler attached and the methodrayHandler.updateAndRender();would be called after drawing the sprites which would cause the color to be really washed off when you put the light on the sprites. - Andrew