mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-18 11:44:51 +02:00
Lots of fixes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user