Skip to content

[HDRP][Path Tracing] Fixed PS5 build compilation warnings #6362

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 3 commits into from
Nov 22, 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
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed issue with Stacklit raytrace reflection
- Fixed various issues with using SSR lighting with IBL fallback for Lit shader with clear coat(case 1380351)
- Fixed stackLit coat screen space reflection and raytrace reflection light hierarchy and IBL fallback
- Fixed compilation errors from Path Tracing on the PS5 build.

### Changed
- Optimizations for the physically based depth of field.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ void RayGen()
else // Orthographic projection
{
uint2 pixelResolution = DispatchRaysDimensions().xy;
float3 screenCoord = float3(2.0 * jitteredPixelCoord.x / pixelResolution.x - 1.0,
float4 screenCoord = float4(2.0 * jitteredPixelCoord.x / pixelResolution.x - 1.0,
-2.0 * jitteredPixelCoord.y / pixelResolution.y + 1.0,
0.0);
0.0, 0.0);

ray.Origin = mul(_InvViewProjMatrix, screenCoord);
ray.Origin = mul(_InvViewProjMatrix, screenCoord).xyz;
ray.Direction = cameraDirection;
}

Expand Down