Lens flare, sun and its positions in space

Hello, Im trying to implement a sun with lens flare. Ive created directional light, in its child I`ve put gameobject with sun image wich always looks at main camera, then in camera code I position sun at camera position and than move it backward about 1000 units. Everything is fine - sun looks like it should, but when I put lens flare on directional light - it appears in different position than sun image really is. And it really would look cool if main lens flare spot would be at sun image position.

Is there a way to do this? Rotating directional light seems to move lens flare position - so there must be a way to count it.

Best regards to whole Unity community.

in the lensflare,

set the variable,
directional - true

that will work

1 Like

Thank You! I didn`t get info about Your answer, but this is exacly what I needed, to many things :slight_smile: