Technical requirements
To try out the shader examples shown in this chapter, you should install Unity with a version from 2021 or later and make a project using the Universal Render Pipeline (URP) pipeline.
In all the demos of this chapter, I will use the following three images:
- A dwarf image
- A pixel-perfect sphere image
- A pixel-perfect character sprite sheet by GrafxKid (available at: https://opengameart.org/content/classic-hero)
All these images are PNG images with a transparent background. They are used as sprites in a Sprite Renderer component placed on a simple empty Unity game object in the scene, like this:
Figure 11.1 – Object setup with a 2D Sprite Renderer component and the sample dwarf image
You can check out how the scene is organized and find all the Shader Graph Assets for this chapter, as well as the demo images and textures in the GitHub of the book at https://github.com/PacktPublishing/Become-a-Unity-Shaders...