Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/westmark/unity-mesh-outline
Unity Package for rendering outlines around meshes/objects
https://github.com/westmark/unity-mesh-outline
Last synced: 3 months ago
JSON representation
Unity Package for rendering outlines around meshes/objects
- Host: GitHub
- URL: https://github.com/westmark/unity-mesh-outline
- Owner: westmark
- License: mit
- Created: 2018-04-12T19:48:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T20:11:44.000Z (over 6 years ago)
- Last Synced: 2024-07-13T00:08:06.132Z (4 months ago)
- Language: ShaderLab
- Size: 5.86 KB
- Stars: 30
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-unity-open-source-on-github - unity-mesh-outline - Unity Package for rendering outlines around meshes/objects (Outline)
README
# unity-mesh-outline
Unity Package for rendering outlines around meshes/objects## Usage
Either clone this repo, or download the latest \*.unitypackage from releases.
Add the `OutlinePostEffect` to your main camera. Drag and drop the two shaders `DrawSimple` and `PostOutline` to their respective receptors on the newly added `OutlinePostEffect` component.
## Caveats
* Currently the outline renders on top of everything else
* There is no way(that I know of) to configure the outline widthIf you know how to fix any of the above(and make it configurable) I would love a PR.
## Credits
All credit for this work goes to the participants in the following thread on the Unity3D forums:
https://forum.unity.com/threads/can-we-use-new-unity-5-5-editor-outline-in-game.445885/
All I did was to bundle the code and make a few minor changes such as making the outline color configurable.