https://github.com/Robinseibold/Unity-URP-Outlines
A custom renderer feature for screen space outlines
https://github.com/Robinseibold/Unity-URP-Outlines
Last synced: 7 days ago
JSON representation
A custom renderer feature for screen space outlines
- Host: GitHub
- URL: https://github.com/Robinseibold/Unity-URP-Outlines
- Owner: Robinseibold
- License: mit
- Created: 2022-07-01T05:44:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T12:02:29.000Z (9 months ago)
- Last Synced: 2024-11-11T19:39:07.835Z (6 months ago)
- Language: C#
- Size: 55.7 KB
- Stars: 590
- Watchers: 13
- Forks: 51
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity3d - Unity-URP-Outlines - A custom renderer feature for screen space outlines (Open Source Repositories / Effect-Highlighter)
- awesome-unity3d - Unity-URP-Outlines - A custom renderer feature for screen space outlines (Open Source Repositories / Effect-Highlighter)
- awesome-unity3d - Unity-URP-Outlines - A custom renderer feature for screen space outlines (Open Source Repositories / Effect-Highlighter)
README
# Outlines
A custom renderer feature for screen space outlines based on [Erik Roystan Ross Outline Shader](https://roystan.net/articles/outline-shader.html).for more specific implementation details see [YouTube video](https://youtu.be/LMqio9NsqmM). Apart from minor adjustments no further improvements has been added.
## Usage
- Add files to your project
- Enable depth texture in the Universal Render Pipeline Asset
- Add the 'Screen Space Outlines' renderer feature to the Universal Renderer Data
- Adjust 'Screen Space Outlines' settings
- Go to Project Settings > Graphics and add the 2 new ones (Outlines and ViewSpaceNormals) to the list of Always Included Shaders. This is needed to make sure the shaders are included when building the project for a real device.## Known Issues
- Does not work with objects that utilizes displacement shaders, the normal texture generation does not take the displacement into account
- Does not work with MSAA, the current work around is to use FXAA or SMAA on the camera instead.## Future Plans
I'm continuously expanding on this implementation, below are some things planned for future releases:
- Outline generation anti aliasing
- Varying thickness of outlines based on distance from camera
- Fog affected outlines
- and much more