libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
257 stars 82 forks source link

soft shadow length is set to distance * 0.1 on creation of light #80

Closed piotr-j closed 9 years ago

piotr-j commented 9 years ago

Currently softShadowLength of Light has hard coded default. That results in unexpected behaviour when lights distance is near or below this value, see #79. This change makes sure that the shadow length always has sane value.

rinold commented 9 years ago

Thanks! And thanks additionally about care for all that docs and changes stuff! :)