Skip to content

Commit 3ab470c

Browse files
committed
Limit radiance ray recursion to max depth of 2 and updated screenshot
1 parent 4c590d3 commit 3ab470c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingSakuraForestSER/Raytracing.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ struct Ray
211211
// Trace a radiance ray into the scene and returns a shaded color.
212212
float4 TraceRadianceRay(in Ray ray, in int currentRayRecursionDepth)
213213
{
214-
if (currentRayRecursionDepth >= 1)
214+
if (currentRayRecursionDepth >= 2)
215215
{
216216
return float4(0, 0, 0, 0);
217217
}
10 MB
Loading

0 commit comments

Comments
 (0)