Wilberforce Wireframe Unity Plugin User Guide

Contents

Introduction

Wilberforce Wireframe (WW) is a Shader for Unity 5 (5.3.6 or higher)

You can buy Wilberforce Wireframe at Unity Asset Store.

Please rate our plugin on Asset Store to support its development.

Wilberforce Wireframe is currently in Beta and your feedback is welcome! Please share your ideas and features you would like to see with us at projectwilberforce@gmail.com.

Features:

Planned features (FUTURE):

See forum for discussion and contact us at projectwilberforce@gmail.com for additional support.

Requirements

Installation

  1. Import from Asset Store.
  2. Create new material
  3. Select created material
  4. In inspector window set shader property to Wilberforce/Wireframe
  5. Apply material to mesh by drag&dropping to desired object in hierarchy window or choosing it in the mesh inspector
  6. Check included demo scenes on possible usage

Parameters

WW material behaviour is controlled by following parameters:

Wire Thickness How thick the line appears.

Wire Color Color of the line (can be transparent)

Fill Color Color of the rest of the face (can be transparent)

Remove Diagonals Skips longest triangle edges to create a quad wireframe

Apply Flat Shading Faces are shaded based on their orientation to camera.

Calculate in Object Space (Perspective) Perspective display - line appears thinner as distance from camera increases.

Show Line Caps (beta) Switch on to display line caps (making the line thicker in the corners)

Line Caps Size How thick the line caps are.

Apply to faces On what surfaces of the mesh will be effect applied.

Front: default option; Back: use to make a backface material for “see-through” double-sided mesh.

How to

Basic usage

Using the shader is straightforward - simply assign shader as described in Installation section and adjust parameters.

Note that you can combine wireframe shader material with another materials on same object (by setting fill color to transparent, you can make underlying material visible).

Transparent objects (Double-sided mesh)

Most interesting effect can be achieved by rendering the object transparent, with wireframe edges visible. To achieve this, you have to apply this shader twice - once for front faces with transparent fill color and second time for back faces:

  1. Create two separate materials and assign Wilberforce/Wireframe shader to them
  2. Set Apply to faces parameter to Front for one material, Back for another.
  3. Set fill color to transparent (or semi-transparent) for material with Front faces rendering
  4. Select object you want to render and open Materials section in Inspector Window. Set Size parameter to 2 (or more)
  5. Assign our two materials to selected object (see picture below)

Contact Information

In case of questions or further issues, please contact us at projectwilberforce@gmail.com