Silhouette Shader
From C4 Engine Wiki
A rudimentary silhouette shader
Notes:
-Should be applied in both the 'ambient' and 'light' tabs of the shader editor.
-The open B input receives a RGB value. It can be either directly from a texture or constant color, or it can be from lighting calculations such as the multiplication of a "Texture" process by a "Diffuse Reflection" process.
-The output is a RGB value.
-The color process labeled 'Silhouette color' determines the color of the silhouette outline.
-The scalar process labeled 'Silhouette thickness' determines how thick the outline will be.
-This shader does not work well on objects with sharp edges such as a box. It works best on geometries that are smoothed and rounded, such as a torus.
