Friday, April 21, 2023

Unlocking The Power Of Unity's Scriptable Render Pipeline [VIDEO SUMMARY]

"Unlocking The Power Of Unity's Scriptable Render Pipeline" is a video published by Game Dev Guide, which delves into the capabilities of Unity's Scriptable Render Pipeline (SRP) and demonstrates how to use it to create a stylized look similar to that of Hi-Fi Rush, a visually striking game developed in Unreal Engine. The video covers various topics, such as customizing the rendering process, using light modes, and creating a custom volume component for managing rendering.


The video begins by discussing the appeal of Hi-Fi Rush's aesthetics and the challenge of achieving a similar look in Unity, as most modern game engines are designed for realistic materials. The creator then introduces Unity's Scriptable Render Pipeline, which allows for full control over the game's rendering process. The SRP is more powerful than the built-in renderer, but it is also more complicated and under-documented.

To demonstrate the SRP's capabilities, the video shows how to create a custom post-process effect called "Bend-a-Bloom" by writing a custom render pass and using a global volume component. The process involves creating a custom volume component, setting up render passes, and managing render features. The creator also discusses various aspects of the rendering process, such as using the Graphics Profiler and handling multi-pass rendering.

The video then demonstrates how to create a custom toon shader to further enhance the stylized look of the game. The creator adapts a tutorial on toon shading in Unity's Universal Render Pipeline (URP) and converts it into a custom HLSL toon shader. To add an outline to the character, the creator writes another renderer feature to enable multi-pass rendering.

Lastly, the video covers the creation of a stylized line texture for edges of objects, similar to what is seen in Hi-Fi Rush. This is achieved by duplicating the built-in occlusion pass and using the resulting texture as a mask during compositing.