Skip to content

Commit

Permalink
TSL: Fix .negate() (#26804)
Browse files Browse the repository at this point in the history
* Fix dFdy().negate()

* Fix .negate()
  • Loading branch information
sunag authored Sep 19, 2023
1 parent 1e673db commit cf340b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/nodes/math/MathNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class MathNode extends TempNode {

} else if ( method === MathNode.NEGATE ) {

return builder.format( '-' + a.build( builder, inputType ), type, output );
return builder.format( '( - ' + a.build( builder, inputType ) + ' )', type, output );

} else if ( method === MathNode.ONE_MINUS ) {

Expand Down

0 comments on commit cf340b9

Please sign in to comment.