From 4ef5805ffcd3a37158351f8b92638557f9f688d3 Mon Sep 17 00:00:00 2001 From: Sultim Tsyrendashiev Date: Fri, 23 Jun 2023 13:09:05 +0100 Subject: [PATCH] Strange fix for new drivers --- Source/Shaders/RtRaygenIndirect.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Shaders/RtRaygenIndirect.inl b/Source/Shaders/RtRaygenIndirect.inl index c07546fc..ada7170f 100644 --- a/Source/Shaders/RtRaygenIndirect.inl +++ b/Source/Shaders/RtRaygenIndirect.inl @@ -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);