Skip to content

Commit

Permalink
Strange fix for new drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
sultim-t committed Jun 23, 2023
1 parent d0b4d6a commit 4ef5805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Shaders/RtRaygenIndirect.inl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ SampleIndirect processIndirect( const uint seed, const Surface surf, out float o
// calculate direct diffuse illumination in a hit position
vec3 diffuse = processDirectIllumination(seed, hitSurf, 1);

if( globalUniform.indirSecondBounce != 0 )
// TODO: investigate why uncommenting this makes diffuse very red
// if( globalUniform.indirSecondBounce != 0 )
{
float oneOverPdf_Second;
const vec3 bounceDir_Second = getDiffuseBounce(seed, 2, hitSurf.normal, oneOverPdf_Second);
Expand Down

0 comments on commit 4ef5805

Please sign in to comment.