Skip to content

Change the source value for the ray tracing frame index iterator from m_FrameCount to the camera frame count (case 1301356). #3032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed GC allocations from XR occlusion mesh when using multipass.
- Fixed XR depth copy when using MSAA.

### Changed
- Change the source value for the ray tracing frame index iterator from m_FrameCount to the camera frame count (case 1301356).

## [11.0.0] - 2020-10-21

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ internal int RayTracingFrameIndex(HDCamera hdCamera)
return 0;
else
#endif
return hdCamera.IsTAAEnabled() ? hdCamera.taaFrameIndex : (int)m_FrameCount % 8;
return (int)hdCamera.GetCameraFrameCount() % 8;
}

internal int RayTracingFrameIndex(HDCamera hdCamera, int targetFrameCount = 8)
Expand Down