Lots of fixes.

This commit is contained in:
Justin Marshall
2026-05-13 22:13:49 -07:00
parent cdb45e4155
commit ef706b8cc3
5 changed files with 1014 additions and 89 deletions
+4 -2
View File
@@ -2738,7 +2738,7 @@ float TraceShadow(float3 origin, float3 dir, float maxT)
TraceRay(
gSceneBVH,
RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH | RAY_FLAG_CULL_FRONT_FACING_TRIANGLES,
RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH,
0xFF,
0,
0,
@@ -2765,7 +2765,7 @@ bool TraceBounce(float3 origin, float3 dir, float maxT, out float hitT, out uint
TraceRay(
gSceneBVH,
RAY_FLAG_NONE,
RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH,
0xFF,
1,
0,
@@ -4996,6 +4996,8 @@ void RayGen()
finalColor += baseAlbedo * reactiveFinalGather;
}
finalColor *= clamp(ao + 0.6, 0.0, 1.0);
// Volumetric light scattering is radiance in the camera ray, not surface
// reflectance, so add it after surface albedo/specular composition. Because
// it is written into the same path-trace target, the internal a-trous pass