Unity-Technologies / UniversalRenderingExamples

This project contains a collection of Custom Renderer examples. This will be updated as we refine the feature and add more options.
2.04k stars 411 forks source link

This project is no longer maintained and will not work in Unity 2022 or newer.

Universal Rendering Examples

This project contains a collection of Custom Renderer examples. This will be updated as we refine the feature and add more options.
Current support : 2019.3.0f6 or later with UniversalRP 7.2.0

CustomRendererExamples

Usage of the project

Project layout

Click here for more details about the individual examples

Examples

There are three examples currently in this project, they are:

First Person Objects

This demo showcases a setup to render first person perspective objects with a FOV(Field Of View) that differs from the game scene rendering FOV, this is common in first person games where the FOV needed for the experience is too wide for the objects held in hand ends up distorted.

FOV


Toon Outline

Showcases a setup to create an effect of Toon styled outlines, there are two approaches in the example, a post-process one and a hull mesh approach. One example uses a custom RendererFeature and both use custom shaders.

FOV


Object Occlusion

Showcases a setup useful to create effects when an object moves behind another one. Zero code needed, Shadergraph used for dither effect.

FOV