Simple Wireframe is a shader package that could be used to implement various effects displaying ordinary and skinned meshes.
In order to work this shader require barycentric coordinates of each vertex . Barycentric coordinates should be written to colors32 array of mesh object. This can be done in one click using Tools->Wireframe->Prepare Mesh menu item (required code included)
Features:
♥ Wireframe projector;
♥ Variable Color;
♥ Variable Thickness;
♥ ZTest;
♥ Barycentric coordinates calculator;
Demo Scene:
Battlehub/Wireframe/Demo/Wireframe.unity
NOTE:
1. URP, HDRP are not supported!
2. Shader Model 2 is not supported (Wireframe shader use Shader Model 3) see:
#pragma target 3.0
Please make sure to disable *Optimize Mesh Data option in Project Settings -> Player tab.
Documentation