@@ -281,8 +281,6 @@ var functionNode_webgl = (function() {
281281 return retArr ;
282282 }
283283
284- var epsilon = 0.00001 ;
285-
286284 /// Prases the abstract syntax tree, binary expression
287285 ///
288286 /// @param ast the AST object to parse
@@ -297,12 +295,6 @@ var functionNode_webgl = (function() {
297295 retArr . push ( "," ) ;
298296 ast_generic ( ast . right , retArr , funcParam ) ;
299297 retArr . push ( ")" ) ;
300- } else if ( ast . operator == "==" || ast . operator == "===" ) {
301- retArr . push ( "abs((" ) ;
302- ast_generic ( ast . left , retArr , funcParam ) ;
303- retArr . push ( ") - (" ) ;
304- ast_generic ( ast . right , retArr , funcParam ) ;
305- retArr . push ( ")) < " + epsilon ) ;
306298 } else {
307299 ast_generic ( ast . left , retArr , funcParam ) ;
308300 retArr . push ( ast . operator ) ;
@@ -523,17 +515,9 @@ var functionNode_webgl = (function() {
523515 }
524516
525517 function ast_LogicalExpression ( logNode , retArr , funcParam ) {
526- if ( logNode . operator == "==" || logNode . operator == "===" ) {
527- retArr . push ( "abs((" ) ;
528- ast_generic ( logNode . left , retArr , funcParam ) ;
529- retArr . push ( ") - (" ) ;
530- ast_generic ( logNode . right , retArr , funcParam ) ;
531- retArr . push ( ")) < " + epsilon ) ;
532- } else {
533- ast_generic ( logNode . left , retArr , funcParam ) ;
534- ast_generic ( logNode . operator , retArr , funcParam ) ;
535- ast_generic ( logNode . right , retArr , funcParam ) ;
536- }
518+ ast_generic ( logNode . left , retArr , funcParam ) ;
519+ retArr . push ( logNode . operator ) ;
520+ ast_generic ( logNode . right , retArr , funcParam ) ;
537521 return retArr ;
538522 }
539523
0 commit comments