Unity-Technologies/UniversalRenderingExamples
소개
Custom Renderer 예제를 모아 둔 프로젝트입니다. 기능을 개선하고 옵션을 추가하면서 계속 업데이트할 예정입니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- 0
- in 1 month
- +3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThis 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
관련 프로젝트 살펴보기
불러오는 중…