✔️ Tested in 2020.3 ➕ 2020.1
Getting the current time in shaders is easier that it seems at first! Unity provides a shader graph node and many HLSL variables for your every need, but what exactly do they contain? When does the time counter begin? Is it affected by time scaling? I look into the URP source to find out. Time allows you to animate in shaders, which is super powerful! I showcase two animating shaders: one which loops, and one which starts at a specified time.
👋 Subscribe for weekly game development videos!
► ✨ Watch the full tutorial on Wednesday! ✨
► https://www.youtube.com/c/nedmakesgam...
👑 Join my Patreon to watch videos early, download all project files, vote on future topics, and more! Thank you so much!
► / nedmakesgames
🔗 Check out my website for a searchable list of tutorials!
► https://nedmakesgames.github.io
🔴 Twitch ► / nedmakesgames
🐦 Twitter ► / nedmakesgames
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ► / nedmakesgames
👽 Reddit ► / nedmakesgames
🎶 TikTok ► / nedmakesgames
☕ Ko-fi ► https://ko-fi.com/nedmakesgames
💬 Video transcript
► https://docs.google.com/document/d/1b...
⏲️ Timestamps:
0:00 Intro
0:30 Finding the source
2:03 A looping animation
2:40 A start time animation
3:16 Pausing
3:32 Wrap up and credits
🎖️ Credits, references and further reading:
• Unity Technologies: URP source and documentation
• Keijiro Takahashi: AngleAxis3x3 - https://gist.github.com/keijiro/ee439...
Music:
Bleeping Demo by Kevin MacLeod
Link: https://incompetech.filmmusic.io/song...
License: https://filmmusic.io/standard-license
#GameDev #IndieDev #Unity
Смотрите видео Time and Animation in Shaders! URP Shader Graph and HLSL! ✔️ 2021.1 | Unity Game Dev Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Ned Makes Games 02 Июнь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,007 раз и оно понравилось 240 людям.