/CrossHatchingEffect-UnityURP

A hatching/cross-hatching post processing effect created for Serious Point Games

Primary LanguageC#

image_002_0001

Cross Hatching Effect Post Processing

Unity Version Unity Pipeline Support (Built-In) Unity Pipeline Support (URP) Unity Pipeline Support (HDRP)

A hatching/cross-hatching post processing effect for Unity URP (2022.3.20f1) that I made for Serious Point Games as part of my studies in shader development. You can refer to the effect's documentation for more info (should be in the repo and its release as a PDF file).

Features

  • Animated Hatchings
  • Ability to be displayed with screen color or black & white
  • Inverted hatching color
  • Texture array for Hatch textures

Example[s]

image_001_0001 Hatching Effect (normal)

image_002_0001 Black & White

image_004_0001 Inverted Hatching Color

Installation

  1. Clone repo or download the folder and load it into an unity project.
  2. Create a material with the effect's shader graph, or use the provided one.
  3. Add the render feature of the hatching effect to the Universal Renderer Data you are using.
  4. Input the effect material (from 2.) into the material field in the effect's renderer feature.
  5. If needed, you can change the effect's render pass event in its render feature under settings.

Credits/Assets used

The code is based on IronStar Interactive's image effect shader. GitHub Link or YouTube Video Link

Texture Array script by Dmitry Denisov. GitHub Link. It comes included with the project but you don't have to use or depend on it, you can make and use your own (or other ones). I only include this one as its the one that is most convenient for me and the one that I reference in the effect's documentation.