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
Asked
Active
Viewed 574 times
0
-
And maybe a screenshot for clarification... – Sebastian Aug 05 '16 at 08:00
2 Answers
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
-
50-100 rays looks like a performance killer to me and I don't see any reason why it could help here... – Sebastian Aug 05 '16 at 08:03
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