Varying simultaneous Fog of War views for Local Multiplayer
Hello,
I am trying to create a "local multiplayer" MOBA-style game for a Unity machine-learning environment. This environment has multiple agents/players on a single map with different fog-of-war views for each player. I'm having trouble implementing such a fog-of-war system. From what I have found online, most fog-of-war implementations either use a projector (such as Andrew Hung's implementation) or shaders pulling from a texture mask and directly changing the environment appearance. However, from what I can tell these approaches directly change the map look, rather than change how the map appears per-camera (which is fine for those projects because single player view per client).
Essentially, I am trying to create a fog-of-war implementation where different cameras on the same map can see different fog-of-wars. The more efficient the method the better - I'm willing to sacrifice quality for performance since I'm trying to use this for machine learning. How can I go about doing this? I am using Universal Render Pipeline.
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613050512im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Should occlusion culling be used in multiplayer games? 0 Answers
Disable mesh renderer of gameObject for one camera only (without use of culling masks)? 0 Answers
RenderTexture map collisions and interactions. 0 Answers
How to make a 2D fog of war? 0 Answers
Bluetooth Connection for Android Multiplayer Game? 0 Answers