- Home /
Lens Flares in 2d game
I'm experimenting with lighting in my 2d platformer and Lens Flare effect looks delicious, but I had never worked with it before and now failed to get it to work. For now I just placed it somewhere in the midway between background layer and gameplay layer as you can see here (in a future I'd place it between background layers): 
Great, it shining in a scene just as planned, and in 2d mode it looks fine 
But in the Game window there is no Flare at all...
Sorry, it might be against forum rules to ask unrelated questions, but I really would like to know how you have managed to get that pixel perfect 2D look. Are your sprites scaled 1:1 and then zoomed in with orthographic scale in unity?
In our game we use sprites with 16 pixel per units, orthographic camera and asset called "Pixel Perfect", which changes camera size to nice pixel-perfect scale. Also as you may see in Scene view we use nice ProGrids with 0.0625 scale value, which give us one-pixel grid.
So, all work lies on Pixel Perfect asset
Answer by Cruz.Guinho · Mar 11, 2015 at 12:40 PM
Do you forgot to add the "Flare Layer" component in your camera?
oh, stupid me! I don't even know about this Flare Layer component, thanks alot!
Answer by g8minhquan · Oct 23, 2014 at 09:50 AM
I would check these:
z depth of the main camera & the flare object. It can be behind the camera
Make sure main camera's culling mask = "Everything"
unfortunately I had checked both, camera is in 0 on Z axis, flare is z=3 (but I also tried -3), culling mask is Everything
Answer by Fatsludge · Jun 04, 2016 at 09:35 AM
Sorry for the late reply. I had the same issue, and I solved it just by changing camera projection from perspective to ortographic
Your answer
Follow this Question
Related Questions
2D Animation does not start 1 Answer
Animation won't play more than once 1 Answer
Move Object With Angle In 2D 1 Answer
That how it looks in the game.