We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03a52a commit 1348993Copy full SHA for 1348993
src/materials/PhysicalPathTracingMaterial.js
@@ -483,7 +483,7 @@ export class PhysicalPathTracingMaterial extends MaterialBase {
483
484
if ( ! hit ) {
485
486
- if ( i == 0 || transmissiveRay ) {
+ if ( i == 0 || transmissiveRay || i == 1 && ! isShadowRay ) {
487
488
gl_FragColor.rgb += sampleBackground( environmentRotation * rayDirection ) * throughputColor;
489
gl_FragColor.a = backgroundAlpha;
0 commit comments