Search code examples
libgdxbox2dbox2dlights

box2d light - the shadow is the same lighting of the color


I am new to libGDX and Box2dlights i made a point light but there is a very weird problem the shadow is the same color of the point light - this is so weird when my sprite cross the light range it casts a shadow with the same color of the point light


Solution

  • try setting .setSoftnessLength to 0f setSoft(false) maybe add more light rays (50-100 is good enough in 80% of cases )