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:
parent
b3bc352c57
commit
4596a11da2
|
@ -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) );
|
||||||
|
|
Loading…
Reference in New Issue