Aleksey Fedotov

/* home page of one programmer */


A collection of shaders and materials for high-quality wireframe rendering in Unity. The package relies on geometry shaders so currently it runs only on Windows and DX10-compatible video cards. Geometry shaders are not yet supported by Unity on Linux and macOS.
  • Antialiased lines with adjustable width.
  • Lines are calculated in window space and don’t depend on object’s distance from the camera. The farther the object is from the camera, the denser its wireframe. This behavior is the same as for classic wireframe (used, for example, in Unity editor).
  • Deferred and forward rendering support.
  • Six example materials, including single side, two-sided, solid (wireframe + fill color). Wireframe material can be mixed with any other material by simply assigning two (or more) materials to the same object. This requires at least two draw calls though. For simple wireframe rendering with fill color there is a shader included that requires only one draw call.