Skip to content

Commit

Permalink
Add support for reflecting the background directly
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 11, 2022
1 parent f03a52a commit 1348993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/materials/PhysicalPathTracingMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export class PhysicalPathTracingMaterial extends MaterialBase {
if ( ! hit ) {
if ( i == 0 || transmissiveRay ) {
if ( i == 0 || transmissiveRay || i == 1 && ! isShadowRay ) {
gl_FragColor.rgb += sampleBackground( environmentRotation * rayDirection ) * throughputColor;
gl_FragColor.a = backgroundAlpha;
Expand Down

0 comments on commit 1348993

Please sign in to comment.