Skip to content

Andyfanshen/RayTracing-with-Unity-URP

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 (It must be Unity 2022.1+)
  • Create URP Asset(with Universal Renderer) in your 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: 图片 image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published