Skip to content

Commit cf340b9

Browse files
authored
TSL: Fix .negate() (mrdoob#26804)
* Fix dFdy().negate() * Fix .negate()
1 parent 1e673db commit cf340b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/jsm/nodes/math/MathNode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class MathNode extends TempNode {
102102

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

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

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

0 commit comments

Comments
 (0)