So I have a game that uses turrets, and I want to use the line of sight object to detect players, and show the line of sight cone for the player to see. However I also want it to occlude to the walls like below:
This one was done by blending a light cone graphic with a canvas with rendered "shadows", which is very effective but very costly, especially if you are using multiple turrets.
Any ideas for a more simpler method? Probably one that actually uses the line of sight behaviour?