Skip to content

knowercoder/SketchEffect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SketchEffect

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.

SketchEffect

Requirements

  • Unity 2021.3 and above
  • URP v12+

Key Features

  • Hatching
    • 6 hatching levels
    • hatch color
    • hatch weight
  • Custom lighting
    • multiple light support
    • shadow support
  • Outline
    • outline width and color

Usage

Hatching texture

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

Outline

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.

RenderFeature

References:

Pencil hatching: Pencil Sketch Effect by Kyle Halladay
Outline: Toon Outlines by NedMakesGames
Custom lighting: URP custom lighting by NedMakesGames

About

Pencil sketch effect shader for Unity using shader graph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published