heroBackground

Outline Shader

2 WeeksUnityHLSLC# Programming

An Outline Shader in HLSL for Unity that scales a mesh and renders its backside flat to create an outline effect.

Smoothed Normals

An algorithm was developed to smooth normals and store them in the TEXCOORDS of each mesh using the outline system for later shader access.

Outline Shader Sample

Pre-rendering and saving normals optimize performance by reducing the need to recalculate them at runtime.