Skip to content

Commit 1348993

Browse files
committed
Add support for reflecting the background directly
1 parent f03a52a commit 1348993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/materials/PhysicalPathTracingMaterial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export class PhysicalPathTracingMaterial extends MaterialBase {
483483
484484
if ( ! hit ) {
485485
486-
if ( i == 0 || transmissiveRay ) {
486+
if ( i == 0 || transmissiveRay || i == 1 && ! isShadowRay ) {
487487
488488
gl_FragColor.rgb += sampleBackground( environmentRotation * rayDirection ) * throughputColor;
489489
gl_FragColor.a = backgroundAlpha;

0 commit comments

Comments
 (0)