BirdiePeep/UnityLight2d

Rotation of parent object of a Light messes with the Spread parameter

LosTChG opened this issue · 1 comments

In this image from the demo Scene, a rotation of 180 degrees is applied to the parent GameObject "Scene", which contains all lights. Green light has a spread value of 300º.
Is there a way to solve this "split light" phenomenon?
Thank you!

image

Yup, looks like I was only passing in the local rotation to the shader for light spread cutoff calculation. Pushed an updated, version 0.1.2 that should fix this issue.