0

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

Sebastian
  • 5,721
  • 3
  • 43
  • 69
King Gamer
  • 23
  • 4

2 Answers2

1

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

Atyoum Ustainof
  • 394
  • 1
  • 8
0

how light behave when it has small number of rays Sorry my drawing is awful. more rays = more accurate shadows. to keep good level of performance try to reduce ray length . and make ambient light more bright to fake light level. make sure x-ray disabled. set soft to false also is good for performance. because we don't have any code it is hard to guess what is going on. i am just suggesting

Atyoum Ustainof
  • 394
  • 1
  • 8