Guntran Hoet
C++/C# Game Programmer

Scanline Highlight Shader


Downloads

Discover it on the Unity Asset Store.
Read the full documentation.

Description

An scanline highlight material shader created to mimic the shader effect from Fallout 4 during loading screens or in-game object highlighting.

The rim highlights are based on the angle between the view direction and the normal directon of the object.
The shader uses screenspace projection of a black and white line image to create the lines. The lines can be displaced based on time and speed.

My inspiration to create this shader came from playing Fallout 4. When I saw the shader during the loading screens I kept rotating and zooming the displayed props to test the shader's properties. I noticed that the lines are drawn in screenspace and the highlights are based on the angle between the view direction and the normals of the prop.
When I looked up highlight material shaders, I didn't find anything like this one. This gave me the idea to publish it on the Unity Asset store.

Different variants of the Scanline Highlight Shader:

  • Diffuse
  • Bumped Diffuse
  • Monochromatic (shown in the video)
  • Unobstructed Monochromatic
  • Bicolor
  • PBR (metalness workflow)

Tools


  • Unity3D
  • MS Visual Studio 2013