Skip to content

Commit

Permalink
Fix clearcoat op sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Dec 2, 2023
1 parent 595bd3d commit 0d64c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/nodes/functions/PhysicalLightingModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class PhysicalLightingModel extends LightingModel {
f90: clearcoatF90
} );

const clearcoatLight = outgoingLight.mul( clearcoat.mul( Fcc ).oneMinus() ).add( this.clearcoatSpecularDirect, this.clearcoatSpecularIndirect ).mul( clearcoat );
const clearcoatLight = outgoingLight.mul( clearcoat.mul( Fcc ).oneMinus() ).add( this.clearcoatSpecularDirect.add( this.clearcoatSpecularIndirect ).mul( clearcoat ) );

outgoingLight.assign( clearcoatLight );

Expand Down

0 comments on commit 0d64c42

Please sign in to comment.