Moonflow-Studio/Moonflow-Lensflare-System

URPLensFlare.CheckIn() ?

Closed this issue · 1 comments

(Vector3.Dot(lightSource[lightIndex].transform.position - _camera.transform.position, _camera.transform.forward) < 0.25f)
if light is directional ,maybe use lightSource[lightIndex].transform.forward to judge is better.
(lightSource[lightIndex].directionalLight && Vector3.Dot(-lightSource[lightIndex].transform.forward, _camera.transform.forward) < 0f) this ?

Directional mode is considered in GetSourceCoordinate(). It's "sourceCoordinate" property is calculated differently with point light and "(Vector3.Dot(lightSource[lightIndex].transform.position - _camera.transform.position, _camera.transform.forward) < 0.25f)" is actually just used for point light