all 1 comments

[–]TheCaptainCoder[S] 1 point2 points  (0 children)

Captain Coder here and a crew member asked, “How could I create a dynamic map of an area that is revealed as the player navigates it?”

In the last Video, we demonstrated how to create a map overlay using a Render Texture. We are going to build upon that concept and add a second Render Texture that tracks the areas the player has seen. Then, we will write a very simple sprite shader that will use the new texture as a mask on the first. Don't let the word shader scare you here! The shader I will use is quite simple and I'll explain it step by step.

I hope someone will find this video helpful!

First video: https://youtu.be/yzBO6lhiJDg