Skip to content

Commit

Permalink
[HDRP][Path Tracing] Sensor SDK integration quick fix (#6214)
Browse files Browse the repository at this point in the history
* Fix.

* ...
  • Loading branch information
eturquin authored Nov 4, 2021
1 parent 21898f4 commit aa3ea45
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,9 @@ void ClosestHit(inout PathIntersection pathIntersection : SV_RayPayload, Attribu

// Initialize our material data (this will alter the bsdfData to suit path tracing, and choose between BSDF or SSS evaluation)
MaterialData mtlData;
if (CreateMaterialData(pathIntersection, builtinData, bsdfData, shadingPosition,
GetSample(pathIntersection.pixelCoord, _RaytracingSampleIndex, 0), mtlData))
float inputSample = GetSample(pathIntersection.pixelCoord, _RaytracingSampleIndex, 0);
if (CreateMaterialData(pathIntersection, builtinData, bsdfData, shadingPosition, inputSample, mtlData))
{
#ifdef _SURFACE_TYPE_TRANSPARENT
float3 lightNormal = 0.0;
#else
float3 lightNormal = GetLightNormal(mtlData);
#endif

float3 value, direction;
MaterialResult mtlResult;

Expand Down

0 comments on commit aa3ea45

Please sign in to comment.