Unlocking The Power Of Unity's Scriptable Render Pipeline

191,521
0
Published 2023-04-05
Inspired by the release of Hi-Fi Rush by Bethesda, I wanted to see if I could get a similar vibrant and stylized aesthetic in Unity. Little did I know, it would swiftly lead me down a rabbit hole of custom rendering in Unity and, in turn, completely overhaul my entire perception of Unity's Scriptable Render Pipelines. This video is a showcase of that journey... so let's take a look at how we can use Scriptable Renderer Features, and Scriptable Render Passes to completely overhaul our rendering in Unity and replicate some of the techniques on show in Hi-Fi Rush.

Chapters:
00:00 - Intro
01:42 - Coming Up
02:23 - The Communication Problem
03:38 - How Bloom Started It All
05:10 - The Bloom Approach
05:51 - Volume Component
07:11 - Creating A Renderer Feature
09:55 - Setting Up The Bloom Pass
15:33 - Adding Ben-Day Dots
17:05 - Outline Multi-Pass
19:35 - Cross-Hatching Ambient Occlusion
20:12 - Outro

• Outline Post-Processing in Built-In -    • Creating an Outline Effect as a Post-...  

• Unity Graphics Library - github.com/Unity-Technologies/Graphics/

• Custom Renderer Feature Docs - docs.unity3d.com/Packages/com.unity.render-pipelin…

• Full Screen Pass - docs.unity3d.com/Packages/com.unity.render-pipelin…

• RTHandles - docs.unity3d.com/Packages/com.unity.render-pipelin…

• Toon Shading- blog.unity.com/engine-platform/custom-lighting-in-…
roystan.net/articles/toon-shader/

--------------------------------------------------------------------------------
Want to support the channel?

▶️ Help fund new episodes by joining the Patreon - www.patreon.com/GameDevGuide

💡 Get One-Month Free of Skillshare Premium - skl.sh/MKR826

Use these links to grab some cool assets from the asset store:

Get the Must Have Assets! - assetstore.unity.com/top-assets/top-download?aid=1…
Free Unity Assets! - assetstore.unity.com/top-assets/top-free?aid=1101l…
New on the Asset Store! - assetstore.unity.com/top-assets/top-new?aid=1101la…
Top Paid Asset Store Packages - assetstore.unity.com/top-assets/top-paid?aid=1101l…
Asset Store Partners - assetstore.unity.com/lists/asset-store-partners-6?…

--------------------------------------------------------------------------------
Socials and Other Stuff:

• Subscribe - youtube.com/gamedevguide?sub_confirmation=1
• Join the Discord - www.discord.gg/yYcww7U
• Twitter - www.twitter.com/GameDevGuideYT
• Facebook - www.facebook.com/GameDevGuideYT
• Instagram - www.instagram.com/GameDevGuideYT

All Comments (21)
  • @PixelDough
    This is exactly what Unity has needed. The SRP has been in a really unstable state for a while so tutorials are often outdated. Now that it's a lot more stable, we need more clean and informative content surrounding how it can be used by developers
  • @GamesPlusShow
    For those of you following along and wondering about m_pass and the Descriptor.. m_pass should be m_customPass and the descriptors declaration is: RenderTextureDescriptor m_Descriptor;
  • This is the best, most thorough video about the render pipelines. I was trying to create custom shaders in Amplify Shader to achieve this effect. I was so lost following videos for Amplify that I was going to stop. And then your video showed on my feed, and now I understand them better. Thank you for the video.
  • @threemr01
    Matt, this tutorial was even better than your usually very high quality ones. Thank you for putting it together!! It’s going to be very useful to my workflow.
  • @AunShiLord
    After watching this video I could say that this is EXACTLY how hard it is, just as I imagined.
  • Oh, this is awesome. I had stumbled upon custom render features two or three weeks ago and I was super stumped. The tutorial I used back then was already a bit outdated and I got more and more lost the longer I tried to follow it and needed to find ways to do it in this current iteration. You explained very well, I'm super looking forward to tinkering with it now 💛 (But I think this will take a few more repeats to make it stick for me :D) Thank you for posting the corresponding docs as well :) (and hey, if it's too much for one video? I'd be happy to watch more on the topic!)
  • @oldshamen
    Awesome video on the SRP .. You are correct. There is a lack of quality information about the use of the SRP/URP from Unity, and the quality of the tutorials online are often limited to "how to do this one thing with the SRP" without actually showing how it fits into the SRP. Really well explained here so I hope you will do more tutorials on URP in the future because this one is awesome.
  • @aidanhobler
    Wow, this is the exact type of Unity content that I want to see, can't believe I hadn't seen your channel already. Instantly subscribed!
  • great video ... i always wanted to learn about this but there wasn't any good videos this video gave me some good understanding about how it works now i can learn bit more over time... thank you
  • @yuushi_s
    Great Job! Exactly what I've been looking for
  • @f11bot
    I’ve not finished watching the video yet, but this has been the best video explaining SRPs! It’s so difficult to find information online, this is super useful! Unity definitely should try to explain this better, first time they explained I straight up didn’t even want to try to mess with it XD More documentation and examples of videos and projects from Unity are really crucial for people to start looking at this, like you said!
  • I just started learning Unity, so this subject is of very little value to me other than it's great knowing I can have this level of control far down the line. However, it's obvious that your videos are very clear, informative and super well put together. I can already tell that your channel is a great learning resource and I'll definitely check out more of your stuff.
  • @lewisgads6432
    For those who have a blank grey/white screen when following along, make sure the Bloom Texture in the shader graph has 'Exposed' set to off on the BloomTexture property in shadergraph. This stops it being overwritten to a blank white texture as its expecting to be set in a material.
  • @segue2ant395
    Incredible video - more than enough information to get started without being overwhelming. I've used most of these features just enough to get a taste of what they're capable of, but never managed more thanks to documentation that is either missing, out-of-date, or just flat-out incorrect. I'd honestly assumed that there was something wrong with either my brain or my Unity install, the number of times I've butted heads with it and lost. I'm glad to hear someone who actually worked for Unity admit that this topic is mostly just badly documented, when it's documented at all.
  • @f11bot
    I’ve just contributed to your future 100k subs, awesome video!! Keep it going!
  • @btarg1
    I was very recently looking for how to replicate Hi Fi Rush in Unity, great timing!
  • I have been working on this exact thing for the past week! This video couldn't have been timed better. Thank you so much the the in depth look at this stuff. I have been picking through the frame debugger trying to find the shadow pass so I can customise it. Found it now thanks to this video. Also your post-processing video has been a life saver for me. Thanks buddy!
  • This is some much fun:eyes-pink-heart-shape:. It's cool stuff really. Thank you for you video.
  • @xkittencatx
    I have missed you GDG :3 happy to see a new upload