Skip to content

Morakito/RayTracing-with-Unity-URP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: 图片

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 88.9%
  • ShaderLab 11.1%