EQS Fog of war/Field of vision system

So this is how the almost acceptable system looks like, still have the problem of clipping when moving the camera so advice would be nice.

Google drive link:
https://drive.google.com/folderview?id=0B1_mL6EWhs3yY3d3aDdFUmRfd3M