Wireframe

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.

Features

  • 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.
  • Line width can be changed.
  • Lines are calculated in window space and don’t depend on object’s distance from the camera. So, 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).
  • Lines are antialiased.
  • Deferred and forward rendering support.

Screenshots

© 2014-2017 Aleksey Fedotov