Time and Animation in Shaders! URP Shader Graph and HLSL! ✔️ 2021.1 | Unity Game Dev Tutorial

Published: 02 June 2021
on channel: Ned Makes Games
9,007
240

✔️ 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


Watch video Time and Animation in Shaders! URP Shader Graph and HLSL! ✔️ 2021.1 | Unity Game Dev Tutorial online without registration, duration hours minute second in high quality. This video was added by user Ned Makes Games 02 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 9,007 once and liked it 240 people.