Unity-Technologies/UniversalRenderingExamples
关于
本项目包含一组自定义渲染器示例。随着我们不断完善该功能并添加更多选项,示例也会持续更新。
设计与媒体实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- 0
- 1个月
- +3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
Usage of the project
- Clone the repo/Download the zip down to your computer
- Load in Unity version 2019.3.0f6 or later.
- Each scene contains a different example
- Upon loading the scene the Universal Render Pipeline asset is switched automatically to the one for the specific example
Project layout
_CompletedDemos/XXXThis contains the demo data and scene files.External AssetsThis folder contains shared assets such as meshes and textures.ScriptsFolder that contains some custom renderer features and utility scripts
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.
- Can be found at
_CompletedDemos/FPSCameraCompleted/FPSCameraDemo.unity - Uses the
Render Objects (Experimental)feature that is provided with the Universal Render Pipeline Package - Different FOV for GameObjects with the Layer set to
First Person Objects - Depth settings to avoid rendering inside close objects like walls
- Stencil settings to properly handle transparencies
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.
- Can be found at
_CompletedDemos/ToonOutlinePostprocessCompleted/ToonOutlinePost.unity - Uses the
Blitcustom feature(Blit.csandBlitPass.cs) that is provided with this project for theOutlinePostEffectcustom renderer - Custom Sobel Filter shader with Posterize option
- Uses the
Render Objects (Experimental)feature that is provided with the Universal Render Pipeline Package for theOutlineHullEffectcustom renderer - Custom Toon Outline shader based of Unity Basic Toon shader
Object Occlusion
Showcases a setup useful to create effects when an object moves behind another one. Zero code needed, Shadergraph used for dither effect.
- Can be found at
_CompletedDemos/UnityOcclusionDemoCompleted/UnityOcclusionDemo.unity - Uses the
Render Objects (Experimental)feature that is provided with the Universal Render Pipeline Package - Shadergraph made Dither shader for the effect
探索相关项目
加载中…