QuickOutline
Quick Outline adds solid, world-space outlines to game objects without the performance drawbacks of screen-space approaches. Purpose-built for VR with support for instanced stereo rendering and MSAA, it delivers crisp outlines on hard corners while maintaining excellent frame rates. Features multiple outline modes, post-processing compatibility, and can be applied via simple component attachment or programmatic control.
com.chrisnolet.quickoutline 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/quickoutline.git README Markdown
Copy this to your project's README.md
## Installation
Add **QuickOutline** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/quickoutline.git
```
[](https://www.pkglnk.dev/pkg/quickoutline)README
Quick Outline
Developed by Chris Nolet (c) 2018
About
Quick Outline is a world-space outline tool, that adds a solid outline to any object.
Itâs ideally suited for VR.
Many outline shaders work in screen space, which makes them slow â and they donât support MSAA. If they do work in world space, they have âgapsâ on hard corners. Quick Outline addresses these issues.
Quick Outline was originally designed for VR, so it supports Instanced Stereo rendering and MSAA. It looks great in any HMD, and it wonât impact the frame rate.
- Designed for VR (including single pass)
- Supports MSAA
- Compatible with post-processing stack
- Multiple outline modes
- Lightweight and performant
Instructions
To add an outline to an object, drag-and-drop the Outline.cs script onto the object. The outline materials will be loaded at runtime.
You can also add outlines programmatically with:
var outline = gameObject.AddComponent<Outline>();
outline.OutlineMode = Outline.Mode.OutlineAll;
outline.OutlineColor = Color.yellow;
outline.OutlineWidth = 5f;
The outline script does a small amount of work in Awake(). For best results, use outline.enabled to toggle the outline. Avoid removing and re-adding the component if possible.
For large meshes, you may also like to enable 'Precompute Outline' in the editor. This will reduce the amount of work performed in Awake().
Troubleshooting
If the outline appears off-center, please try the following:
- Set 'Read/Write Enabled' on each model's import settings.
- Disable 'Optimize Mesh Data' in the player settings.
No comments yet. Be the first!