Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.08 KB

README.md

File metadata and controls

17 lines (15 loc) · 1.08 KB

RayTracing-with-Unity-URP

Renderer Feature

We add a path tracing pass before postprocess pass by renderer feature, that's why we can run path tracing with Unity URP renderer. To enable the raytracing feature, you should:

  • Clone the scripts to your Unity-URP project assets
  • Create URP Asset(with Universal Renderer) in you assets(by Create->Rendering->URP Asset)
  • Unity will create two assets: "**.asset" and "**_Renderer.asset"
  • Choose "**_Renderer.asset", click "Add Renderer Feature" button at the bottom of the Inspector panel
  • Choose "Ray Tracing Render Feature"
  • Edit->Project Settings->Quality->Render Pipeline Asset, replace the default asset with the asset created before

Now, you have enabled the raytracing feature in your pipeline asset, the following steps tell you how to run a test scene with path tracing

  • Choose your Volume(current camera under effect), add override "My Ray Tracing"
  • Enable All Items and configure them

A test scene may like this: 图片