Dynamically Revealing an Area Map in Unity
Автор: Captain Coder
Загружено: 2023-06-07
Просмотров: 2589
Описание:
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 you find this video helpful!
Map Overlay Demo: • Create a Dynamic World Map Overlay
Brass Dialog Image: https://opengameart.org/content/brass...
Source Code: https://gist.github.com/jcollard/cedc...
You can watch Captain Coder live on twitch at: http://captaincoder.live/
Join the crew and ask your own questions on discord: / discord
00:00 Intro
00:53 Adding Area Revealer Shape
01:46 Creating a Map Revealer Camera
02:40 Adding an Area Reveal Layer
03:22 Creating a Revealed Texture
04:30 Creating an Image Effect Shader
06:40 Rewriting Shader to Apply Mask
07:36 Adding Alpha to Shader
08:18 Adding Mask to Fragment Shader
10:35 Adding a Map Border Image
13:15 Outro
#unity #unity2d #learntocode #codingtutorial #gamedev
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: