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
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
)
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.
Real-Time Hatching
by Microsoft ResearchHatching
by AillieoA Pencil Sketch Effect
by Kyle Halladay