Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.52 KB

File metadata and controls

26 lines (20 loc) · 1.52 KB

Unity HDRP Post Processing Hatching Shader

A Post Processing shader featuring Hatching based on World Space UV's in the Unity HDRP
Project for a minor in Game Development & Simulation at the Hague University of Applied Sciences

How does it work?

By calculating the world space UV's based on the Camera's view, it can overlay an image by using these UV's on a tiled sketch texture. The sketch texture is divided into 3 "different" textures, based on how intense the hatching effect has to be. The intensity is based on the brightness of the pixel it's applying the effect to.

Features

  • Post Processing Shader (HatchingPostProcessing.shader)
  • The Post Processing effect script (HatchingEffect.cs)
  • 3 example stroke textures (/Strokes)

Help

You can use this guide to add a custom post processing effect to your Unity project. Make sure that you're using the HDRP pipeline, since I'm not sure how the effect turns out if you use a different pipeline.

Resources