Browse Source

fix smoothstep

SUNAG 9 years ago
parent
commit
5d813fcc95
1 changed files with 3 additions and 4 deletions
  1. 3 4
      examples/js/nodes/math/Math3Node.js

+ 3 - 4
examples/js/nodes/math/Math3Node.js

@@ -62,20 +62,19 @@ THREE.Math3Node.prototype.generate = function( builder, output ) {
 			a = this.a.build( builder, type );
 			a = this.a.build( builder, type );
 			b = this.b.build( builder, type );
 			b = this.b.build( builder, type );
 			c = this.c.build( builder, 'fv1' );
 			c = this.c.build( builder, 'fv1' );
-		break;
+			break;
 
 
 		case THREE.Math3Node.MIX:
 		case THREE.Math3Node.MIX:
-		case THREE.Math3Node.SMOOTHSTEP:
 			a = this.a.build( builder, type );
 			a = this.a.build( builder, type );
 			b = this.b.build( builder, type );
 			b = this.b.build( builder, type );
 			c = this.c.build( builder, cl == 1 ? 'fv1' : type );
 			c = this.c.build( builder, cl == 1 ? 'fv1' : type );
-		break;
+			break;
 
 
 		default:
 		default:
 			a = this.a.build( builder, type );
 			a = this.a.build( builder, type );
 			b = this.b.build( builder, type );
 			b = this.b.build( builder, type );
 			c = this.c.build( builder, type );
 			c = this.c.build( builder, type );
-		break;
+			break;
 
 
 	}
 	}