- Home /
Lens Flares shines through (maya)-object geometry..
Hi,
ive made a simple project where a sun is rotating around a object (created in maya) 360 degrees. For this light ive activated lens flares. If i start the scene and orbit through the mousescript that the object is between camera and light-source, the lens flares shines through the object.
If i create a simple cube and position this one between light and camera, it works perfect and no lensflares are shown.
Does anybody know something about this "bug"?
Thanks for your time
Answer by spinaljack · Apr 19, 2010 at 12:50 PM
From http://unity3d.com/support/documentation/Components/class-Flare.html
Lens Flares are blocked by Colliders. A Collider in-between the Flare GameObject and the Camera will hide the Flare, even if the Collider does not have a Mesh Renderer.
Yes, nice. Ive adden an meshcollider and now it works. Thanks for your fast answer.
Your answer
![](https://koobas.hobune.stream/wayback/20220612173546im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is there a way to emulate a touch in the Game view of the editor 1 Answer
Execute editor window scripts when project errors are present 0 Answers
Keyboard shortcut to pause game view play? 2 Answers
loading 3d models in unity editor and in deployed app 1 Answer
display editor script in the game window 0 Answers