- Home /
LOS Lighting - topdown 2d game
Hello ,
I have Unity3D 4.5 Free installed on my PC and i want to know how to create a Line Of Sight Lighting (Picture Attached).
I have written the algorithm based on this page(mostly). (Casting rays and creating a triangle fan)
This page was also helpful : Line Of Sight In a Tile Based World ,This free asset was also helpful(Used meshes) : 2D Dynamic Lights and Shadows
Similar Games : Monaco , Gish
I want outside the LOS to be completely dark.
So far I've tested :
Meshes - The problem was that it isn't light and when i set the ambient light to black, i can't see part of the plane that is around the "Character"(that has the light) as you can see in the second picture.
Unity built-in Lights - It can't do such think(i guess).
-How can i use FOWs to do such think, Is there a way to do it with textures Or Light Cookies ?