Raytracing 3D renderer: don't reflect sky background when reflections are on.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17690
This commit is contained in:
Alex Shvartzkop 2024-04-26 16:01:32 +03:00
parent b3bc352c57
commit 4596a11da2
1 changed files with 0 additions and 4 deletions

View File

@ -1570,10 +1570,6 @@ SFVEC4F RENDER_3D_RAYTRACE_BASE::shadeHit( const SFVEC4F& aBgColor, const RAY& a
sum_color += add; sum_color += add;
} }
else
{
sum_color += aBgColor;
}
} }
outColor += (sum_color / SFVEC4F( (float)reflection_number_of_samples) ); outColor += (sum_color / SFVEC4F( (float)reflection_number_of_samples) );