SketchEffect helps you to create a pencil sketch effect in Unity. All you have to do is create a material with the “SktechEffect” shader, assign necessary textures, and apply it to your game object.
Note, this is not a post-processing shader.
- Unity 2021.3 and above
- URP v12+
- Hatching
- 6 hatching levels
- hatch color
- hatch weight
- Custom lighting
- multiple light support
- shadow support
- Outline
- outline width and color
There are six levels of hatching textures in the Textures/Hatch folder. You can replace these textures with your custom hatch textures to change the appearance.
These six textures are packed into two textures as 'darkest' (level 0, 1, 2) and 'brightest' (level 3, 4, 5) and assigned to the shader material.
To pack your custom textures, use the 'PackRGB' tool under the menu - Tools -> PackRGB
To render outline, the shader needs _DepthNormalsTexture, which should be generated by the URP's render feature. So, make sure the "DepthNormalsFeature" is added to your URP renderer asset.
Pencil hatching: Pencil Sketch Effect by Kyle Halladay
Outline: Toon Outlines by NedMakesGames
Custom lighting: URP custom lighting by NedMakesGames