Skip to content

Commit

Permalink
AONode: Fix float value
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jul 25, 2023
1 parent 3a89a1d commit c9acdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/nodes/lighting/AONode.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AONode extends LightingNode {
construct( builder ) {

const aoIntensity = 1;
const aoNode = this.aoNode.sub( 1.0 ).mul( aoIntensity ).add( 1.0 );
const aoNode = this.aoNode.x.sub( 1.0 ).mul( aoIntensity ).add( 1.0 );

builder.context.ambientOcclusion.mulAssign( aoNode );

Expand Down

0 comments on commit c9acdba

Please sign in to comment.