Skip to content

Commit e8db4da

Browse files
committed
Polishing
1 parent 50b5fed commit e8db4da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Shaders/TraceOpaque.cs.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ TraceOpaqueResult TraceOpaque( GeometryProps geometryProps0, MaterialProps mater
375375

376376
if( isSharcAllowed )
377377
{
378-
// Try jittered position
379-
float3 sharcRadiance;
378+
float3 sharcRadiance = 0;
380379

380+
// Try jittered position
381381
sharcHitData.positionWorld = Xglobal + jitter;
382382
bool isFound = SharcGetCachedRadiance( sharcParams, sharcHitData, sharcRadiance, false );
383383

Shaders/TraceTransparent.cs.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ float3 TraceTransparent( TraceTransparentDesc desc )
142142

143143
if( isSharcAllowed )
144144
{
145-
// Try jittered position
146-
float3 sharcRadiance;
145+
float3 sharcRadiance = 0;
147146

147+
// Try jittered position
148148
sharcHitData.positionWorld = Xglobal + jitter;
149149
bool isFound = SharcGetCachedRadiance( sharcParams, sharcHitData, sharcRadiance, false );
150150

0 commit comments

Comments
 (0)